33 #ifndef vtkImageCroppingRegionsWidget_h 
   34 #define vtkImageCroppingRegionsWidget_h 
   36 #include "vtkInteractionWidgetsModule.h"  
   75   vtkGetVector6Macro(PlanePositions, 
double);
 
   77     {this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);}
 
   79     {this->SetPlanePositions(pos[0], pos[1], pos[2], pos[3], pos[4], pos[5]);}
 
   80   virtual void SetPlanePositions(
double xMin, 
double xMax,
 
   81                                  double yMin, 
double yMax,
 
   82                                  double zMin, 
double zMax);
 
   89   virtual void SetCroppingRegionFlags(
int flags);
 
   90   vtkGetMacro(CroppingRegionFlags, 
int);
 
   99     SLICE_ORIENTATION_YZ = 0,
 
  100     SLICE_ORIENTATION_XZ = 1,
 
  101     SLICE_ORIENTATION_XY = 2
 
  104   vtkGetMacro(SliceOrientation, 
int);
 
  117   virtual void SetSlice(
int num);
 
  118   vtkGetMacro(Slice, 
int);
 
  125   virtual void SetLine1Color(
double r, 
double g, 
double b);
 
  127     { this->SetLine1Color(rgb[0], rgb[1], rgb[2]); }
 
  128   virtual double *GetLine1Color();
 
  129   virtual void GetLine1Color(
double rgb[3]);
 
  136   virtual void SetLine2Color(
double r, 
double g, 
double b);
 
  138     { this->SetLine2Color(rgb[0], rgb[1], rgb[2]); }
 
  139   virtual double *GetLine2Color();
 
  140   virtual void GetLine2Color(
double rgb[3]);
 
  147   virtual void SetLine3Color(
double r, 
double g, 
double b);
 
  149     { this->SetLine3Color(rgb[0], rgb[1], rgb[2]); }
 
  150   virtual double *GetLine3Color();
 
  151   virtual void GetLine3Color(
double rgb[3]);
 
  158   virtual void SetLine4Color(
double r, 
double g, 
double b);
 
  160     { this->SetLine4Color(rgb[0], rgb[1], rgb[2]); }
 
  161   virtual double *GetLine4Color();
 
  162   virtual void GetLine4Color(
double rgb[3]);
 
  172   virtual void UpdateAccordingToInput();
 
  179   void MoveHorizontalLine();
 
  180   void MoveVerticalLine();
 
  181   void MoveIntersectingLines();
 
  182   void UpdateCursorIcon();
 
  183   void OnButtonPress();
 
  184   void OnButtonRelease();
 
  193     CroppingPlanesPositionChangedEvent = 10050
 
  208   double PlanePositions[6];
 
  213   double GetSlicePosition();
 
  227   void SetMouseCursor(
int state);
 
  242   int ComputeWorldCoordinate(
int x, 
int y, 
double* coord);
 
  244   void UpdateOpacity();
 
  245   void UpdateGeometry();
 
  246   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...