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

Method TranslateLeftKey

Modules/DataTypesExt/src/mitkAffineBaseDataInteractor3D.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void mitk::AffineBaseDataInteractor3D::TranslateLeftKey(mitk::StateMachineAction *,
113 mitk::InteractionEvent *interactionEvent)
114{
115 float stepSize = 1.0f;
116 this->GetDataNode()->GetFloatProperty(translationStepSizePropertyName, stepSize);
117 mitk::Vector3D movementVector;
118 movementVector.Fill(0.0);
119 movementVector.SetElement(0, -stepSize);
120 this->TranslateGeometry(movementVector, this->GetUpdatedTimeGeometry(interactionEvent));
121}
122
123void mitk::AffineBaseDataInteractor3D::TranslateRightKey(mitk::StateMachineAction *,
124 mitk::InteractionEvent *interactionEvent)

Callers

nothing calls this directly

Calls 5

TranslateGeometryMethod · 0.95
GetFloatPropertyMethod · 0.45
GetDataNodeMethod · 0.45
FillMethod · 0.45

Tested by

no test coverage detected