MCPcopy Create free account
hub / github.com/MITK/MITK / SetPlane

Method SetPlane

Modules/Core/src/DataManagement/mitkAbstractTransformGeometry.cpp:172–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void 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
193void mitk::AbstractTransformGeometry::CalculateFrameGeometry()
194{

Calls 6

ModifiedFunction · 0.85
GetPointerMethod · 0.80
CloneMethod · 0.45
GetBoundsMethod · 0.45
GetBoundingBoxMethod · 0.45
IsNullMethod · 0.45