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

Method GetHandleFromPointDataValue

Modules/Gizmo/src/mitkGizmo.cpp:494–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494mitk::Gizmo::HandleType mitk::Gizmo::GetHandleFromPointDataValue(double value)
495{
496#define CheckHandleType(type) \
497 if (static_cast<int>(value) == static_cast<int>(type)) \
498 return type;
499
500 CheckHandleType(MoveFreely);
501 CheckHandleType(MoveAlongAxisX);
502 CheckHandleType(MoveAlongAxisY);
503 CheckHandleType(MoveAlongAxisZ);
504 CheckHandleType(RotateAroundAxisX);
505 CheckHandleType(RotateAroundAxisY);
506 CheckHandleType(RotateAroundAxisZ);
507 CheckHandleType(ScaleX);
508 CheckHandleType(ScaleY);
509 CheckHandleType(ScaleZ);
510 return NoHandle;
511#undef CheckHandleType
512}
513
514mitk::Gizmo::HandleType mitk::Gizmo::GetHandleFromPointID(vtkIdType id)
515{

Callers 1

PickFrom2DMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected