21 #ifndef vtkImageCroppingRegionsWidget_h
22 #define vtkImageCroppingRegionsWidget_h
25 #include "vtkInteractionWidgetsModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
63 vtkGetVector6Macro(PlanePositions,
double);
66 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
70 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
72 virtual void SetPlanePositions(
73 double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
80 virtual void SetCroppingRegionFlags(
int flags);
81 vtkGetMacro(CroppingRegionFlags,
int);
90 SLICE_ORIENTATION_YZ = 0,
91 SLICE_ORIENTATION_XZ = 1,
92 SLICE_ORIENTATION_XY = 2
95 vtkGetMacro(SliceOrientation,
int);
114 virtual void SetSlice(
int num);
115 vtkGetMacro(Slice,
int);
122 virtual void SetLine1Color(
double r,
double g,
double b);
124 virtual double* GetLine1Color();
125 virtual void GetLine1Color(
double rgb[3]);
132 virtual void SetLine2Color(
double r,
double g,
double b);
134 virtual double* GetLine2Color();
135 virtual void GetLine2Color(
double rgb[3]);
142 virtual void SetLine3Color(
double r,
double g,
double b);
144 virtual double* GetLine3Color();
145 virtual void GetLine3Color(
double rgb[3]);
152 virtual void SetLine4Color(
double r,
double g,
double b);
154 virtual double* GetLine4Color();
155 virtual void GetLine4Color(
double rgb[3]);
165 virtual void UpdateAccordingToInput();
172 void MoveHorizontalLine();
173 void MoveVerticalLine();
174 void MoveIntersectingLines();
175 void UpdateCursorIcon();
176 void OnButtonPress();
177 void OnButtonRelease();
186 CroppingPlanesPositionChangedEvent = 10050
200 double PlanePositions[6];
205 double GetSlicePosition();
215 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
217 void SetMouseCursor(
int state);
232 int ComputeWorldCoordinate(
int x,
int y,
double* coord);
234 void UpdateOpacity();
235 void UpdateGeometry();
236 void ConstrainPlanePositions(
double positions[6]);
243 VTK_ABI_NAMESPACE_END
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...