30 #ifndef vtkImageCroppingRegionsWidget_h 31 #define vtkImageCroppingRegionsWidget_h 34 #include "vtkInteractionWidgetsModule.h" 71 vtkGetVector6Macro(PlanePositions,
double);
74 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
78 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
80 virtual void SetPlanePositions(
81 double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
88 virtual void SetCroppingRegionFlags(
int flags);
89 vtkGetMacro(CroppingRegionFlags,
int);
98 SLICE_ORIENTATION_YZ = 0,
99 SLICE_ORIENTATION_XZ = 1,
100 SLICE_ORIENTATION_XY = 2
103 vtkGetMacro(SliceOrientation,
int);
122 virtual void SetSlice(
int num);
123 vtkGetMacro(Slice,
int);
130 virtual void SetLine1Color(
double r,
double g,
double b);
132 virtual double* GetLine1Color();
133 virtual void GetLine1Color(
double rgb[3]);
140 virtual void SetLine2Color(
double r,
double g,
double b);
142 virtual double* GetLine2Color();
143 virtual void GetLine2Color(
double rgb[3]);
150 virtual void SetLine3Color(
double r,
double g,
double b);
152 virtual double* GetLine3Color();
153 virtual void GetLine3Color(
double rgb[3]);
160 virtual void SetLine4Color(
double r,
double g,
double b);
162 virtual double* GetLine4Color();
163 virtual void GetLine4Color(
double rgb[3]);
173 virtual void UpdateAccordingToInput();
180 void MoveHorizontalLine();
181 void MoveVerticalLine();
182 void MoveIntersectingLines();
183 void UpdateCursorIcon();
184 void OnButtonPress();
185 void OnButtonRelease();
194 CroppingPlanesPositionChangedEvent = 10050
208 double PlanePositions[6];
213 double GetSlicePosition();
223 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
225 void SetMouseCursor(
int state);
240 int ComputeWorldCoordinate(
int x,
int y,
double* coord);
242 void UpdateOpacity();
243 void UpdateGeometry();
244 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...