NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Command used to update the alignment of a tracked pointer. More...
Public Member Functions | |
mitkClassMacroItkParent (TrackedPointer, itk::Object) static Pointer New() | |
virtual void | ExecuteOperation (mitk::Operation *operation) override |
Used from the Undo stack, see mitk::OperationActor::ExecuteOperation(). More... | |
void | SetDataStorage (const mitk::DataStorage::Pointer &storage) |
Sets the data storage onto this object. More... | |
void | Update (const vtkMatrix4x4 &tipToPointerTransform, const mitk::DataNode::Pointer pointerToWorldNode, mitk::DataNode::Pointer surfaceNode, mitk::Point3D &tipCoordinate) |
Takes a surface representing a tracked pointer, updates the surface's geometry, and calculates the pointer position. More... | |
void | OnGrabPoint (const mitk::Point3D &point) |
If the point set is not created, will create it, and then add a new point to it. More... | |
void | OnClearPoints () |
Clears the point set. More... | |
mitk::PointSet::Pointer | RetrievePointSet () |
Returns the point set from data storage, creating one if it can't be found. More... | |
Static Public Attributes | |
static const bool | UPDATE_VIEW_COORDINATE_DEFAULT |
Stores the default value of whether to update the view (i.e. center it) each time the pointer moves, defaults to false. More... | |
static const std::string | TRACKED_POINTER_POINTSET_NAME |
Stores the name of the mitk::PointSet that this class creates and adds to. More... | |
Protected Member Functions | |
TrackedPointer () | |
virtual | ~TrackedPointer () |
TrackedPointer (const TrackedPointer &) | |
TrackedPointer & | operator= (const TrackedPointer &) |
Command used to update the alignment of a tracked pointer.
|
protected |
|
protectedvirtual |
|
protected |
|
overridevirtual |
Used from the Undo stack, see mitk::OperationActor::ExecuteOperation().
mitk::TrackedPointer::mitkClassMacroItkParent | ( | TrackedPointer | , |
itk::Object | |||
) |
void mitk::TrackedPointer::OnClearPoints | ( | ) |
Clears the point set.
void mitk::TrackedPointer::OnGrabPoint | ( | const mitk::Point3D & | point | ) |
If the point set is not created, will create it, and then add a new point to it.
|
protected |
mitk::PointSet::Pointer mitk::TrackedPointer::RetrievePointSet | ( | ) |
Returns the point set from data storage, creating one if it can't be found.
void mitk::TrackedPointer::SetDataStorage | ( | const mitk::DataStorage::Pointer & | storage | ) |
Sets the data storage onto this object.
void mitk::TrackedPointer::Update | ( | const vtkMatrix4x4 & | tipToPointerTransform, |
const mitk::DataNode::Pointer | pointerToWorldNode, | ||
mitk::DataNode::Pointer | surfaceNode, | ||
mitk::Point3D & | tipCoordinate | ||
) |
Takes a surface representing a tracked pointer, updates the surface's geometry, and calculates the pointer position.
|
static |
Stores the name of the mitk::PointSet that this class creates and adds to.
|
static |
Stores the default value of whether to update the view (i.e. center it) each time the pointer moves, defaults to false.