97 itkGetConstMacro(AllowTranslation,
bool);
98 itkSetMacro(AllowTranslation,
bool);
99 itkBooleanMacro(AllowTranslation);
101 itkGetConstMacro(AllowRotation,
bool);
102 itkSetMacro(AllowRotation,
bool);
103 itkBooleanMacro(AllowRotation);
105 itkGetConstMacro(AllowScaling,
bool);
106 itkSetMacro(AllowScaling,
bool);
107 itkBooleanMacro(AllowScaling);
172 bool m_AllowTranslation;
173 bool m_AllowRotation;
176 BaseGeometry::Pointer m_FollowedGeometry;
178 unsigned long m_FollowerTag;
182 std::unique_ptr<GizmoRemover> m_GizmoRemover;
BaseGeometry Describes the geometry of a data object.
Class for nodes of the DataTree.
Data management class that handles 'was created by' relations.
mitkClassMacro(Gizmo, Surface)
AxisType
Names for the three axes.
double GetLongestRadius() const
Return the longest of the three axes.
void FollowGeometry(BaseGeometry *geom)
HandleType
Names for the different parts of the gizmo.
vtkSmartPointer< vtkPolyData > BuildGizmo()
Creates a vtkPolyData representing the parameters defining the gizmo.
void OnFollowedGeometryModified()
The ITK callback to receive modified events of the followed geometry.
static bool HasGizmoAttached(mitk::DataNode *node, DataStorage *storage)
static std::string HandleTypeToString(HandleType type)
Conversion for any kind of logging/debug/... purposes.
Gizmo & operator=(const Gizmo &)
void UpdateRepresentation()
Updates the representing surface object after changes to center, axes, or radius.
HandleType GetHandleFromPointID(vtkIdType id)
static DataNode::Pointer AddGizmoToNode(DataNode *node, DataStorage *storage)
static bool RemoveGizmoFromNode(DataNode *node, DataStorage *storage)
mitk::Gizmo::HandleType GetHandleFromPointDataValue(double value)
Class for storing surfaces (vtkPolyData).
Find image slices visible on a given plane.