VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkConstrainedPointHandleRepresentation Class Reference

point representation constrained to a 2D plane More...

#include <vtkConstrainedPointHandleRepresentation.h>

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

Public Types

enum  { XAxis =0, YAxis, ZAxis, Oblique }
 
- Public Types inherited from vtkHandleRepresentation
enum  _InteractionState {
  Outside =0, Nearby, Selecting, Translating,
  Scaling
}
 
typedef vtkWidgetRepresentation Superclass
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 
- Public Types inherited from vtkProp
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

void SetProjectionNormalToXAxis ()
 
void SetProjectionNormalToYAxis ()
 
void SetProjectionNormalToZAxis ()
 
void SetProjectionNormalToOblique ()
 
virtual int CheckConstraint (vtkRenderer *renderer, double pos[2])
 
virtual void SetDisplayPosition (double pos[3])
 
void Highlight (int highlight)
 
void SetCursorShape (vtkPolyData *cursorShape)
 
vtkPolyDataGetCursorShape ()
 
void SetActiveCursorShape (vtkPolyData *activeShape)
 
vtkPolyDataGetActiveCursorShape ()
 
virtual void SetProjectionNormal (int)
 
virtual int GetProjectionNormal ()
 
void SetObliquePlane (vtkPlane *)
 
virtual vtkPlaneGetObliquePlane ()
 
void SetProjectionPosition (double position)
 
virtual double GetProjectionPosition ()
 
void AddBoundingPlane (vtkPlane *plane)
 
void RemoveBoundingPlane (vtkPlane *plane)
 
void RemoveAllBoundingPlanes ()
 
virtual void SetBoundingPlanes (vtkPlaneCollection *)
 
virtual vtkPlaneCollectionGetBoundingPlanes ()
 
void SetBoundingPlanes (vtkPlanes *planes)
 
void SetPosition (double x, double y, double z)
 
void SetPosition (double xyz[3])
 
doubleGetPosition ()
 
void GetPosition (double xyz[3])
 
virtual vtkPropertyGetProperty ()
 
virtual vtkPropertyGetSelectedProperty ()
 
virtual vtkPropertyGetActiveProperty ()
 
virtual void SetRenderer (vtkRenderer *ren)
 
virtual void BuildRepresentation ()
 
virtual void StartWidgetInteraction (double eventPos[2])
 
virtual void WidgetInteraction (double eventPos[2])
 
virtual int ComputeInteractionState (int X, int Y, int modify)
 
virtual void GetActors (vtkPropCollection *)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual int RenderOverlay (vtkViewport *viewport)
 
virtual int RenderOpaqueGeometry (vtkViewport *viewport)
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)
 
virtual int HasTranslucentPolygonalGeometry ()
 
virtual void ShallowCopy (vtkProp *prop)
 
- Public Member Functions inherited from vtkHandleRepresentation
virtual unsigned long GetMTime ()
 
virtual void GetDisplayPosition (double pos[3])
 
virtual doubleGetDisplayPosition ()
 
virtual void SetWorldPosition (double pos[3])
 
virtual void GetWorldPosition (double pos[3])
 
virtual doubleGetWorldPosition ()
 
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 DeepCopy (vtkProp *prop)
 
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 vtkRendererGetRenderer ()
 
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 void SetHandleSize (double)
 
virtual double GetHandleSize ()
 
virtual int GetNeedToRender ()
 
virtual void SetNeedToRender (int)
 
virtual void NeedToRenderOn ()
 
virtual void NeedToRenderOff ()
 
virtual doubleGetBounds ()
 
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)
 
- Public Member Functions inherited from vtkProp
vtkPropNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Pick ()
 
virtual bool HasKeys (vtkInformation *requiredKeys)
 
virtual void BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path)
 
virtual void SetVisibility (int)
 
virtual int GetVisibility ()
 
virtual void VisibilityOn ()
 
virtual void VisibilityOff ()
 
virtual void SetPickable (int)
 
virtual int GetPickable ()
 
virtual void PickableOn ()
 
virtual void PickableOff ()
 
virtual void SetDragable (int)
 
virtual int GetDragable ()
 
virtual void DragableOn ()
 
virtual void DragableOff ()
 
virtual unsigned long GetRedrawMTime ()
 
virtual void SetUseBounds (bool)
 
