Go to the documentation of this file.
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 };
216 vtkGetMacro(ManipulationMode,
int);
262 double outputSpacingX,
double outputSpacingY,
263 int extentX,
int extentY );
329 double LastEventPosition[2];
vtkImageActor * ImageActor
perform various plane computations
void SetTextProperty(vtkTextProperty *tprop)
Set/Get the text property for the image data and window-level annotation.
#define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF
vtkTextProperty * GetTextProperty()
virtual vtkResliceCursor * GetResliceCursor()=0
vtkScalarsToColors * LookupTable
vtkMatrix4x4 * NewResliceAxes
create an array of quadrilaterals located in a plane
Geometry for a reslice cursor.
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
map the input image through a lookup table
virtual void SetLookupTable(vtkScalarsToColors *)
Set/Get the internal lookuptable (lut) to one defined by the user, or, alternatively,...
virtual void SetColorMap(vtkImageMapToColors *)
void GetVector2(double d[3])
Generic algorithm superclass for image algs.
virtual void ResetCamera()
vtkScalarsToColors * CreateDefaultLookupTable()
vtkImageMapToColors * ColorMap
vtkPlaneSource * PlaneSource
void ActivateText(int)
INTERNAL - Do not use.
handles properties associated with a texture map
virtual vtkResliceCursorPolyDataAlgorithm * GetCursorAlgorithm()=0
Get the underlying cursor source.
virtual void GetWorldThicknessLabelPosition(double pos[3])
virtual double * GetThicknessLabelPosition()
Get the position of the widget's label in display coordinates.
virtual void CreateDefaultResliceAlgorithm()
Create New Reslice plane.
int ManipulationMode
The widget sets the manipulation mode.
void GetWindowLevel(double wl[2])
char * ThicknessLabelFormat
generates a 2D reslice cursor polydata
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
An actor that displays text.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
virtual void InitializeReslicePlane()
Initialize the reslice planes and the camera center.
vtkTypeBool ShowReslicedImage
Reslices a volume along a new set of axes.
void SetManipulationMode(int m)
INTERNAL - Do not use Set the manipulation mode.
Superclass for mapping scalar values to colors.
virtual void ComputeReslicePlaneOrigin()
Compute the origin of the planes so as to capture the entire image.
represent text properties.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a actor that draws 2D data
vtkTextProperty * ThicknessTextProperty
virtual void WindowLevel(double x, double y)
Process window level.
virtual void UpdateReslicePlane()
Update the reslice plane.
draw an image in a rendered 3D scene
vtkTypeBool RestrictPlaneToVolume
void SetWindowLevel(double window, double level, int copy=0)
Set/Get the current window and level values.
vtkMatrix4x4 * ResliceAxes
virtual void ComputeOrigin(vtkMatrix4x4 *)
~vtkResliceCursorRepresentation() override
vtkActor * TexturePlaneActor
vtkResliceCursorRepresentation()
vtkImageAlgorithm * Reslice
virtual char * GetThicknessLabelText()
Get the text shown in the widget's label.
represent the vtkResliceCursorWidget
void GetVector1(double d[3])
virtual void GetThicknessLabelPosition(double pos[3])
virtual void SetResliceParameters(double outputSpacingX, double outputSpacingY, int extentX, int extentY)
vtkTypeBool UseImageActor
vtkActor2D * ThicknessTextActor
vtkTextMapper * ThicknessTextMapper