| 170 | } |
| 171 | |
| 172 | void mitk::AbstractTransformGeometry::SetPlane(const mitk::PlaneGeometry *aPlane) |
| 173 | { |
| 174 | if (aPlane != nullptr) |
| 175 | { |
| 176 | m_Plane = static_cast<mitk::PlaneGeometry *>(aPlane->Clone().GetPointer()); |
| 177 | |
| 178 | BoundingBox::BoundsArrayType b = m_Plane->GetBoundingBox()->GetBounds(); |
| 179 | |
| 180 | SetParametricBounds(b); |
| 181 | |
| 182 | CalculateFrameGeometry(); |
| 183 | } |
| 184 | else |
| 185 | { |
| 186 | if (m_Plane.IsNull()) |
| 187 | return; |
| 188 | m_Plane = nullptr; |
| 189 | } |
| 190 | Modified(); |
| 191 | } |
| 192 | |
| 193 | void mitk::AbstractTransformGeometry::CalculateFrameGeometry() |
| 194 | { |