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