virtual bool GetUseBounds ()
 
virtual void UseBoundsOn ()
 
virtual void UseBoundsOff ()
 
virtual void InitPathTraversal ()
 
virtual vtkAssemblyPathGetNextPath ()
 
virtual int GetNumberOfPaths ()
 
virtual void PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix))
 
virtual vtkMatrix4x4GetMatrix ()
 
virtual vtkInformationGetPropertyKeys ()
 
virtual void SetPropertyKeys (vtkInformation *keys)
 
virtual int RenderVolumetricGeometry (vtkViewport *)
 
virtual bool RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual double GetEstimatedRenderTime (vtkViewport *)
 
virtual double GetEstimatedRenderTime ()
 
virtual void SetEstimatedRenderTime (double t)
 
virtual void RestoreEstimatedRenderTime ()
 
virtual void AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp))
 
virtual void SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v))
 
virtual double GetAllocatedRenderTime ()
 
void SetRenderTimeMultiplier (double t)
 
virtual double GetRenderTimeMultiplier ()
 
virtual bool GetSupportsSelection ()
 
virtual int GetNumberOfConsumers ()
 
void AddConsumer (vtkObject *c)
 
void RemoveConsumer (vtkObject *c)
 
vtkObjectGetConsumer (int i)
 
int IsConsumer (vtkObject *c)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkConstrainedPointHandleRepresentationNew ()
 
- 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)
 
- Static Public Member Functions inherited from vtkProp
static int IsTypeOf (const char *type)
 
static vtkPropSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyGeneralTextureUnit ()
 
static vtkInformationDoubleVectorKeyGeneralTextureTransform ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkConstrainedPointHandleRepresentation ()
 
 ~vtkConstrainedPointHandleRepresentation ()
 
void Translate (double eventPos[2])
 
void Scale (double eventPos[2])
 
void CreateDefaultProperties ()
 
int GetIntersectionPosition (double eventPos[2], double worldPos[3], double tolerance=0.0, vtkRenderer *renderer=0)
 
void GetProjectionNormal (double normal[3])
 
void GetProjectionOrigin (double origin[3])
 
- 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 RegisterPickers ()
 
virtual void UnRegisterPickers ()
 
virtual void PickersModified ()
 
vtkPickingManagerGetPickingManager ()
 
double SizeHandlesRelativeToViewport (double factor, double pos[3])
 
double SizeHandlesInPixels (double factor, double pos[3])
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 
- Protected Member Functions inherited from vtkProp
 vtkProp ()
 
 ~vtkProp ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkActorActor
 
vtkPolyDataMapperMapper
 
vtkGlyph3DGlypher
 
vtkPolyDataCursorShape
 
vtkPolyDataActiveCursorShape
 
vtkPolyDataFocalData
 
vtkPointsFocalPoint
 
double LastPickPosition [3]
 
double LastEventPosition [2]
 
vtkPropertyProperty
 
vtkPropertySelectedProperty
 
vtkPropertyActiveProperty
 
int ProjectionNormal
 
double ProjectionPosition
 
int ProjectToPlane
 
vtkPlaneObliquePlane
 
vtkPlaneCollectionBoundingPlanes
 
double InteractionOffset [2]
 
- Protected Attributes inherited from vtkHandleRepresentation
int Tolerance
 
int ActiveRepresentation
 
int Constrained
 
vtkCoordinateDisplayPosition
 
vtkCoordinateWorldPosition
 
vtkTimeStamp DisplayPositionTime
 
vtkTimeStamp WorldPositionTime
 
vtkPointPlacerPointPlacer
 
- Protected Attributes inherited from vtkWidgetRepresentation
vtkWeakPointer< vtkRendererRenderer
 
int InteractionState
 
double StartEventPosition [3]
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
int ValidPick
 
bool PickingManaged
 
double HandleSize
 
int NeedToRender
 
vtkTimeStamp BuildTime
 
- Protected Attributes inherited from vtkProp
int Visibility
 
int Pickable
 
int Dragable
 
bool UseBounds
 
double AllocatedRenderTime
 
double EstimatedRenderTime
 
double SavedEstimatedRenderTime
 
double RenderTimeMultiplier
 
int NumberOfConsumers
 
vtkObject ** Consumers
 
vtkAssemblyPathsPaths
 
vtkInformationPropertyKeys
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkHandleRepresentation Superclass
 
