#include <vtkPolygonalHandleRepresentation3D.h>
This class serves as the geometrical representation of a vtkHandleWidget. The handle can be represented by an arbitrary polygonal data (vtkPolyData), set via SetHandle(vtkPolyData *). The actual position of the handle will be initially assumed to be (0,0,0). You can specify an offset from this position if desired.
Definition at line 44 of file vtkPolygonalHandleRepresentation3D.h.
typedef vtkHandleRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkPolygonalHandleRepresentation3D * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions | |
virtual void | SetWorldPosition (double p[3]) |
virtual void | SetDisplayPosition (double p[3]) |
void | SetHandle (vtkPolyData *) |
vtkPolyData * | GetHandle () |
virtual void | SetOffset (double, double, double) |
virtual void | SetOffset (double[3]) |
virtual double * | GetOffset () |
virtual void | GetOffset (double &, double &, double &) |
virtual void | GetOffset (double[3]) |
void | SetProperty (vtkProperty *) |
void | SetSelectedProperty (vtkProperty *) |
virtual vtkProperty * | GetProperty () |
virtual vtkProperty * | GetSelectedProperty () |
virtual void | BuildRepresentation () |
virtual void | StartWidgetInteraction (double eventPos[2]) |
virtual void | WidgetInteraction (double eventPos[2]) |
virtual int | ComputeInteractionState (int X, int Y, int modify=0) |
virtual void | ShallowCopy (vtkProp *prop) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual double * | GetBounds () |
Static Public Member Functions | |
static vtkPolygonalHandleRepresentation3D * | New () |
Protected Member Functions | |
vtkPolygonalHandleRepresentation3D () | |
~vtkPolygonalHandleRepresentation3D () | |
void | Highlight (int highlight) |
void | Translate (double *p1, double *p2) |
void | Scale (double *p1, double *p2, double eventPos[2]) |
void | MoveFocus (double *p1, double *p2) |
void | CreateDefaultProperties () |
void | MoveFocusRequest (double *p1, double *p2, double requestedDisplayPos[3]) |
int | DetermineConstraintAxis (int constraint, double *x, double *startPickPos) |
Protected Attributes | |
vtkActor * | Actor |
vtkPolyDataMapper * | Mapper |
vtkTransformPolyDataFilter * | HandleTransformFilter |
vtkMatrixToLinearTransform * | HandleTransform |
vtkMatrix4x4 * | HandleTransformMatrix |
vtkCellPicker * | HandlePicker |
double | LastPickPosition [3] |
double | LastEventPosition [2] |
double | Offset [3] |
int | ConstraintAxis |
vtkProperty * | Property |
vtkProperty * | SelectedProperty |
int | WaitingForMotion |
int | WaitCount |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
Definition at line 53 of file vtkPolygonalHandleRepresentation3D.h.
vtkPolygonalHandleRepresentation3D::vtkPolygonalHandleRepresentation3D | ( | ) | [protected] |
vtkPolygonalHandleRepresentation3D::~vtkPolygonalHandleRepresentation3D | ( | ) | [protected] |
static vtkPolygonalHandleRepresentation3D* vtkPolygonalHandleRepresentation3D::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkObject.
virtual const char* vtkPolygonalHandleRepresentation3D::GetClassName | ( | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
static int vtkPolygonalHandleRepresentation3D::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
virtual int vtkPolygonalHandleRepresentation3D::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
static vtkPolygonalHandleRepresentation3D* vtkPolygonalHandleRepresentation3D::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
void vtkPolygonalHandleRepresentation3D::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::SetWorldPosition | ( | double | p[3] | ) | [virtual] |
Set the position of the point in world and display coordinates. Note that if the position is set outside of the bounding box, it will be clamped to the boundary of the bounding box. This method overloads the superclasses' SetWorldPosition() and SetDisplayPosition() in order to set the focal point of the cursor properly.
Reimplemented from vtkHandleRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::SetDisplayPosition | ( | double | p[3] | ) | [virtual] |
Set the position of the point in world and display coordinates. Note that if the position is set outside of the bounding box, it will be clamped to the boundary of the bounding box. This method overloads the superclasses' SetWorldPosition() and SetDisplayPosition() in order to set the focal point of the cursor properly.
Reimplemented from vtkHandleRepresentation.
void vtkPolygonalHandleRepresentation3D::SetHandle | ( | vtkPolyData * | ) |
Set/get the handle polydata.
vtkPolyData* vtkPolygonalHandleRepresentation3D::GetHandle | ( | ) |
Set/get the handle polydata.
virtual void vtkPolygonalHandleRepresentation3D::SetOffset | ( | double | , | |
double | , | |||
double | ||||
) | [virtual] |
Set/get the offset of the handle position with respect to the handle center, assumed to be the origin.
virtual void vtkPolygonalHandleRepresentation3D::SetOffset | ( | double | [3] | ) | [virtual] |
Set/get the offset of the handle position with respect to the handle center, assumed to be the origin.
virtual double* vtkPolygonalHandleRepresentation3D::GetOffset | ( | ) | [virtual] |
Set/get the offset of the handle position with respect to the handle center, assumed to be the origin.
virtual void vtkPolygonalHandleRepresentation3D::GetOffset | ( | double & | , | |
double & | , | |||
double & | ||||
) | [virtual] |
Set/get the offset of the handle position with respect to the handle center, assumed to be the origin.
virtual void vtkPolygonalHandleRepresentation3D::GetOffset | ( | double | [3] | ) | [virtual] |
Set/get the offset of the handle position with respect to the handle center, assumed to be the origin.
void vtkPolygonalHandleRepresentation3D::SetProperty | ( | vtkProperty * | ) |
Set/Get the handle properties when unselected and selected.
void vtkPolygonalHandleRepresentation3D::SetSelectedProperty | ( | vtkProperty * | ) |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkPolygonalHandleRepresentation3D::GetProperty | ( | ) | [virtual] |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkPolygonalHandleRepresentation3D::GetSelectedProperty | ( | ) | [virtual] |
Set/Get the handle properties when unselected and selected.
virtual void vtkPolygonalHandleRepresentation3D::BuildRepresentation | ( | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Implements vtkWidgetRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::StartWidgetInteraction | ( | double | eventPos[2] | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::WidgetInteraction | ( | double | eventPos[2] | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual int vtkPolygonalHandleRepresentation3D::ComputeInteractionState | ( | int | X, | |
int | Y, | |||
int | modify = 0 | |||
) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::ShallowCopy | ( | vtkProp * | prop | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkHandleRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::GetActors | ( | vtkPropCollection * | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkPolygonalHandleRepresentation3D::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
virtual int vtkPolygonalHandleRepresentation3D::RenderOpaqueGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
virtual int vtkPolygonalHandleRepresentation3D::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
virtual int vtkPolygonalHandleRepresentation3D::HasTranslucentPolygonalGeometry | ( | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
virtual double* vtkPolygonalHandleRepresentation3D::GetBounds | ( | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
void vtkPolygonalHandleRepresentation3D::Highlight | ( | int | highlight | ) | [protected] |
void vtkPolygonalHandleRepresentation3D::Translate | ( | double * | p1, | |
double * | p2 | |||
) | [protected] |
void vtkPolygonalHandleRepresentation3D::Scale | ( | double * | p1, | |
double * | p2, | |||
double | eventPos[2] | |||
) | [protected] |
void vtkPolygonalHandleRepresentation3D::MoveFocus | ( | double * | p1, | |
double * | p2 | |||
) | [protected] |
void vtkPolygonalHandleRepresentation3D::CreateDefaultProperties | ( | ) | [protected] |
void vtkPolygonalHandleRepresentation3D::MoveFocusRequest | ( | double * | p1, | |
double * | p2, | |||
double | requestedDisplayPos[3] | |||
) | [protected] |
int vtkPolygonalHandleRepresentation3D::DetermineConstraintAxis | ( | int | constraint, | |
double * | x, | |||
double * | startPickPos | |||
) | [protected] |
vtkActor* vtkPolygonalHandleRepresentation3D::Actor [protected] |
Definition at line 113 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 114 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 115 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 116 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 117 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 118 of file vtkPolygonalHandleRepresentation3D.h.
double vtkPolygonalHandleRepresentation3D::LastPickPosition[3] [protected] |
Definition at line 119 of file vtkPolygonalHandleRepresentation3D.h.
double vtkPolygonalHandleRepresentation3D::LastEventPosition[2] [protected] |
Definition at line 120 of file vtkPolygonalHandleRepresentation3D.h.
double vtkPolygonalHandleRepresentation3D::Offset[3] [protected] |
Definition at line 121 of file vtkPolygonalHandleRepresentation3D.h.
int vtkPolygonalHandleRepresentation3D::ConstraintAxis [protected] |
Definition at line 122 of file vtkPolygonalHandleRepresentation3D.h.
vtkProperty* vtkPolygonalHandleRepresentation3D::Property [protected] |
Definition at line 123 of file vtkPolygonalHandleRepresentation3D.h.
Definition at line 124 of file vtkPolygonalHandleRepresentation3D.h.
int vtkPolygonalHandleRepresentation3D::WaitingForMotion [protected] |
Definition at line 125 of file vtkPolygonalHandleRepresentation3D.h.
int vtkPolygonalHandleRepresentation3D::WaitCount [protected] |
Definition at line 126 of file vtkPolygonalHandleRepresentation3D.h.