VTK
|
point representation constrained to a 2D plane More...
#include <vtkConstrainedPointHandleRepresentation.h>
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) |
vtkPolyData * | GetCursorShape () |
void | SetActiveCursorShape (vtkPolyData *activeShape) |
vtkPolyData * | GetActiveCursorShape () |
virtual void | SetProjectionNormal (int) |
virtual int | GetProjectionNormal () |
void | SetObliquePlane (vtkPlane *) |
virtual vtkPlane * | GetObliquePlane () |
void | SetProjectionPosition (double position) |
virtual double | GetProjectionPosition () |
void | AddBoundingPlane (vtkPlane *plane) |
void | RemoveBoundingPlane (vtkPlane *plane) |
void | RemoveAllBoundingPlanes () |
virtual void | SetBoundingPlanes (vtkPlaneCollection *) |
virtual vtkPlaneCollection * | GetBoundingPlanes () |
void | SetBoundingPlanes (vtkPlanes *planes) |
void | SetPosition (double x, double y, double z) |
void | SetPosition (double xyz[3]) |
double * | GetPosition () |
void | GetPosition (double xyz[3]) |
virtual vtkProperty * | GetProperty () |
virtual vtkProperty * | GetSelectedProperty () |
virtual vtkProperty * | GetActiveProperty () |
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 double * | GetDisplayPosition () |
virtual void | SetWorldPosition (double pos[3]) |
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 | DeepCopy (vtkProp *prop) |
virtual void | SetPointPlacer (vtkPointPlacer *) |
virtual vtkPointPlacer * | GetPointPlacer () |
vtkHandleRepresentation * | NewInstance () 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 void | SetHandleSize (double) |
virtual double | GetHandleSize () |
virtual int | GetNeedToRender () |
virtual void | SetNeedToRender (int) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
virtual double * | GetBounds () |
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)) |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions inherited from vtkProp | |
vtkProp * | NewInstance () 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 vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkMatrix4x4 * | GetMatrix () |
virtual vtkInformation * | GetPropertyKeys () |
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) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () 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) |
vtkCommand * | GetCommand (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 vtkConstrainedPointHandleRepresentation * | New () |
Static Public Member Functions inherited from vtkHandleRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkHandleRepresentation * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkWidgetRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkProp | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
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 vtkObjectBase * | New () |
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
Definition at line 57 of file vtkConstrainedPointHandleRepresentation.h.
Standard methods for instances of this class.
Definition at line 65 of file vtkConstrainedPointHandleRepresentation.h.
anonymous enum |
Enumerator | |
---|---|
XAxis | |
YAxis | |
ZAxis | |
Oblique |
Definition at line 195 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate this class.
|
static |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
|
static |
Standard methods for instances of this class.
|
protectedvirtual |
Standard methods for instances of this class.
Reimplemented from vtkHandleRepresentation.
vtkConstrainedPointHandleRepresentation* vtkConstrainedPointHandleRepresentation::NewInstance | ( | ) | const |
Standard methods for instances of this class.
|
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 |
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 |
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.
|
inline |
Definition at line 95 of file vtkConstrainedPointHandleRepresentation.h.
|
inline |
Definition at line 97 of file vtkConstrainedPointHandleRepresentation.h.
|
inline |
Definition at line 99 of file vtkConstrainedPointHandleRepresentation.h.
|
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 |
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 |
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 |
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 |
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 |
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.
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 |
This is the property used when the handle is not active (the mouse is not near the handle)
|
virtual |
This is the property used when the mouse is near the handle (but the user is not yet interacting with it)
|
virtual |
This is the property used when the user is interacting with the handle.
|
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 |
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 |
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 |
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 |
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 |
Method overridden from Superclass. computes the world co-ordinates using GetIntersectionPosition()
Reimplemented from vtkHandleRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkHandleRepresentation.
void vtkConstrainedPointHandleRepresentation::Highlight | ( | int | highlight | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 205 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 206 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 207 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 208 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 209 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 210 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 211 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 214 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 215 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 224 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 225 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 226 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 230 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 231 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 232 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 233 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 235 of file vtkConstrainedPointHandleRepresentation.h.
|
protected |
Definition at line 254 of file vtkConstrainedPointHandleRepresentation.h.