18#ifndef vtkResliceCursorRepresentation_h
19#define vtkResliceCursorRepresentation_h
21#include "vtkInteractionWidgetsModule.h"
25VTK_ABI_NAMESPACE_BEGIN
45#define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF 128
65 vtkSetClampMacro(Tolerance,
int, 1, 100);
66 vtkGetMacro(Tolerance,
int);
94 vtkSetStringMacro(ThicknessLabelFormat);
95 vtkGetStringMacro(ThicknessLabelFormat);
185 void SetWindowLevel(
double window,
double level,
int copy = 0);
186 void GetWindowLevel(
double wl[2]);
187 double GetWindow() {
return this->CurrentWindow; }
227 vtkSetMacro(IndependentThickness,
bool);
228 vtkGetMacro(IndependentThickness,
bool);
229 vtkBooleanMacro(IndependentThickness,
bool);
237 void SetManipulationMode(
int m);
238 vtkGetMacro(ManipulationMode,
int);
247 void ActivateText(
int);
248 void ManageTextDisplay();
256 virtual
void InitializeReslicePlane();
257 virtual
void ResetCamera();
279 static
int BoundPlane(
double bounds[6],
double origin[3],
double p1[3],
double p2[3]);
286 static
void TransformPlane(
vtkPlaneSource* planeToTransform,
double targetCenter[3],
287 double targetNormal[3],
double targetViewUp[3]);
298 virtual
void CreateDefaultResliceAlgorithm();
299 virtual
void SetResliceParameters(
300 double outputSpacingX,
double outputSpacingY,
int extentX,
int extentY);
306 virtual
void WindowLevel(
double x,
double y);
311 virtual
void UpdateReslicePlane();
316 virtual
void ComputeReslicePlaneOrigin();
326 void GetVector1(
double d[3]);
327 void GetVector2(
double d[3]);
334 int ManipulationMode;
343 char* ThicknessLabelFormat;
360 double OriginalWindow;
361 double OriginalLevel;
362 double CurrentWindow;
364 double InitialWindow;
366 double LastEventPosition[2];
370 bool IndependentThickness = false;
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
virtual char * GetThicknessLabelText()
Get the text shown in the widget's label.
double GetLevel()
Set/Get the current window and level values.
virtual double * GetThicknessLabelPosition()
Get the position of the widget's label in display coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
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.
virtual void GetWorldThicknessLabelPosition(double pos[3])
Get the position of the widget's label in display coordinates.
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
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALEXCLUDE(reason)