static int IsTypeOf (const char *type)
 
static vtkConstrainedPointHandleRepresentationSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkConstrainedPointHandleRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Detailed Description

point representation constrained to a 2D plane

This class is used to represent a vtkHandleWidget. It represents a position in 3D world coordinates that is constrained to a specified plane. The default look is to draw a white point when this widget is not selected or active, a thin green circle when it is highlighted, and a thicker cyan circle when it is active (being positioned). Defaults can be adjusted - but take care to define cursor geometry that makes sense for this widget. The geometry will be aligned on the constraining plane, with the plane normal aligned with the X axis of the geometry (similar behavior to vtkGlyph3D).

TODO: still need to work on 1) translation when mouse is outside bounding planes 2) size of the widget

See also
vtkHandleRepresentation vtkHandleWidget
Tests:
vtkConstrainedPointHandleRepresentation (Tests)

Definition at line 57 of file vtkConstrainedPointHandleRepresentation.h.

Member Typedef Documentation

Standard methods for instances of this class.

Definition at line 65 of file vtkConstrainedPointHandleRepresentation.h.

Member Enumeration Documentation

anonymous enum
Enumerator
XAxis 
YAxis 
ZAxis 
Oblique 

Definition at line 195 of file vtkConstrainedPointHandleRepresentation.h.

Constructor & Destructor Documentation

vtkConstrainedPointHandleRepresentation::vtkConstrainedPointHandleRepresentation ( )
protected
vtkConstrainedPointHandleRepresentation::~vtkConstrainedPointHandleRepresentation ( )
protected

Member Function Documentation

static vtkConstrainedPointHandleRepresentation* vtkConstrainedPointHandleRepresentation::New ( )
static

Instantiate this class.

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

Standard methods for instances of this class.

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

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

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

Standard methods for instances of this class.

virtual vtkObjectBase* vtkConstrainedPointHandleRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkHandleRepresentation.

vtkConstrainedPointHandleRepresentation* vtkConstrainedPointHandleRepresentation::NewInstance ( ) const

Standard methods for instances of this class.

void vtkConstrainedPointHandleRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard methods for instances of this class.

Reimplemented from vtkObject.

void vtkConstrainedPointHandleRepresentation::SetCursorShape ( vtkPolyData cursorShape)

Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.

vtkPolyData* vtkConstrainedPointHandleRepresentation::GetCursorShape ( )

Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.

void vtkConstrainedPointHandleRepresentation::SetActiveCursorShape ( vtkPolyData activeShape)

Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.

vtkPolyData* vtkConstrainedPointHandleRepresentation::GetActiveCursorShape ( )

Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.

virtual void vtkConstrainedPointHandleRepresentation::SetProjectionNormal ( int  )
virtual

Set the projection normal to lie along the x, y, or z axis, or to be oblique. If it is oblique, then the plane is defined in the ObliquePlane ivar.

virtual int vtkConstrainedPointHandleRepresentation::GetProjectionNormal ( )
virtual

Set the projection normal to lie along the x, y, or z axis, or to be oblique. If it is oblique, then the plane is defined in the ObliquePlane ivar.

void vtkConstrainedPointHandleRepresentation::SetProjectionNormalToXAxis ( )
inline

Definition at line 95 of file vtkConstrainedPointHandleRepresentation.h.

void vtkConstrainedPointHandleRepresentation::SetProjectionNormalToYAxis ( )
inline

Definition at line 97 of file vtkConstrainedPointHandleRepresentation.h.

void vtkConstrainedPointHandleRepresentation::SetProjectionNormalToZAxis ( )
inline

Definition at line 99 of file vtkConstrainedPointHandleRepresentation.h.

void vtkConstrainedPointHandleRepresentation::SetProjectionNormalToOblique ( )
inline

Definition at line 101 of file vtkConstrainedPointHandleRepresentation.h.

void vtkConstrainedPointHandleRepresentation::SetObliquePlane ( vtkPlane )

If the ProjectionNormal is set to Oblique, then this is the oblique plane used to constrain the handle position

virtual vtkPlane* vtkConstrainedPointHandleRepresentation::GetObliquePlane ( )
virtual

If the ProjectionNormal is set to Oblique, then this is the oblique plane used to constrain the handle position

