VTK
|
widget for cropping an image More...
#include <vtkImageCroppingRegionsWidget.h>
Public Types | |
enum | WidgetEventIds { CroppingPlanesPositionChangedEvent = 10050 } |
![]() | |
typedef vtkInteractorObserver | Superclass |
Public Member Functions | |
virtual void | SetEnabled (int enabling) |
virtual void | PlaceWidget (double bounds[6]) |
virtual double * | GetPlanePositions () |
virtual void | GetPlanePositions (double &, double &, double &, double &, double &, double &) |
virtual void | GetPlanePositions (double[6]) |
virtual void | SetPlanePositions (double pos[6]) |
virtual void | SetPlanePositions (float pos[6]) |
virtual void | SetPlanePositions (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax) |
virtual void | SetCroppingRegionFlags (int flags) |
virtual int | GetCroppingRegionFlags () |
virtual void | SetSlice (int num) |
virtual int | GetSlice () |
virtual void | SetLine1Color (double r, double g, double b) |
virtual void | SetLine1Color (double rgb[3]) |
virtual double * | GetLine1Color () |
virtual void | GetLine1Color (double rgb[3]) |
virtual void | SetLine2Color (double r, double g, double b) |
virtual void | SetLine2Color (double rgb[3]) |
virtual double * | GetLine2Color () |
virtual void | GetLine2Color (double rgb[3]) |
virtual void | SetLine3Color (double r, double g, double b) |
virtual void | SetLine3Color (double rgb[3]) |
virtual double * | GetLine3Color () |
virtual void | GetLine3Color (double rgb[3]) |
virtual void | SetLine4Color (double r, double g, double b) |
virtual void | SetLine4Color (double rgb[3]) |
virtual double * | GetLine4Color () |
virtual void | GetLine4Color (double rgb[3]) |
virtual void | SetVolumeMapper (vtkVolumeMapper *mapper) |
virtual vtkVolumeMapper * | GetVolumeMapper () |
virtual void | UpdateAccordingToInput () |
void | MoveHorizontalLine () |
void | MoveVerticalLine () |
void | MoveIntersectingLines () |
void | UpdateCursorIcon () |
void | OnButtonPress () |
void | OnButtonRelease () |
void | OnMouseMove () |
![]() | |
vtk3DWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | PlaceWidget () |
virtual void | PlaceWidget (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) |
virtual void | SetProp3D (vtkProp3D *) |
virtual vtkProp3D * | GetProp3D () |
virtual void | SetInputData (vtkDataSet *) |
virtual void | SetInputConnection (vtkAlgorithmOutput *) |
virtual vtkDataSet * | GetInput () |
virtual void | SetPlaceFactor (double) |
virtual double | GetPlaceFactor () |
virtual void | SetHandleSize (double) |
virtual double | GetHandleSize () |
Protected Types | |
enum | WidgetStates { NoLine = 0, MovingH1AndV1, MovingH2AndV1, MovingH1AndV2, MovingH2AndV2, MovingV1, MovingV2, MovingH1, MovingH2 } |
Protected Member Functions | |
vtkImageCroppingRegionsWidget () | |
~vtkImageCroppingRegionsWidget () | |
double | GetSlicePosition () |
void | SetMouseCursor (int state) |
int | ComputeWorldCoordinate (int x, int y, double *coord) |
void | UpdateOpacity () |
void | UpdateGeometry () |
void | ConstrainPlanePositions (double positions[6]) |
![]() | |
vtk3DWidget () | |
~vtk3DWidget () | |
void | AdjustBounds (double bounds[6], double newBounds[6], double center[3]) |
double | SizeHandles (double factor) |
virtual void | SizeHandles () |
void | UpdateInput () |
Static Protected Member Functions | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Additional Inherited Members | |
![]() | |
static int | IsTypeOf (const char *type) |
static vtk3DWidget * | SafeDownCast (vtkObjectBase *o) |
widget for cropping an image
This widget displays a set of axis aligned lines that can be interactively manipulated to crop a volume. The region to be cropped away is displayed in a different highlight. Much like the vtkVolumeMapper, this widget supports 27 possible configurations of cropping planes. (See CroppingRegionFlags). If a volume mapper is set, the cropping planes are directly propagated to the volume mapper. The widget invokes a CroppingPlanesPositionChangedEvent when the position of any of the cropping planes is changed. The widget also invokes an InteractionEvent in response to user interaction.
Definition at line 44 of file vtkImageCroppingRegionsWidget.h.
Standard VTK methods.
Definition at line 51 of file vtkImageCroppingRegionsWidget.h.
anonymous enum |
Set/get the slice orientation BTX
Enumerator | |
---|---|
SLICE_ORIENTATION_YZ | |
SLICE_ORIENTATION_XZ | |
SLICE_ORIENTATION_XY |
Definition at line 84 of file vtkImageCroppingRegionsWidget.h.
Events invoked by this widget
Enumerator | |
---|---|
CroppingPlanesPositionChangedEvent |
Definition at line 165 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Enumerator | |
---|---|
NoLine | |
MovingH1AndV1 | |
MovingH2AndV1 | |
MovingH1AndV2 | |
MovingH2AndV2 | |
MovingV1 | |
MovingV2 | |
MovingH1 | |
MovingH2 |
Definition at line 206 of file vtkImageCroppingRegionsWidget.h.
|
protected |
|
protected |
|
static |
Standard VTK methods.
|
static |
Standard VTK methods.
|
virtual |
Standard VTK methods.
Reimplemented from vtk3DWidget.
|
static |
Standard VTK methods.
|
protectedvirtual |
Standard VTK methods.
Reimplemented from vtk3DWidget.
vtkImageCroppingRegionsWidget* vtkImageCroppingRegionsWidget::NewInstance | ( | ) | const |
Standard VTK methods.
void vtkImageCroppingRegionsWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard VTK methods.
|
virtual |
This method is used to initially place the widget. The placement of the widget depends on whether a Prop3D or input dataset is provided. If one of these two is provided, they will be used to obtain a bounding box, around which the widget is placed. Otherwise, you can manually specify a bounds with the PlaceWidget(bounds) method. Note: PlaceWidget(bounds) is required by all subclasses; the other methods are provided as convenience methods.
Implements vtk3DWidget.
|
virtual |
Enable/disable the widget
|
virtual |
Set/Get the plane positions that represent the cropped region.
|
virtual |
Set/Get the plane positions that represent the cropped region.
|
virtual |
Set/Get the plane positions that represent the cropped region.
|
inlinevirtual |
Set/Get the plane positions that represent the cropped region.
Definition at line 67 of file vtkImageCroppingRegionsWidget.h.
|
inlinevirtual |
Set/Get the plane positions that represent the cropped region.
Definition at line 69 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get the plane positions that represent the cropped region.
|
virtual |
Set/Get the cropping region flags
|
virtual |
Set/Get the cropping region flags
|
virtual |
Set/get the slice orientation BTX
|
virtual |
Set/get the slice orientation BTX
|
inlinevirtual |
Set/get the slice orientation BTX
Definition at line 93 of file vtkImageCroppingRegionsWidget.h.
|
inlinevirtual |
Set/get the slice orientation BTX
Definition at line 95 of file vtkImageCroppingRegionsWidget.h.
|
inlinevirtual |
Set/get the slice orientation BTX
Definition at line 97 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get the slice number
|
virtual |
Set/Get the slice number
|
virtual |
Set/Get line 1 color
|
inlinevirtual |
Set/Get line 1 color
Definition at line 110 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get line 1 color
|
virtual |
Set/Get line 1 color
|
virtual |
Set/Get line 2 color
|
inlinevirtual |
Set/Get line 2 color
Definition at line 119 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get line 2 color
|
virtual |
Set/Get line 2 color
|
virtual |
Set/Get line 3 color
|
inlinevirtual |
Set/Get line 3 color
Definition at line 128 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get line 3 color
|
virtual |
Set/Get line 3 color
|
virtual |
Set/Get line 4 color
|
inlinevirtual |
Set/Get line 4 color
Definition at line 137 of file vtkImageCroppingRegionsWidget.h.
|
virtual |
Set/Get line 4 color
|
virtual |
Set/Get line 4 color
|
virtual |
Set/Get the input volume mapper Update the widget according to its mapper
|
virtual |
Set/Get the input volume mapper Update the widget according to its mapper
|
virtual |
Set/Get the input volume mapper Update the widget according to its mapper
void vtkImageCroppingRegionsWidget::MoveHorizontalLine | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::MoveVerticalLine | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::MoveIntersectingLines | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::UpdateCursorIcon | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::OnButtonPress | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::OnButtonRelease | ( | ) |
Callbacks for user interaction.
void vtkImageCroppingRegionsWidget::OnMouseMove | ( | ) |
Callbacks for user interaction.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 177 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 179 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 180 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 181 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 182 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 184 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 186 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 187 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 191 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 193 of file vtkImageCroppingRegionsWidget.h.
|
protected |
Definition at line 194 of file vtkImageCroppingRegionsWidget.h.