27 #ifndef vtkResliceCursorRepresentation_h 28 #define vtkResliceCursorRepresentation_h 30 #include "vtkInteractionWidgetsModule.h" 52 #define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF 128 71 vtkSetClampMacro(Tolerance,
int,1,100);
72 vtkGetMacro(Tolerance,
int);
100 vtkSetStringMacro(ThicknessLabelFormat);
101 vtkGetStringMacro(ThicknessLabelFormat);
105 enum { Outside=0, NearCenter, NearAxis1, NearAxis2,
108 ResizeThickness, WindowLevelling };
113 virtual char* GetThicknessLabelText();
119 virtual double* GetThicknessLabelPosition();
120 virtual void GetThicknessLabelPosition(
double pos[3]);
121 virtual void GetWorldThicknessLabelPosition(
double pos[3]);
174 void SetWindowLevel(
double window,
double level,
int copy = 0);
175 void GetWindowLevel(
double wl[2]);
215 void SetManipulationMode(
int m );
216 vtkGetMacro(ManipulationMode,
int);
225 void ActivateText(
int);
226 void ManageTextDisplay();
234 virtual void InitializeReslicePlane();
235 virtual void ResetCamera();
260 virtual void CreateDefaultResliceAlgorithm();
261 virtual void SetResliceParameters(
262 double outputSpacingX,
double outputSpacingY,
263 int extentX,
int extentY );
269 virtual void WindowLevel(
double x,
double y );
274 virtual void UpdateReslicePlane();
279 virtual void ComputeReslicePlaneOrigin();
289 void GetVector1(
double d[3] );
290 void GetVector2(
double d[3] );
329 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.