| 107 | } |
| 108 | |
| 109 | void mitk::Surface::SetVtkPolyData(vtkPolyData *polyData, unsigned int t) |
| 110 | { |
| 111 | this->Expand(t + 1); |
| 112 | |
| 113 | if (m_PolyDatas[t] != nullptr) |
| 114 | { |
| 115 | if (m_PolyDatas[t].GetPointer() == polyData) |
| 116 | return; |
| 117 | } |
| 118 | |
| 119 | m_PolyDatas[t].TakeReference(polyData); |
| 120 | |
| 121 | if (polyData != nullptr) |
| 122 | polyData->Register(nullptr); |
| 123 | |
| 124 | m_CalculateBoundingBox = true; |
| 125 | |
| 126 | this->Modified(); |
| 127 | this->UpdateOutputInformation(); |
| 128 | } |
| 129 | |
| 130 | bool mitk::Surface::IsEmptyTimeStep(unsigned int t) const |
| 131 | { |