VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSphereHandleRepresentation Class Reference

A spherical rendition of point in 3D space. More...

#include <vtkSphereHandleRepresentation.h>

Inheritance diagram for vtkSphereHandleRepresentation:
Inheritance graph
[legend]
Collaboration diagram for vtkSphereHandleRepresentation:
Collaboration graph
[legend]

List of all members.

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 vtkPropertyGetProperty ()
virtual vtkPropertyGetSelectedProperty ()
virtual void SetHotSpotSize (double)
virtual double GetHotSpotSize ()
virtual doubleGetBounds ()
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 ()
virtual void RegisterPickers ()
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

vtkActorActor
vtkPolyDataMapperMapper
vtkSphereSourceSphere
vtkCellPickerCursorPicker
double LastPickPosition [3]
double LastEventPosition [2]
int ConstraintAxis
vtkPropertyProperty
vtkPropertySelectedProperty
double HotSpotSize
int WaitingForMotion
int WaitCount
double CurrentHandleSize
int TranslationMode
typedef vtkHandleRepresentation Superclass
static int IsTypeOf (const char *type)
static
vtkSphereHandleRepresentation
SafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkSphereHandleRepresentationNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

A spherical rendition of point in 3D space.

This class is a concrete implementation of vtkHandleRepresentation. It renders handles as spherical blobs in 3D space.

See also:
vtkHandleRepresentation vtkHandleWidget vtkSphereSource
Tests:
vtkSphereHandleRepresentation (Tests)

Definition at line 42 of file vtkSphereHandleRepresentation.h.


Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

Definition at line 51 of file vtkSphereHandleRepresentation.h.


Constructor & Destructor Documentation


Member Function Documentation

Instantiate this class.

Reimplemented from vtkObject.

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.

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

virtual vtkObjectBase* vtkSphereHandleRepresentation::NewInstanceInternal ( ) const [protected, virtual]

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

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.

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.

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.)

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.)

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.)

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.)

Set/Get the handle properties when unselected and selected.

Set/Get the handle properties when unselected and selected.

Set/Get the handle properties when unselected and selected.

Set/Get the handle properties when unselected and selected.

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.

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.

Methods to make this class properly act like a vtkWidgetRepresentation.

Reimplemented from vtkWidgetRepresentation.

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.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkSphereHandleRepresentation::RegisterPickers ( ) [protected, virtual]

Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widget representations to register their pickers.

Reimplemented from vtkWidgetRepresentation.

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]

Member Data Documentation

Definition at line 129 of file vtkSphereHandleRepresentation.h.

Definition at line 130 of file vtkSphereHandleRepresentation.h.

Definition at line 131 of file vtkSphereHandleRepresentation.h.

Definition at line 135 of file vtkSphereHandleRepresentation.h.

Definition at line 136 of file vtkSphereHandleRepresentation.h.

Definition at line 137 of file vtkSphereHandleRepresentation.h.

Definition at line 143 of file vtkSphereHandleRepresentation.h.

Definition at line 151 of file vtkSphereHandleRepresentation.h.

Definition at line 152 of file vtkSphereHandleRepresentation.h.

Definition at line 156 of file vtkSphereHandleRepresentation.h.

Definition at line 158 of file vtkSphereHandleRepresentation.h.

Definition at line 159 of file vtkSphereHandleRepresentation.h.

Definition at line 162 of file vtkSphereHandleRepresentation.h.

Definition at line 165 of file vtkSphereHandleRepresentation.h.


The documentation for this class was generated from the following file: