Go to the documentation of this file.
106 #ifndef vtkImagePlaneWidget_h
107 #define vtkImagePlaneWidget_h
109 #include "vtkInteractionWidgetsModule.h"
129 #define VTK_NEAREST_RESLICE 0
130 #define VTK_LINEAR_RESLICE 1
131 #define VTK_CUBIC_RESLICE 2
134 #define VTK_IMAGE_PLANE_WIDGET_MAX_TEXTBUFF 128
155 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
156 double zmin,
double zmax)
override
172 void GetOrigin(
double xyz[3]);
179 void SetPoint1(
double x,
double y,
double z);
180 void SetPoint1(
double xyz[3]);
182 void GetPoint1(
double xyz[3]);
189 void SetPoint2(
double x,
double y,
double z);
190 void SetPoint2(
double xyz[3]);
192 void GetPoint2(
double xyz[3]);
200 void GetCenter(
double xyz[3]);
208 void GetNormal(
double xyz[3]);
214 void GetVector1(
double v1[3]);
219 void GetVector2(
double v2[3]);
234 double GetSlicePosition();
245 void SetResliceInterpolate(
int);
246 vtkGetMacro(ResliceInterpolate,
int);
247 void SetResliceInterpolateToNearestNeighbour()
361 vtkGetMacro(PlaneOrientation,
int);
363 { this->SetPlaneOrientation(0); }
365 { this->SetPlaneOrientation(1); }
367 { this->SetPlaneOrientation(2); }
421 vtkSetClampMacro(MarginSizeX,
double, 0.0, 0.5);
422 vtkGetMacro(MarginSizeX,
double);
423 vtkSetClampMacro(MarginSizeY,
double, 0.0, 0.5);
424 vtkGetMacro(MarginSizeY,
double);
474 vtkGetVectorMacro(CurrentCursorPosition,
double,3);
483 vtkGetMacro(CurrentImageValue,
double);
522 VTK_CURSOR_ACTION = 0,
523 VTK_SLICE_MOTION_ACTION = 1,
524 VTK_WINDOW_LEVEL_ACTION = 2
526 vtkSetClampMacro(LeftButtonAction,
int, VTK_CURSOR_ACTION, VTK_WINDOW_LEVEL_ACTION);
527 vtkGetMacro(LeftButtonAction,
int);
528 vtkSetClampMacro(MiddleButtonAction,
int, VTK_CURSOR_ACTION, VTK_WINDOW_LEVEL_ACTION);
529 vtkGetMacro(MiddleButtonAction,
int);
530 vtkSetClampMacro(RightButtonAction,
int, VTK_CURSOR_ACTION, VTK_WINDOW_LEVEL_ACTION);
531 vtkGetMacro(RightButtonAction,
int);
546 VTK_SHIFT_MODIFIER = 1,
547 VTK_CONTROL_MODIFIER = 2
549 vtkSetClampMacro(LeftButtonAutoModifier,
int, VTK_NO_MODIFIER, VTK_CONTROL_MODIFIER);
550 vtkGetMacro(LeftButtonAutoModifier,
int);
551 vtkSetClampMacro(MiddleButtonAutoModifier,
int, VTK_NO_MODIFIER, VTK_CONTROL_MODIFIER);
552 vtkGetMacro(MiddleButtonAutoModifier,
int);
553 vtkSetClampMacro(RightButtonAutoModifier,
int, VTK_NO_MODIFIER, VTK_CONTROL_MODIFIER);
554 vtkGetMacro(RightButtonAutoModifier,
int);
575 VTK_MIDDLE_BUTTON = 2,
661 void Push(
double *p1,
double *p2);
662 void Spin(
double *p1,
double *p2);
663 void Rotate(
double *p1,
double *p2,
double *vpn);
664 void Scale(
double *p1,
double *p2,
int X,
int Y);
695 double CurrentCursorPosition[3];
712 double RotateAxis[3];
713 double RadiusVector[3];
represent and manipulate 3D points
create an array of quadrilaterals located in a plane
abstract base class for most VTK objects
map the input image through a lookup table
handles properties associated with a texture map
#define VTK_SIZEHINT(...)
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
An actor that displays text. Scaled or unscaled.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
Reslices a volume along a new set of axes.
abstract API for pickers that can pick an instance of vtkProp
represent text properties.
map scalar values into colors via a lookup table
Proxy object to connect input/output ports.
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
Superclass for algorithms that produce only polydata as output.
map vtkDataSet and derived classes to graphics primitives