30 #ifndef vtkImageCroppingRegionsWidget_h 31 #define vtkImageCroppingRegionsWidget_h 33 #include "vtkInteractionWidgetsModule.h" 72 vtkGetVector6Macro(PlanePositions,
double);
74 {this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);}
76 {this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);}
77 virtual void SetPlanePositions(
double xMin,
double xMax,
78 double yMin,
double yMax,
79 double zMin,
double zMax);
86 virtual void SetCroppingRegionFlags(
int flags);
87 vtkGetMacro(CroppingRegionFlags,
int);
96 SLICE_ORIENTATION_YZ = 0,
97 SLICE_ORIENTATION_XZ = 1,
98 SLICE_ORIENTATION_XY = 2
101 vtkGetMacro(SliceOrientation,
int);
114 virtual void SetSlice(
int num);
115 vtkGetMacro(Slice,
int);
122 virtual void SetLine1Color(
double r,
double g,
double b);
124 { this->SetLine1Color(rgb[0], rgb[1], rgb[2]); }
125 virtual double *GetLine1Color();
126 virtual void GetLine1Color(
double rgb[3]);
133 virtual void SetLine2Color(
double r,
double g,
double b);
135 { this->SetLine2Color(rgb[0], rgb[1], rgb[2]); }
136 virtual double *GetLine2Color();
137 virtual void GetLine2Color(
double rgb[3]);
144 virtual void SetLine3Color(
double r,
double g,
double b);
146 { this->SetLine3Color(rgb[0], rgb[1], rgb[2]); }
147 virtual double *GetLine3Color();
148 virtual void GetLine3Color(
double rgb[3]);
155 virtual void SetLine4Color(
double r,
double g,
double b);
157 { this->SetLine4Color(rgb[0], rgb[1], rgb[2]); }
158 virtual double *GetLine4Color();
159 virtual void GetLine4Color(
double rgb[3]);
169 virtual void UpdateAccordingToInput();
176 void MoveHorizontalLine();
177 void MoveVerticalLine();
178 void MoveIntersectingLines();
179 void UpdateCursorIcon();
180 void OnButtonPress();
181 void OnButtonRelease();
190 CroppingPlanesPositionChangedEvent = 10050
205 double PlanePositions[6];
210 double GetSlicePosition();
224 void SetMouseCursor(
int state);
239 int ComputeWorldCoordinate(
int x,
int y,
double* coord);
241 void UpdateOpacity();
242 void UpdateGeometry();
243 void ConstrainPlanePositions(
double positions[6]);
Abstract class for a volume mapper.
abstract base class for most VTK objects
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
a actor that draws 2D data
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
concrete dataset represents vertices, lines, polygons, and triangle strips
a simple class to control print indentation
topologically and geometrically regular array of data
create a line defined by two end points
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...