| 138 | } |
| 139 | |
| 140 | vtkPolyData *mitk::Surface::GetVtkPolyData(unsigned int t) const |
| 141 | { |
| 142 | if (t < m_PolyDatas.size()) |
| 143 | { |
| 144 | if (m_PolyDatas[t] == nullptr && this->GetSource().IsNotNull()) |
| 145 | { |
| 146 | RegionType requestedRegion; |
| 147 | requestedRegion.SetIndex(3, t); |
| 148 | requestedRegion.SetSize(3, 1); |
| 149 | this->m_RequestedRegion = requestedRegion; |
| 150 | this->GetSource()->Update(); |
| 151 | } |
| 152 | |
| 153 | return m_PolyDatas[t].GetPointer(); |
| 154 | } |
| 155 | |
| 156 | return nullptr; |
| 157 | } |
| 158 | |
| 159 | void mitk::Surface::UpdateOutputInformation() |
| 160 | { |