30 #ifndef vtkResliceCursorRepresentation_h
31 #define vtkResliceCursorRepresentation_h
33 #include "vtkInteractionWidgetsModule.h"
55 #define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF 128
74 vtkSetClampMacro(Tolerance,
int, 1, 100);
75 vtkGetMacro(Tolerance,
int);
94 vtkBooleanMacro(RestrictPlaneToVolume,
vtkTypeBool);
103 vtkSetStringMacro(ThicknessLabelFormat);
104 vtkGetStringMacro(ThicknessLabelFormat);
131 virtual char* GetThicknessLabelText();
137 virtual double* GetThicknessLabelPosition();
138 virtual void GetThicknessLabelPosition(
double pos[3]);
139 virtual void GetWorldThicknessLabelPosition(
double pos[3]);
192 void SetWindowLevel(
double window,
double level,
int copy = 0);
193 void GetWindowLevel(
double wl[2]);
233 void SetManipulationMode(
int m);
234 vtkGetMacro(ManipulationMode,
int);
243 void ActivateText(
int);
244 void ManageTextDisplay();
252 virtual void InitializeReslicePlane();
253 virtual void ResetCamera();
274 static int BoundPlane(
double bounds[6],
double origin[3],
double p1[3],
double p2[3]);
281 static void TransformPlane(
vtkPlaneSource* planeToTransform,
double targetCenter[3],
282 double targetNormal[3],
double targetViewUp[3]);
293 virtual void CreateDefaultResliceAlgorithm();
294 virtual void SetResliceParameters(
295 double outputSpacingX,
double outputSpacingY,
int extentX,
int extentY);
301 virtual void WindowLevel(
double x,
double y);
306 virtual void UpdateReslicePlane();
311 virtual void ComputeReslicePlaneOrigin();
321 void GetVector1(
double d[3]);
322 void GetVector2(
double d[3]);
361 double LastEventPosition[2];
vtkMatrix4x4 * ResliceAxes
vtkMatrix4x4 * NewResliceAxes
represents an object (geometry & properties) in a rendered scene
vtkActor * TexturePlaneActor
represent and manipulate 4x4 transformation matrices
vtkImageAlgorithm * Reslice
vtkTextMapper * ThicknessTextMapper
vtkActor2D * ThicknessTextActor
generates a 2D reslice cursor polydata
a actor that draws 2D data
vtkImageMapToColors * ColorMap
char * ThicknessLabelFormat
int ManipulationMode
The widget sets the manipulation mode.
vtkTypeBool ShowReslicedImage
Superclass for mapping scalar values to colors.
An actor that displays text.
draw an image in a rendered 3D scene
a simple class to control print indentation
topologically and geometrically regular array of data
double GetWindow()
Set/Get the current window and level values.
vtkPlaneSource * PlaneSource
perform various plane computations
map the input image through a lookup table
#define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF
vtkTypeBool RestrictPlaneToVolume
handles properties associated with a texture map
represent text properties.
Reslices a volume along a new set of axes.
create an array of quadrilaterals located in a plane
vtkTypeBool UseImageActor
Generic algorithm superclass for image algs.
double GetLevel()
Set/Get the current window and level values.
vtkImageActor * ImageActor
vtkTextProperty * ThicknessTextProperty
vtkScalarsToColors * LookupTable
represent the vtkResliceCursorWidget
Geometry for a reslice cursor.