28 #ifndef vtkSlicerMarkupsWidget_h 29 #define vtkSlicerMarkupsWidget_h 31 #include "vtkSlicerMarkupsModuleVTKWidgetsExport.h" 33 #include "vtkWidgetCallbackMapper.h" 50 void PrintSelf(ostream& os, vtkIndent indent)
override;
63 WidgetStateMarkups_Last
78 WidgetEventMarkups_Last
82 bool IsPointPreviewed();
89 bool RemovePreviewPoint();
97 virtual int AddPointFromWorldCoordinate(
const double worldCoordinates[3]);
101 virtual int AddNodeOnWidget(
const int displayPos[2]);
119 int GetActiveControlPoint();
123 int GetActiveComponentType();
124 int GetActiveComponentIndex();
131 void EndWidgetInteraction();
133 virtual void TranslatePoint(
double eventPos[2],
bool snapToSlice =
false);
134 virtual void TranslateWidget(
double eventPos[2]);
135 virtual void ScaleWidget(
double eventPos[2]);
136 virtual void RotateWidget(
double eventPos[2]);
138 bool IsAnyControlPointLocked();
145 bool ConvertDisplayPositionToWorld(
const int displayPos[2],
double worldPos[3],
double worldOrientationMatrix[9],
146 double* refWorldPos =
nullptr);
171 virtual bool GetClosestPointOnInteractionAxis(
int type,
int index,
const double inputDisplay[2],
double outputIntersectionWorld[3]);
175 virtual bool GetIntersectionOnAxisPlane(
int type,
int index,
const double inputDisplay[2],
double outputIntersectionWorld[3]);
178 double LastEventPosition[2];
179 double StartEventOffsetPosition[2];
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...