33 #ifndef vtkImageCroppingRegionsWidget_h 34 #define vtkImageCroppingRegionsWidget_h 37 #include "vtkInteractionWidgetsModule.h" 74 vtkGetVector6Macro(PlanePositions,
double);
77 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
81 this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);
83 virtual void SetPlanePositions(
84 double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
91 virtual void SetCroppingRegionFlags(
int flags);
92 vtkGetMacro(CroppingRegionFlags,
int);
101 SLICE_ORIENTATION_YZ = 0,
102 SLICE_ORIENTATION_XZ = 1,
103 SLICE_ORIENTATION_XY = 2
106 vtkGetMacro(SliceOrientation,
int);
125 virtual void SetSlice(
int num);
126 vtkGetMacro(Slice,
int);
133 virtual void SetLine1Color(
double r,
double g,
double b);
135 virtual double* GetLine1Color();
136 virtual void GetLine1Color(
double rgb[3]);
143 virtual void SetLine2Color(
double r,
double g,
double b);
145 virtual double* GetLine2Color();
146 virtual void GetLine2Color(
double rgb[3]);
153 virtual void SetLine3Color(
double r,
double g,
double b);
155 virtual double* GetLine3Color();
156 virtual void GetLine3Color(
double rgb[3]);
163 virtual void SetLine4Color(
double r,
double g,
double b);
165 virtual double* GetLine4Color();
166 virtual void GetLine4Color(
double rgb[3]);
176 virtual void UpdateAccordingToInput();
183 void MoveHorizontalLine();
184 void MoveVerticalLine();
185 void MoveIntersectingLines();
186 void UpdateCursorIcon();
187 void OnButtonPress();
188 void OnButtonRelease();
197 CroppingPlanesPositionChangedEvent = 10050
211 double PlanePositions[6];
216 double GetSlicePosition();
226 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
228 void SetMouseCursor(
int state);
243 int ComputeWorldCoordinate(
int x,
int y,
double* coord);
245 void UpdateOpacity();
246 void UpdateGeometry();
247 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...