28 #ifndef vtkSlicerMarkupsWidget_h 29 #define vtkSlicerMarkupsWidget_h 31 #include "vtkSlicerMarkupsModuleVTKWidgetsExport.h" 33 #include "vtkWidgetCallbackMapper.h" 50 void PrintSelf(ostream& os, vtkIndent indent)
override;
75 WidgetEventControlPointSnapToSlice
79 bool IsPointPreviewed();
86 bool RemovePreviewPoint();
94 virtual int AddPointFromWorldCoordinate(
const double worldCoordinates[3]);
98 virtual int AddNodeOnWidget(
const int displayPos[2]);
116 int GetActiveControlPoint();
120 int GetActiveComponentType();
121 int GetActiveComponentIndex();
128 void EndWidgetInteraction();
130 virtual void TranslatePoint(
double eventPos[2],
bool snapToSlice =
false);
131 virtual void TranslateWidget(
double eventPos[2]);
132 virtual void ScaleWidget(
double eventPos[2]);
133 virtual void RotateWidget(
double eventPos[2]);
135 bool IsAnyControlPointLocked();
142 bool ConvertDisplayPositionToWorld(
const int displayPos[2],
double worldPos[3],
double worldOrientationMatrix[9],
143 double* refWorldPos =
nullptr);
168 virtual bool GetClosestPointOnInteractionAxis(
int type,
int index,
const double inputDisplay[2],
double outputIntersectionWorld[3]);
172 virtual bool GetIntersectionOnAxisPlane(
int type,
int index,
const double inputDisplay[2],
double outputIntersectionWorld[3]);
175 double LastEventPosition[2];
176 double StartEventOffsetPosition[2];
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...