VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkSphereHandleRepresentation Class Reference

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

#include <vtkSphereHandleRepresentation.h>

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

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 ()
 
- Public Member Functions inherited from vtkHandleRepresentation
virtual int CheckConstraint (vtkRenderer *renderer, double pos[2])
 
virtual unsigned long GetMTime ()
 
virtual void GetDisplayPosition (double pos[3])
 
virtual double * GetDisplayPosition ()
 
virtual void GetWorldPosition (double pos[3])
 
virtual double * GetWorldPosition ()
 
virtual void SetTolerance (int)
 
virtual int GetTolerance ()
 
virtual void SetActiveRepresentation (int)
 
virtual int GetActiveRepresentation ()
 
virtual void ActiveRepresentationOn ()
 
virtual void ActiveRepresentationOff ()
 
virtual void SetInteractionState (int)
 
virtual void SetConstrained (int)
 
virtual int GetConstrained ()
 
virtual void ConstrainedOn ()
 
virtual void ConstrainedOff ()
 
virtual void SetRenderer (vtkRenderer *ren)
 
virtual void SetPointPlacer (vtkPointPlacer *)
 
virtual vtkPointPlacerGetPointPlacer ()
 
vtkHandleRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkWidgetRepresentation
virtual void PickingManagedOn ()
 
virtual void PickingManagedOff ()
 
virtual void SetPickingManaged (bool)
 
virtual bool GetPickingManaged ()
 
virtual vtkRenderer * GetRenderer ()
 
virtual void PlaceWidget (double *vtkNotUsed(bounds[6]))
 
virtual void EndWidgetInteraction (double newEventPos[2])
 
virtual int GetInteractionState ()
 
virtual void Highlight (int vtkNotUsed(highlightOn))
 
virtual void SetPlaceFactor (double)
 
virtual double GetPlaceFactor ()
 
virtual double GetHandleSize ()
 
virtual int GetNeedToRender ()
 
virtual void SetNeedToRender (int)
 
virtual void NeedToRenderOn ()
 
virtual void NeedToRenderOff ()
 
virtual void GetActors2D (vtkPropCollection *)
 
virtual void GetVolumes (vtkPropCollection *)
 
virtual int RenderOverlay (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport))
 
vtkWidgetRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static
vtkSphereHandleRepresentation
New ()
 
- Static Public Member Functions inherited from vtkHandleRepresentation
static int IsTypeOf (const char *type)
 
static vtkHandleRepresentationSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkWidgetRepresentationSafeDownCast (vtkObjectBase *o)
 

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 Member Functions inherited from vtkHandleRepresentation
 vtkHandleRepresentation ()
 
 ~vtkHandleRepresentation ()
 
- Protected Member Functions inherited from vtkWidgetRepresentation
 vtkWidgetRepresentation ()
 
 ~vtkWidgetRepresentation ()
 
void AdjustBounds (double bounds[6], double newBounds[6], double center[3])
 
virtual void UnRegisterPickers ()
 
virtual void PickersModified ()
 
vtkPickingManager * GetPickingManager ()
 
double SizeHandlesRelativeToViewport (double factor, double pos[3])
 
double SizeHandlesInPixels (double factor, double pos[3])
 
vtkAssemblyPath * GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 

Protected Attributes

vtkActor * Actor
 
vtkPolyDataMapper * Mapper
 
vtkSphereSourceSphere
 
vtkCellPicker * CursorPicker
 
double LastPickPosition [3]
 
double LastEventPosition [2]
 
int ConstraintAxis
 
vtkProperty * Property
 
vtkProperty * SelectedProperty
 
double HotSpotSize
 
int WaitingForMotion
 
int WaitCount
 
double CurrentHandleSize
 
int TranslationMode
 
- Protected Attributes inherited from vtkHandleRepresentation
int Tolerance
 
int ActiveRepresentation
 
int Constrained
 
vtkCoordinate * DisplayPosition
 
vtkCoordinate * WorldPosition
 
vtkTimeStamp DisplayPositionTime
 
vtkTimeStamp WorldPositionTime
 
vtkPointPlacerPointPlacer
 
- Protected Attributes inherited from vtkWidgetRepresentation
vtkWeakPointer< vtkRenderer > Renderer
 
int InteractionState
 