void vtkConstrainedPointHandleRepresentation::SetProjectionPosition ( double  position)

The position of the bounding plane from the origin along the normal. The origin and normal are defined in the oblique plane when the ProjectionNormal is Oblique. For the X, Y, and Z axes projection normals, the normal is the axis direction, and the origin is (0,0,0).

virtual double vtkConstrainedPointHandleRepresentation::GetProjectionPosition ( )
virtual

The position of the bounding plane from the origin along the normal. The origin and normal are defined in the oblique plane when the ProjectionNormal is Oblique. For the X, Y, and Z axes projection normals, the normal is the axis direction, and the origin is (0,0,0).

void vtkConstrainedPointHandleRepresentation::AddBoundingPlane ( vtkPlane plane)

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

void vtkConstrainedPointHandleRepresentation::RemoveBoundingPlane ( vtkPlane plane)

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

void vtkConstrainedPointHandleRepresentation::RemoveAllBoundingPlanes ( )

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

virtual void vtkConstrainedPointHandleRepresentation::SetBoundingPlanes ( vtkPlaneCollection )
virtual

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

virtual vtkPlaneCollection* vtkConstrainedPointHandleRepresentation::GetBoundingPlanes ( )
virtual

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

void vtkConstrainedPointHandleRepresentation::SetBoundingPlanes ( vtkPlanes planes)

A collection of plane equations used to bound the position of the point. This is in addition to confining the point to a plane - these constraints are meant to, for example, keep a point within the extent of an image. Using a set of plane equations allows for more complex bounds (such as bounding a point to an oblique reliced image that has hexagonal shape) than a simple extent.

virtual int vtkConstrainedPointHandleRepresentation::CheckConstraint ( vtkRenderer renderer,
double  pos[2] 
)
virtual

Overridden from the base class. It converts the display co-ordinates to world co-ordinates. It returns 1 if the point lies within the constrained region, otherwise return 0

Reimplemented from vtkHandleRepresentation.

void vtkConstrainedPointHandleRepresentation::SetPosition ( double  x,
double  y,
double  z 
)

Set/Get the position of the point in display coordinates. These are convenience methods that extend the superclasses' GetHandlePosition() method. Note that only the x-y coordinate values are used

void vtkConstrainedPointHandleRepresentation::SetPosition ( double  xyz[3])

Set/Get the position of the point in display coordinates. These are convenience methods that extend the superclasses' GetHandlePosition() method. Note that only the x-y coordinate values are used

double* vtkConstrainedPointHandleRepresentation::GetPosition ( )

Set/Get the position of the point in display coordinates. These are convenience methods that extend the superclasses' GetHandlePosition() method. Note that only the x-y coordinate values are used

void vtkConstrainedPointHandleRepresentation::GetPosition ( double  xyz[3])

Set/Get the position of the point in display coordinates. These are convenience methods that extend the superclasses' GetHandlePosition() method. Note that only the x-y coordinate values are used

virtual vtkProperty* vtkConstrainedPointHandleRepresentation::GetProperty ( )
virtual

This is the property used when the handle is not active (the mouse is not near the handle)

virtual vtkProperty* vtkConstrainedPointHandleRepresentation::GetSelectedProperty ( )
virtual

This is the property used when the mouse is near the handle (but the user is not yet interacting with it)

virtual vtkProperty* vtkConstrainedPointHandleRepresentation::GetActiveProperty ( )
virtual

This is the property used when the user is interacting with the handle.

virtual void vtkConstrainedPointHandleRepresentation::SetRenderer ( vtkRenderer ren)
virtual

Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkHandleRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::BuildRepresentation ( )
virtual

Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Implements vtkWidgetRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::StartWidgetInteraction ( double  eventPos[2])
virtual

Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::WidgetInteraction ( double  eventPos[2])
virtual

Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkConstrainedPointHandleRepresentation::ComputeInteractionState ( int  X,
int  Y,
int  modify 
)
virtual

Subclasses of vtkConstrainedPointHandleRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::SetDisplayPosition ( double  pos[3])
virtual

Method overridden from Superclass. computes the world co-ordinates using GetIntersectionPosition()

Reimplemented from vtkHandleRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::GetActors ( vtkPropCollection )
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::ReleaseGraphicsResources ( vtkWindow )
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkConstrainedPointHandleRepresentation::RenderOverlay ( vtkViewport viewport)
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

