VTK
|
widget for cropping an image More...
#include <vtkImageCroppingRegionsWidget.h>
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 43 of file vtkImageCroppingRegionsWidget.h.
Standard VTK methods.
Reimplemented from vtk3DWidget.
Definition at line 50 of file vtkImageCroppingRegionsWidget.h.
anonymous enum |
Set/get the slice orientation BTX
Definition at line 83 of file vtkImageCroppingRegionsWidget.h.
Events invoked by this widget
Definition at line 164 of file vtkImageCroppingRegionsWidget.h.
enum vtkImageCroppingRegionsWidget::WidgetStates [protected] |
NoLine | |
MovingH1AndV1 | |
MovingH2AndV1 | |
MovingH1AndV2 | |
MovingH2AndV2 | |
MovingV1 | |
MovingV2 | |
MovingH1 | |
MovingH2 |
Definition at line 205 of file vtkImageCroppingRegionsWidget.h.
vtkImageCroppingRegionsWidget::vtkImageCroppingRegionsWidget | ( | ) | [protected] |
vtkImageCroppingRegionsWidget::~vtkImageCroppingRegionsWidget | ( | ) | [protected] |
static vtkImageCroppingRegionsWidget* vtkImageCroppingRegionsWidget::New | ( | ) | [static] |
Standard VTK methods.
Reimplemented from vtkObject.
virtual const char* vtkImageCroppingRegionsWidget::GetClassName | ( | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtk3DWidget.
static int vtkImageCroppingRegionsWidget::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK methods.
Reimplemented from vtk3DWidget.
virtual int vtkImageCroppingRegionsWidget::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtk3DWidget.
static vtkImageCroppingRegionsWidget* vtkImageCroppingRegionsWidget::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard VTK methods.
Reimplemented from vtk3DWidget.
void vtkImageCroppingRegionsWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard VTK methods.
Reimplemented from vtk3DWidget.
virtual void vtkImageCroppingRegionsWidget::PlaceWidget | ( | double | bounds[6] | ) | [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 void vtkImageCroppingRegionsWidget::SetEnabled | ( | int | enabling | ) | [virtual] |
Enable/disable the widget
Reimplemented from vtkInteractorObserver.
virtual double* vtkImageCroppingRegionsWidget::GetPlanePositions | ( | ) | [virtual] |
Set/Get the plane positions that represent the cropped region.
virtual void vtkImageCroppingRegionsWidget::GetPlanePositions | ( | double & | , |
double & | , | ||
double & | , | ||
double & | , | ||
double & | , | ||
double & | |||
) | [virtual] |
Set/Get the plane positions that represent the cropped region.
virtual void vtkImageCroppingRegionsWidget::GetPlanePositions | ( | double | [6] | ) | [virtual] |
Set/Get the plane positions that represent the cropped region.
virtual void vtkImageCroppingRegionsWidget::SetPlanePositions | ( | double | pos[6] | ) | [inline, virtual] |
Set/Get the plane positions that represent the cropped region.
Definition at line 66 of file vtkImageCroppingRegionsWidget.h.
virtual void vtkImageCroppingRegionsWidget::SetPlanePositions | ( | float | pos[6] | ) | [inline, virtual] |
Set/Get the plane positions that represent the cropped region.
Definition at line 68 of file vtkImageCroppingRegionsWidget.h.
virtual void vtkImageCroppingRegionsWidget::SetPlanePositions | ( | double | xMin, |
double | xMax, | ||
double | yMin, | ||
double | yMax, | ||
double | zMin, | ||
double | zMax | ||
) | [virtual] |
Set/Get the plane positions that represent the cropped region.
virtual void vtkImageCroppingRegionsWidget::SetCroppingRegionFlags | ( | int | flags | ) | [virtual] |
Set/Get the cropping region flags
virtual int vtkImageCroppingRegionsWidget::GetCroppingRegionFlags | ( | ) | [virtual] |
Set/Get the cropping region flags
virtual int vtkImageCroppingRegionsWidget::GetSliceOrientation | ( | ) | [virtual] |
Set/get the slice orientation BTX
virtual void vtkImageCroppingRegionsWidget::SetSliceOrientation | ( | int | orientation | ) | [virtual] |
Set/get the slice orientation BTX
virtual void vtkImageCroppingRegionsWidget::SetSliceOrientationToXY | ( | ) | [inline, virtual] |
Set/get the slice orientation BTX
Definition at line 92 of file vtkImageCroppingRegionsWidget.h.
virtual void vtkImageCroppingRegionsWidget::SetSliceOrientationToYZ | ( | ) | [inline, virtual] |
Set/get the slice orientation BTX
Definition at line 94 of file vtkImageCroppingRegionsWidget.h.
virtual void vtkImageCroppingRegionsWidget::SetSliceOrientationToXZ | ( | ) | [inline, virtual] |
Set/get the slice orientation BTX
Definition at line 96 of file vtkImageCroppingRegionsWidget.h.
virtual void vtkImageCroppingRegionsWidget::SetSlice | ( | int | num | ) | [virtual] |
Set/Get the slice number
virtual int vtkImageCroppingRegionsWidget::GetSlice | ( | ) | [virtual] |
Set/Get the slice number
virtual void vtkImageCroppingRegionsWidget::SetLine1Color | ( | double | r, |
double | g, | ||
double | b | ||
) | [virtual] |
Set/Get line 1 color
virtual void vtkImageCroppingRegionsWidget::SetLine1Color | ( | double | rgb[3] | ) | [inline, virtual] |
Set/Get line 1 color
Definition at line 109 of file vtkImageCroppingRegionsWidget.h.
virtual double* vtkImageCroppingRegionsWidget::GetLine1Color | ( | ) | [virtual] |
Set/Get line 1 color
virtual void vtkImageCroppingRegionsWidget::GetLine1Color | ( | double | rgb[3] | ) | [virtual] |
Set/Get line 1 color
virtual void vtkImageCroppingRegionsWidget::SetLine2Color | ( | double | r, |
double | g, | ||
double | b | ||
) | [virtual] |
Set/Get line 2 color
virtual void vtkImageCroppingRegionsWidget::SetLine2Color | ( | double | rgb[3] | ) | [inline, virtual] |
Set/Get line 2 color
Definition at line 118 of file vtkImageCroppingRegionsWidget.h.
virtual double* vtkImageCroppingRegionsWidget::GetLine2Color | ( | ) | [virtual] |
Set/Get line 2 color
virtual void vtkImageCroppingRegionsWidget::GetLine2Color | ( | double | rgb[3] | ) | [virtual] |
Set/Get line 2 color
virtual void vtkImageCroppingRegionsWidget::SetLine3Color | ( | double | r, |
double | g, | ||
double | b | ||
) | [virtual] |
Set/Get line 3 color
virtual void vtkImageCroppingRegionsWidget::SetLine3Color | ( | double | rgb[3] | ) | [inline, virtual] |
Set/Get line 3 color
Definition at line 127 of file vtkImageCroppingRegionsWidget.h.
virtual double* vtkImageCroppingRegionsWidget::GetLine3Color | ( | ) | [virtual] |
Set/Get line 3 color
virtual void vtkImageCroppingRegionsWidget::GetLine3Color | ( | double | rgb[3] | ) | [virtual] |
Set/Get line 3 color
virtual void vtkImageCroppingRegionsWidget::SetLine4Color | ( | double | r, |
double | g, | ||
double | b | ||
) | [virtual] |
Set/Get line 4 color
virtual void vtkImageCroppingRegionsWidget::SetLine4Color | ( | double | rgb[3] | ) | [inline, virtual] |
Set/Get line 4 color
Definition at line 136 of file vtkImageCroppingRegionsWidget.h.
virtual double* vtkImageCroppingRegionsWidget::GetLine4Color | ( | ) | [virtual] |
Set/Get line 4 color
virtual void vtkImageCroppingRegionsWidget::GetLine4Color | ( | double | rgb[3] | ) | [virtual] |
Set/Get line 4 color
virtual void vtkImageCroppingRegionsWidget::SetVolumeMapper | ( | vtkVolumeMapper * | mapper | ) | [virtual] |
Set/Get the input volume mapper Update the widget according to its mapper
virtual vtkVolumeMapper* vtkImageCroppingRegionsWidget::GetVolumeMapper | ( | ) | [virtual] |
Set/Get the input volume mapper Update the widget according to its mapper
virtual void vtkImageCroppingRegionsWidget::UpdateAccordingToInput | ( | ) | [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.
double vtkImageCroppingRegionsWidget::GetSlicePosition | ( | ) | [protected] |
static void vtkImageCroppingRegionsWidget::ProcessEvents | ( | vtkObject * | object, |
unsigned long | event, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
Handles the char widget activation event. Also handles the delete event.
Reimplemented from vtkInteractorObserver.
void vtkImageCroppingRegionsWidget::SetMouseCursor | ( | int | state | ) | [protected] |
int vtkImageCroppingRegionsWidget::ComputeWorldCoordinate | ( | int | x, |
int | y, | ||
double * | coord | ||
) | [protected] |
void vtkImageCroppingRegionsWidget::UpdateOpacity | ( | ) | [protected] |
void vtkImageCroppingRegionsWidget::UpdateGeometry | ( | ) | [protected] |
void vtkImageCroppingRegionsWidget::ConstrainPlanePositions | ( | double | positions[6] | ) | [protected] |
Definition at line 176 of file vtkImageCroppingRegionsWidget.h.
vtkLineSource* vtkImageCroppingRegionsWidget::LineSources[4] [protected] |
Definition at line 178 of file vtkImageCroppingRegionsWidget.h.
vtkActor2D* vtkImageCroppingRegionsWidget::LineActors[4] [protected] |
Definition at line 179 of file vtkImageCroppingRegionsWidget.h.
vtkPolyData* vtkImageCroppingRegionsWidget::RegionPolyData[9] [protected] |
Definition at line 180 of file vtkImageCroppingRegionsWidget.h.
vtkActor2D* vtkImageCroppingRegionsWidget::RegionActors[9] [protected] |
Definition at line 181 of file vtkImageCroppingRegionsWidget.h.
double vtkImageCroppingRegionsWidget::PlanePositions[6] [protected] |
Definition at line 183 of file vtkImageCroppingRegionsWidget.h.
int vtkImageCroppingRegionsWidget::SliceOrientation [protected] |
Definition at line 185 of file vtkImageCroppingRegionsWidget.h.
int vtkImageCroppingRegionsWidget::Slice [protected] |
Definition at line 186 of file vtkImageCroppingRegionsWidget.h.
Definition at line 190 of file vtkImageCroppingRegionsWidget.h.
int vtkImageCroppingRegionsWidget::MouseCursorState [protected] |
Definition at line 192 of file vtkImageCroppingRegionsWidget.h.
int vtkImageCroppingRegionsWidget::Moving [protected] |
Definition at line 193 of file vtkImageCroppingRegionsWidget.h.