#include <vtkSphereHandleRepresentation.h>
This class is a concrete implementation of vtkHandleRepresentation. It renders handles as spherical blobs in 3D space.
Definition at line 41 of file vtkSphereHandleRepresentation.h.
typedef vtkHandleRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkSphereHandleRepresentation * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions | |
void | SetSphereRadius (double) |
double | GetSphereRadius () |
virtual void | SetHandleSize (double size) |
void | Highlight (int highlight) |
virtual void | SetWorldPosition (double p[3]) |
virtual void | SetDisplayPosition (double p[3]) |
virtual void | SetTranslationMode (int) |
virtual int | GetTranslationMode () |
virtual void | TranslationModeOn () |
virtual void | TranslationModeOff () |
void | SetProperty (vtkProperty *) |
void | SetSelectedProperty (vtkProperty *) |
virtual vtkProperty * | GetProperty () |
virtual vtkProperty * | GetSelectedProperty () |
virtual void | SetHotSpotSize (double) |
virtual double | GetHotSpotSize () |
virtual double * | GetBounds () |
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 | PlaceWidget (double bounds[6]) |
virtual void | ShallowCopy (vtkProp *prop) |
virtual void | DeepCopy (vtkProp *prop) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | HasTranslucentPolygonalGeometry () |
Static Public Member Functions | |
static vtkSphereHandleRepresentation * | New () |
Protected Member Functions | |
vtkSphereHandleRepresentation () | |
~vtkSphereHandleRepresentation () | |
void | Translate (double *p1, double *p2) |
void | Scale (double *p1, double *p2, double eventPos[2]) |
void | MoveFocus (double *p1, double *p2) |
void | SizeBounds () |
void | CreateDefaultProperties () |
int | DetermineConstraintAxis (int constraint, double *x) |
Protected Attributes | |
vtkActor * | Actor |
vtkPolyDataMapper * | Mapper |
vtkSphereSource * | Sphere |
vtkCellPicker * | CursorPicker |
double | LastPickPosition [3] |
double | LastEventPosition [2] |
int | ConstraintAxis |
vtkProperty * | Property |
vtkProperty * | SelectedProperty |
double | HotSpotSize |
int | WaitingForMotion |
int | WaitCount |
double | CurrentHandleSize |
int | TranslationMode |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
Definition at line 50 of file vtkSphereHandleRepresentation.h.
vtkSphereHandleRepresentation::vtkSphereHandleRepresentation | ( | ) | [protected] |
vtkSphereHandleRepresentation::~vtkSphereHandleRepresentation | ( | ) | [protected] |
static vtkSphereHandleRepresentation* vtkSphereHandleRepresentation::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkObject.
virtual const char* vtkSphereHandleRepresentation::GetClassName | ( | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
static int vtkSphereHandleRepresentation::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
virtual int vtkSphereHandleRepresentation::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
static vtkSphereHandleRepresentation* vtkSphereHandleRepresentation::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
void vtkSphereHandleRepresentation::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
virtual void vtkSphereHandleRepresentation::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 vtkSphereHandleRepresentation::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.
virtual void vtkSphereHandleRepresentation::SetTranslationMode | ( | int | ) | [virtual] |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button.)
virtual int vtkSphereHandleRepresentation::GetTranslationMode | ( | ) | [virtual] |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button.)
virtual void vtkSphereHandleRepresentation::TranslationModeOn | ( | ) | [virtual] |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button.)
virtual void vtkSphereHandleRepresentation::TranslationModeOff | ( | ) | [virtual] |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button.)
void vtkSphereHandleRepresentation::SetSphereRadius | ( | double | ) |
double vtkSphereHandleRepresentation::GetSphereRadius | ( | ) |
void vtkSphereHandleRepresentation::SetProperty | ( | vtkProperty * | ) |
Set/Get the handle properties when unselected and selected.
void vtkSphereHandleRepresentation::SetSelectedProperty | ( | vtkProperty * | ) |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkSphereHandleRepresentation::GetProperty | ( | ) | [virtual] |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkSphereHandleRepresentation::GetSelectedProperty | ( | ) | [virtual] |
Set/Get the handle properties when unselected and selected.
virtual void vtkSphereHandleRepresentation::SetHotSpotSize | ( | double | ) | [virtual] |
Set the "hot spot" size; i.e., the region around the focus, in which the motion vector is used to control the constrained sliding action. Note the size is specified as a fraction of the length of the diagonal of the point widget's bounding box.
virtual double vtkSphereHandleRepresentation::GetHotSpotSize | ( | ) | [virtual] |
Set the "hot spot" size; i.e., the region around the focus, in which the motion vector is used to control the constrained sliding action. Note the size is specified as a fraction of the length of the diagonal of the point widget's bounding box.
virtual void vtkSphereHandleRepresentation::SetHandleSize | ( | double | size | ) | [virtual] |
Overload the superclasses SetHandleSize() method to update internal variables.
Reimplemented from vtkWidgetRepresentation.
virtual double* vtkSphereHandleRepresentation::GetBounds | ( | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::BuildRepresentation | ( | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Implements vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::StartWidgetInteraction | ( | double | eventPos[2] | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::WidgetInteraction | ( | double | eventPos[2] | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual int vtkSphereHandleRepresentation::ComputeInteractionState | ( | int | X, | |
int | Y, | |||
int | modify = 0 | |||
) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::PlaceWidget | ( | double | bounds[6] | ) | [virtual] |
Methods to make this class properly act like a vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::ShallowCopy | ( | vtkProp * | prop | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkHandleRepresentation.
virtual void vtkSphereHandleRepresentation::DeepCopy | ( | vtkProp * | prop | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkHandleRepresentation.
virtual void vtkSphereHandleRepresentation::GetActors | ( | vtkPropCollection * | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
virtual void vtkSphereHandleRepresentation::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
virtual int vtkSphereHandleRepresentation::RenderOpaqueGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
virtual int vtkSphereHandleRepresentation::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
virtual int vtkSphereHandleRepresentation::HasTranslucentPolygonalGeometry | ( | ) | [virtual] |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
void vtkSphereHandleRepresentation::Highlight | ( | int | highlight | ) |
void vtkSphereHandleRepresentation::Translate | ( | double * | p1, | |
double * | p2 | |||
) | [protected] |
void vtkSphereHandleRepresentation::Scale | ( | double * | p1, | |
double * | p2, | |||
double | eventPos[2] | |||
) | [protected] |
void vtkSphereHandleRepresentation::MoveFocus | ( | double * | p1, | |
double * | p2 | |||
) | [protected] |
void vtkSphereHandleRepresentation::SizeBounds | ( | ) | [protected] |
void vtkSphereHandleRepresentation::CreateDefaultProperties | ( | ) | [protected] |
int vtkSphereHandleRepresentation::DetermineConstraintAxis | ( | int | constraint, | |
double * | x | |||
) | [protected] |
vtkActor* vtkSphereHandleRepresentation::Actor [protected] |
Definition at line 128 of file vtkSphereHandleRepresentation.h.
vtkPolyDataMapper* vtkSphereHandleRepresentation::Mapper [protected] |
Definition at line 129 of file vtkSphereHandleRepresentation.h.
vtkSphereSource* vtkSphereHandleRepresentation::Sphere [protected] |
Definition at line 130 of file vtkSphereHandleRepresentation.h.
vtkCellPicker* vtkSphereHandleRepresentation::CursorPicker [protected] |
Definition at line 134 of file vtkSphereHandleRepresentation.h.
double vtkSphereHandleRepresentation::LastPickPosition[3] [protected] |
Definition at line 135 of file vtkSphereHandleRepresentation.h.
double vtkSphereHandleRepresentation::LastEventPosition[2] [protected] |
Definition at line 136 of file vtkSphereHandleRepresentation.h.
int vtkSphereHandleRepresentation::ConstraintAxis [protected] |
Definition at line 139 of file vtkSphereHandleRepresentation.h.
vtkProperty* vtkSphereHandleRepresentation::Property [protected] |
Definition at line 147 of file vtkSphereHandleRepresentation.h.
Definition at line 148 of file vtkSphereHandleRepresentation.h.
double vtkSphereHandleRepresentation::HotSpotSize [protected] |
Definition at line 152 of file vtkSphereHandleRepresentation.h.
int vtkSphereHandleRepresentation::WaitingForMotion [protected] |
Definition at line 154 of file vtkSphereHandleRepresentation.h.
int vtkSphereHandleRepresentation::WaitCount [protected] |
Definition at line 155 of file vtkSphereHandleRepresentation.h.
double vtkSphereHandleRepresentation::CurrentHandleSize [protected] |
Definition at line 158 of file vtkSphereHandleRepresentation.h.
int vtkSphereHandleRepresentation::TranslationMode [protected] |
Definition at line 161 of file vtkSphereHandleRepresentation.h.