VTK
|
Converts 2D display positions to world positions such that they lie on an ImageActor. More...
#include <vtkImageActorPointPlacer.h>
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.
Reimplemented from vtkPointPlacer.
Definition at line 46 of file vtkImageActorPointPlacer.h.
vtkImageActorPointPlacer::vtkImageActorPointPlacer | ( | ) | [protected] |
vtkImageActorPointPlacer::~vtkImageActorPointPlacer | ( | ) | [protected] |
static vtkImageActorPointPlacer* vtkImageActorPointPlacer::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkPointPlacer.
static int vtkImageActorPointPlacer::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
virtual int vtkImageActorPointPlacer::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
static vtkImageActorPointPlacer* vtkImageActorPointPlacer::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
virtual vtkObjectBase* vtkImageActorPointPlacer::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
void vtkImageActorPointPlacer::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
int vtkImageActorPointPlacer::ComputeWorldPosition | ( | vtkRenderer * | ren, |
double | displayPos[2], | ||
double | worldPos[3], | ||
double | worldOrient[9] | ||
) | [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.
int vtkImageActorPointPlacer::ValidateWorldPosition | ( | double | worldPos[3] | ) | [virtual] |
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.
int vtkImageActorPointPlacer::ValidateWorldPosition | ( | double | worldPos[3], |
double | worldOrient[9] | ||
) | [virtual] |
This method is identical to the one above since the bounded plane point placer ignores orientation
Reimplemented from vtkPointPlacer.
int vtkImageActorPointPlacer::UpdateWorldPosition | ( | vtkRenderer * | ren, |
double | worldPos[3], | ||
double | worldOrient[9] | ||
) | [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.
int vtkImageActorPointPlacer::UpdateInternalState | ( | ) | [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.
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 vtkImageActor* vtkImageActorPointPlacer::GetImageActor | ( | ) | [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 void vtkImageActorPointPlacer::SetBounds | ( | double | , |
double | , | ||
double | , | ||
double | , | ||
double | , | ||
double | |||
) | [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 void vtkImageActorPointPlacer::SetBounds | ( | double | [6] | ) | [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 double* vtkImageActorPointPlacer::GetBounds | ( | ) | [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 void vtkImageActorPointPlacer::GetBounds | ( | double & | , |
double & | , | ||
double & | , | ||
double & | , | ||
double & | , | ||
double & | |||
) | [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 void vtkImageActorPointPlacer::GetBounds | ( | double | [6] | ) | [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 void vtkImageActorPointPlacer::SetWorldTolerance | ( | double | s | ) | [virtual] |
Set the world tolerance. This propagates it to the internal BoundedPlanePointPlacer.
Reimplemented from vtkPointPlacer.
vtkImageActor* vtkImageActorPointPlacer::ImageActor [protected] |
Definition at line 132 of file vtkImageActorPointPlacer.h.
Definition at line 135 of file vtkImageActorPointPlacer.h.
double vtkImageActorPointPlacer::SavedBounds[6] [protected] |
Definition at line 139 of file vtkImageActorPointPlacer.h.
double vtkImageActorPointPlacer::Bounds[6] [protected] |
Definition at line 142 of file vtkImageActorPointPlacer.h.