virtual int vtkConstrainedPointHandleRepresentation::RenderOpaqueGeometry ( vtkViewport viewport)
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

virtual int vtkConstrainedPointHandleRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport viewport)
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

virtual int vtkConstrainedPointHandleRepresentation::HasTranslucentPolygonalGeometry ( )
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkConstrainedPointHandleRepresentation::ShallowCopy ( vtkProp prop)
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkHandleRepresentation.

void vtkConstrainedPointHandleRepresentation::Highlight ( int  highlight)
void vtkConstrainedPointHandleRepresentation::Translate ( double  eventPos[2])
protected
void vtkConstrainedPointHandleRepresentation::Scale ( double  eventPos[2])
protected
void vtkConstrainedPointHandleRepresentation::CreateDefaultProperties ( )
protected
int vtkConstrainedPointHandleRepresentation::GetIntersectionPosition ( double  eventPos[2],
double  worldPos[3],
double  tolerance = 0.0,
vtkRenderer renderer = 0 
)
protected
void vtkConstrainedPointHandleRepresentation::GetProjectionNormal ( double  normal[3])
protected
void vtkConstrainedPointHandleRepresentation::GetProjectionOrigin ( double  origin[3])
protected

Member Data Documentation

vtkActor* vtkConstrainedPointHandleRepresentation::Actor
protected

Definition at line 205 of file vtkConstrainedPointHandleRepresentation.h.

vtkPolyDataMapper* vtkConstrainedPointHandleRepresentation::Mapper
protected

Definition at line 206 of file vtkConstrainedPointHandleRepresentation.h.

vtkGlyph3D* vtkConstrainedPointHandleRepresentation::Glypher
protected

Definition at line 207 of file vtkConstrainedPointHandleRepresentation.h.

vtkPolyData* vtkConstrainedPointHandleRepresentation::CursorShape
protected

Definition at line 208 of file vtkConstrainedPointHandleRepresentation.h.

vtkPolyData* vtkConstrainedPointHandleRepresentation::ActiveCursorShape
protected

Definition at line 209 of file vtkConstrainedPointHandleRepresentation.h.

vtkPolyData* vtkConstrainedPointHandleRepresentation::FocalData
protected

Definition at line 210 of file vtkConstrainedPointHandleRepresentation.h.

vtkPoints* vtkConstrainedPointHandleRepresentation::FocalPoint
protected

Definition at line 211 of file vtkConstrainedPointHandleRepresentation.h.

double vtkConstrainedPointHandleRepresentation::LastPickPosition[3]
protected

Definition at line 214 of file vtkConstrainedPointHandleRepresentation.h.

double vtkConstrainedPointHandleRepresentation::LastEventPosition[2]
protected

Definition at line 215 of file vtkConstrainedPointHandleRepresentation.h.

vtkProperty* vtkConstrainedPointHandleRepresentation::Property
protected

Definition at line 224 of file vtkConstrainedPointHandleRepresentation.h.

vtkProperty* vtkConstrainedPointHandleRepresentation::SelectedProperty
protected

Definition at line 225 of file vtkConstrainedPointHandleRepresentation.h.

vtkProperty* vtkConstrainedPointHandleRepresentation::ActiveProperty
protected

Definition at line 226 of file vtkConstrainedPointHandleRepresentation.h.

int vtkConstrainedPointHandleRepresentation::ProjectionNormal
protected

Definition at line 230 of file vtkConstrainedPointHandleRepresentation.h.

double vtkConstrainedPointHandleRepresentation::ProjectionPosition
protected

Definition at line 231 of file vtkConstrainedPointHandleRepresentation.h.

int vtkConstrainedPointHandleRepresentation::ProjectToPlane
protected

Definition at line 232 of file vtkConstrainedPointHandleRepresentation.h.

vtkPlane* vtkConstrainedPointHandleRepresentation::ObliquePlane
protected

Definition at line 233 of file vtkConstrainedPointHandleRepresentation.h.

vtkPlaneCollection* vtkConstrainedPointHandleRepresentation::BoundingPlanes
protected

Definition at line 235 of file vtkConstrainedPointHandleRepresentation.h.

double vtkConstrainedPointHandleRepresentation::InteractionOffset[2]
protected

Definition at line 254 of file vtkConstrainedPointHandleRepresentation.h.


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