double StartEventPosition [3]
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
int ValidPick
 
bool PickingManaged
 
double HandleSize
 
int NeedToRender
 
vtkTimeStamp BuildTime
 
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 vtkObjectBase * NewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkHandleRepresentation
enum  _InteractionState {
  Outside =0, Nearby, Selecting, Translating,
  Scaling
}
 
typedef vtkWidgetRepresentation Superclass
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 

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.

Definition at line 51 of file vtkSphereHandleRepresentation.h.

Constructor & Destructor Documentation

vtkSphereHandleRepresentation::vtkSphereHandleRepresentation ( )
protected
vtkSphereHandleRepresentation::~vtkSphereHandleRepresentation ( )
protected

Member Function Documentation

static vtkSphereHandleRepresentation* vtkSphereHandleRepresentation::New ( )
static

Instantiate this class.

static int vtkSphereHandleRepresentation::IsTypeOf ( const char *  type)
static

Standard methods for instances of this class.

virtual int vtkSphereHandleRepresentation::IsA ( const char *  type)
virtual

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

static vtkSphereHandleRepresentation* vtkSphereHandleRepresentation::SafeDownCast ( vtkObjectBase *  o)
static

Standard methods for instances of this class.

virtual vtkObjectBase* vtkSphereHandleRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

vtkSphereHandleRepresentation* vtkSphereHandleRepresentation::NewInstance ( ) const

Standard methods for instances of this class.

void vtkSphereHandleRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Standard methods for instances of this class.

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

Methods to make this class behave as a vtkProp.

virtual int vtkSphereHandleRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport *  viewport)
virtual

Methods to make this class behave as a vtkProp.

virtual int vtkSphereHandleRepresentation::HasTranslucentPolygonalGeometry ( )
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

void vtkSphereHandleRepresentation::Highlight ( int  highlight)
virtual void vtkSphereHandleRepresentation::RegisterPickers ( )
protectedvirtual

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
void vtkSphereHandleRepresentation::SizeBounds ( )
protected
void vtkSphereHandleRepresentation::CreateDefaultProperties ( )
protected
int vtkSphereHandleRepresentation::DetermineConstraintAxis ( int  constraint,
double *  x 
)
protected

Member Data Documentation

vtkActor* vtkSphereHandleRepresentation::Actor
protected

Definition at line 129 of file vtkSphereHandleRepresentation.h.

vtkPolyDataMapper* vtkSphereHandleRepresentation::Mapper
protected

Definition at line 130 of file vtkSphereHandleRepresentation.h.

vtkSphereSource* vtkSphereHandleRepresentation::Sphere
protected

Definition at line 131 of file vtkSphereHandleRepresentation.h.

vtkCellPicker* vtkSphereHandleRepresentation::CursorPicker
protected

Definition at line 135 of file vtkSphereHandleRepresentation.h.

double vtkSphereHandleRepresentation::LastPickPosition[3]
protected

Definition at line 136 of file vtkSphereHandleRepresentation.h.

double vtkSphereHandleRepresentation::LastEventPosition[2]
protected

Definition at line 137 of file vtkSphereHandleRepresentation.h.

int vtkSphereHandleRepresentation::ConstraintAxis
protected

Definition at line 143 of file vtkSphereHandleRepresentation.h.

vtkProperty* vtkSphereHandleRepresentation::Property
protected

Definition at line 151 of file vtkSphereHandleRepresentation.h.

vtkProperty* vtkSphereHandleRepresentation::SelectedProperty
protected

Definition at line 152 of file vtkSphereHandleRepresentation.h.

double vtkSphereHandleRepresentation::HotSpotSize
protected

Definition at line 156 of file vtkSphereHandleRepresentation.h.

int vtkSphereHandleRepresentation::WaitingForMotion
protected

Definition at line 158 of file vtkSphereHandleRepresentation.h.

int vtkSphereHandleRepresentation::WaitCount
protected

Definition at line 159 of file vtkSphereHandleRepresentation.h.

double vtkSphereHandleRepresentation::CurrentHandleSize
protected

Definition at line 162 of file vtkSphereHandleRepresentation.h.

int vtkSphereHandleRepresentation::TranslationMode
protected

Definition at line 165 of file vtkSphereHandleRepresentation.h.


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