NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
mitk::TrackedPointer Class Reference

Command used to update the alignment of a tracked pointer. More...

Inheritance diagram for mitk::TrackedPointer:
Inheritance graph
[legend]
Collaboration diagram for mitk::TrackedPointer:
Collaboration graph
[legend]

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 &)
 
TrackedPointeroperator= (const TrackedPointer &)
 

Detailed Description

Command used to update the alignment of a tracked pointer.

Constructor & Destructor Documentation

mitk::TrackedPointer::TrackedPointer ( )
protected
mitk::TrackedPointer::~TrackedPointer ( )
protectedvirtual
mitk::TrackedPointer::TrackedPointer ( const TrackedPointer )
protected

Member Function Documentation

void mitk::TrackedPointer::ExecuteOperation ( mitk::Operation *  operation)
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.

TrackedPointer& mitk::TrackedPointer::operator= ( const TrackedPointer )
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.

Member Data Documentation

const std::string mitk::TrackedPointer::TRACKED_POINTER_POINTSET_NAME
static

Stores the name of the mitk::PointSet that this class creates and adds to.

const bool mitk::TrackedPointer::UPDATE_VIEW_COORDINATE_DEFAULT
static

Stores the default value of whether to update the view (i.e. center it) each time the pointer moves, defaults to false.


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