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

Method OnFollowedGeometryModified

Modules/Gizmo/src/mitkGizmo.cpp:474–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void mitk::Gizmo::OnFollowedGeometryModified()
475{
476 m_Center = m_FollowedGeometry->GetCenter();
477
478 m_AxisX = m_FollowedGeometry->GetAxisVector(0);
479 m_AxisY = m_FollowedGeometry->GetAxisVector(1);
480 m_AxisZ = m_FollowedGeometry->GetAxisVector(2);
481
482 m_AxisX.Normalize();
483 m_AxisY.Normalize();
484 m_AxisZ.Normalize();
485
486 for (int dim = 0; dim < 3; ++dim)
487 {
488 m_Radius[dim] = 0.5 * m_FollowedGeometry->GetExtentInMM(dim);
489 }
490
491 UpdateRepresentation();
492}
493
494mitk::Gizmo::HandleType mitk::Gizmo::GetHandleFromPointDataValue(double value)
495{

Callers

nothing calls this directly

Calls 4

GetCenterMethod · 0.80
GetAxisVectorMethod · 0.80
NormalizeMethod · 0.80
GetExtentInMMMethod · 0.80

Tested by

no test coverage detected