VTK
|
Converts 2D display positions to world positions such that they lie on an ImageActor. More...
#include <vtkImageActorPointPlacer.h>
Public Member Functions | |
int | ValidateWorldPosition (double worldPos[3]) |
int | UpdateInternalState () |
virtual void | SetWorldTolerance (double s) |
int | ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9]) |
int | ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double refWorldPos[2], double worldPos[3], double worldOrient[9]) |
int | ValidateWorldPosition (double worldPos[3], double worldOrient[9]) |
int | UpdateWorldPosition (vtkRenderer *ren, double worldPos[3], double worldOrient[9]) |
void | SetImageActor (vtkImageActor *) |
virtual vtkImageActor * | GetImageActor () |
virtual void | SetBounds (double, double, double, double, double, double) |
virtual void | SetBounds (double[6]) |
virtual double * | GetBounds () |
virtual void | GetBounds (double &, double &, double &, double &, double &, double &) |
virtual void | GetBounds (double[6]) |
![]() | |
virtual int | ValidateDisplayPosition (vtkRenderer *, double displayPos[2]) |
virtual int | ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9]) |
virtual int | UpdateNodeWorldPosition (double worldPos[3], vtkIdType nodePointId) |
virtual void | SetPixelTolerance (int) |
virtual int | GetPixelTolerance () |
virtual double | GetWorldTolerance () |
vtkPointPlacer * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
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) |
![]() | |
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 vtkImageActorPointPlacer * | New () |
![]() | |
static vtkPointPlacer * | New () |
static int | IsTypeOf (const char *type) |
static vtkPointPlacer * | SafeDownCast (vtkObjectBase *o) |
![]() | |
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 int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkImageActorPointPlacer () | |
~vtkImageActorPointPlacer () | |
![]() | |
vtkPointPlacer () | |
~vtkPointPlacer () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkImageActor * | ImageActor |
vtkBoundedPlanePointPlacer * | Placer |
double | SavedBounds [6] |
double | Bounds [6] |
![]() | |
int | PixelTolerance |
double | WorldTolerance |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
typedef vtkPointPlacer | Superclass |
static int | IsTypeOf (const char *type) |
static vtkImageActorPointPlacer * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkImageActorPointPlacer * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Converts 2D display positions to world positions such that they lie on an ImageActor.
This PointPlacer is used to constrain the placement of points on the supplied image actor. Additionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
Definition at line 38 of file vtkImageActorPointPlacer.h.
Standard methods for instances of this class.
Definition at line 46 of file vtkImageActorPointPlacer.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 vtkPointPlacer.
|
static |
Standard methods for instances of this class.
|
protectedvirtual |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
vtkImageActorPointPlacer* vtkImageActorPointPlacer::NewInstance | ( | ) | const |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkObject.
|
virtual |
Given and renderer and a display position in pixels, find a world position and orientation. In this class an internal vtkBoundedPlanePointPlacer is used to compute the world position and orientation. The internal placer is set to use the plane of the image actor and the bounds of the image actor as the constraints for placing points.
Reimplemented from vtkPointPlacer.
int vtkImageActorPointPlacer::ComputeWorldPosition | ( | vtkRenderer * | ren, |
double | displayPos[2], | ||
double | refWorldPos[2], | ||
double | worldPos[3], | ||
double | worldOrient[9] | ||
) |
This method is identical to the one above since the reference position is ignored by the bounded plane point placer.
This method validates a world position by checking to see if the world position is valid according to the constraints of the internal placer (essentially - is this world position on the image?)
Reimplemented from vtkPointPlacer.
|
virtual |
This method is identical to the one above since the bounded plane point placer ignores orientation
Reimplemented from vtkPointPlacer.
|
virtual |
Update the world position and orientation according the the current constraints of the placer. Will be called by the representation when it notices that this placer has been modified.
Reimplemented from vtkPointPlacer.
|
virtual |
A method for configuring the internal placer according to the constraints of the image actor. Called by the representation to give the placer a chance to update itself, which may cause the MTime to change, which would then cause the representation to update all of its points
Reimplemented from vtkPointPlacer.
void vtkImageActorPointPlacer::SetImageActor | ( | vtkImageActor * | ) |
Set / get the reference vtkImageActor used to place the points. An image actor must be set for this placer to work. An internal bounded plane point placer is created and set to match the bounds of the displayed image.
|
virtual |
Set / get the reference vtkImageActor used to place the points. An image actor must be set for this placer to work. An internal bounded plane point placer is created and set to match the bounds of the displayed image.
|
virtual |
Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
|
virtual |
Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
|
virtual |
Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
|
virtual |
Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
|
virtual |
Optionally, you may set bounds to restrict the placement of the points. The placement of points will then be constrained to lie not only on the ImageActor but also within the bounds specified. If no bounds are specified, they may lie anywhere on the supplied ImageActor.
|
virtual |
Set the world tolerance. This propagates it to the internal BoundedPlanePointPlacer.
Reimplemented from vtkPointPlacer.
|
protected |
Definition at line 132 of file vtkImageActorPointPlacer.h.
|
protected |
Definition at line 135 of file vtkImageActorPointPlacer.h.
|
protected |
Definition at line 139 of file vtkImageActorPointPlacer.h.
|
protected |
Definition at line 142 of file vtkImageActorPointPlacer.h.