CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ToolUsingIGSTK Class Reference

Class representing the tools a navigation system can recognize. More...

#include <cxToolUsingIGSTK.h>

Inheritance diagram for cx::ToolUsingIGSTK:
cx::ToolImpl cx::Tool

Signals

void attachedToTracker (bool)
 
- Signals inherited from cx::Tool
void toolTransformAndTimestamp (Transform3D matrix, double timestamp)
 
void toolVisible (bool visible)
 
void tooltipOffset (double offset)
 
void toolProbeSector ()
 
void tps (int)
 

Public Member Functions

 ToolUsingIGSTK (IgstkToolPtr igstkTool)
 
virtual ~ToolUsingIGSTK ()
 
virtual std::set< TypegetTypes () const
 
virtual vtkPolyDataPtr getGraphicsPolyData () const
 get geometric 3D description More...
 
virtual bool getVisible () const
 
virtual bool isInitialized () const
 
virtual QString getUid () const
 
virtual QString getName () const
 
virtual int getIndex () const
 
virtual ProbePtr getProbe () const
 additional information if the tool represents an US Probe. Extends getProbeSector() More...
 
virtual double getTimestamp () const
 latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools) More...
 
virtual double getTooltipOffset () const
 get a virtual offset extending from the tool tip. More...
 
virtual void setTooltipOffset (double val)
 set a virtual offset extending from the tool tip. More...
 
virtual bool isCalibrated () const
 true if calibration is different from identity More...
 
virtual Transform3D getCalibration_sMt () const
 get the calibration transform from tool space to sensor space (where the spheres or similar live) More...
 
virtual void setCalibration_sMt (Transform3D calibration)
 requests to use the calibration and replaces the tools calibration file More...
 
QString getCalibrationFileName () const
 returns the path to the tools calibration file More...
 
TRACKING_SYSTEM getTrackerType ()
 the type of tracker this tool belongs to More...
 
virtual std::map< int, Vector3DgetReferencePoints () const
 Get the optional reference points from this tool. More...
 
virtual bool hasReferencePointWithId (int id)
 
bool isValid () const
 whether this tool is constructed correctly or not More...
 
virtual void set_prMt (const Transform3D &prMt, double timestamp)
 if available for this type, set pos, ts<0 means use current time More...
 
virtual void setVisible (bool vis)
 if available for this type, set visibility More...
 
virtual void addXml (QDomNode &dataNode)
 
virtual void parseXml (QDomNode &dataNode)
 
- Public Member Functions inherited from cx::ToolImpl
 ToolImpl (const QString &uid="", const QString &name="")
 
virtual ~ToolImpl ()
 
virtual TimedTransformMapPtr getPositionHistory ()
 get historical positions More...
 
virtual TimedTransformMap getSessionHistory (double startTime, double stopTime)
 
virtual Transform3D get_prMt () const
 
virtual ToolPositionMetadata getMetadata () const
 
virtual const std::map< double,
ToolPositionMetadata > & 
getMetadataHistory ()
 
virtual void resetTrackingPositionFilter (TrackingPositionFilterPtr filter)
 
virtual bool isNull ()
 
- Public Member Functions inherited from cx::Tool
 Tool (const QString &uid="", const QString &name="")
 
virtual ~Tool ()
 
virtual bool hasType (Type type) const
 
virtual void printSelf (std::ostream &os, Indent indent)
 dump internal debug data More...
 

Additional Inherited Members

- Public Types inherited from cx::Tool
enum  State { tsNONE =0, tsCONFIGURED, tsINITIALIZED, tsTRACKING }
 
enum  Type {
  TOOL_NONE, TOOL_REFERENCE, TOOL_MANUAL, TOOL_POINTER,
  TOOL_US_PROBE, TOOL_MICROSCOPE
}
 
- Static Public Member Functions inherited from cx::Tool
static vtkPolyDataPtr createDefaultPolyDataCone ()
 
static ToolPtr getNullObject ()
 
- Protected Attributes inherited from cx::ToolImpl
TimedTransformMapPtr mPositionHistory
 
Transform3D m_prMt
 the transform from the tool to the patient reference More...
 
TrackingPositionFilterPtr mTrackingPositionFilter
 
std::map< double,
ToolPositionMetadata
mMetadata
 
- Protected Attributes inherited from cx::Tool
QString mUid
 
QString mName
 

Detailed Description

Class representing the tools a navigation system can recognize.

Date
Nov 6, 2008
Author
Janne Beate Bakeng, SINTEF

Definition at line 77 of file cxToolUsingIGSTK.h.

Constructor & Destructor Documentation

cx::ToolUsingIGSTK::ToolUsingIGSTK ( IgstkToolPtr  igstkTool)

Definition at line 53 of file cxToolUsingIGSTK.cpp.

cx::ToolUsingIGSTK::~ToolUsingIGSTK ( )
virtual

Definition at line 80 of file cxToolUsingIGSTK.cpp.

Member Function Documentation

void cx::ToolUsingIGSTK::addXml ( QDomNode &  dataNode)
virtual

Reimplemented from cx::ToolImpl.

Definition at line 208 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::attachedToTracker ( bool  )
signal
Transform3D cx::ToolUsingIGSTK::getCalibration_sMt ( ) const
virtual

get the calibration transform from tool space to sensor space (where the spheres or similar live)

Implements cx::Tool.

Definition at line 171 of file cxToolUsingIGSTK.cpp.

QString cx::ToolUsingIGSTK::getCalibrationFileName ( ) const

returns the path to the tools calibration file

Definition at line 183 of file cxToolUsingIGSTK.cpp.

vtkPolyDataPtr cx::ToolUsingIGSTK::getGraphicsPolyData ( ) const
virtual

get geometric 3D description

Implements cx::Tool.

Definition at line 98 of file cxToolUsingIGSTK.cpp.

virtual int cx::ToolUsingIGSTK::getIndex ( ) const
inlinevirtual

Definition at line 106 of file cxToolUsingIGSTK.h.

QString cx::ToolUsingIGSTK::getName ( ) const
virtual
Returns
a descriptive name for this instance

Implements cx::Tool.

Definition at line 123 of file cxToolUsingIGSTK.cpp.

ProbePtr cx::ToolUsingIGSTK::getProbe ( ) const
virtual

additional information if the tool represents an US Probe. Extends getProbeSector()

Reimplemented from cx::Tool.

Definition at line 103 of file cxToolUsingIGSTK.cpp.

std::map< int, Vector3D > cx::ToolUsingIGSTK::getReferencePoints ( ) const
virtual

Get the optional reference points from this tool.

Reimplemented from cx::Tool.

Definition at line 198 of file cxToolUsingIGSTK.cpp.

virtual double cx::ToolUsingIGSTK::getTimestamp ( ) const
inlinevirtual

latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools)

Implements cx::Tool.

Definition at line 108 of file cxToolUsingIGSTK.h.

double cx::ToolUsingIGSTK::getTooltipOffset ( ) const
virtual

get a virtual offset extending from the tool tip.

Reimplemented from cx::ToolImpl.

Definition at line 128 of file cxToolUsingIGSTK.cpp.

TRACKING_SYSTEM cx::ToolUsingIGSTK::getTrackerType ( )

the type of tracker this tool belongs to

Definition at line 188 of file cxToolUsingIGSTK.cpp.

std::set< ToolUsingIGSTK::Type > cx::ToolUsingIGSTK::getTypes ( ) const
virtual

Implements cx::Tool.

Definition at line 84 of file cxToolUsingIGSTK.cpp.

QString cx::ToolUsingIGSTK::getUid ( ) const
virtual
Returns
an unique id for this instance

Implements cx::Tool.

Definition at line 118 of file cxToolUsingIGSTK.cpp.

bool cx::ToolUsingIGSTK::getVisible ( ) const
virtual
Returns
the visibility status of the tool

Implements cx::Tool.

Definition at line 108 of file cxToolUsingIGSTK.cpp.

bool cx::ToolUsingIGSTK::hasReferencePointWithId ( int  id)
virtual

Reimplemented from cx::Tool.

Definition at line 203 of file cxToolUsingIGSTK.cpp.

bool cx::ToolUsingIGSTK::isCalibrated ( ) const
virtual

true if calibration is different from identity

Implements cx::Tool.

Definition at line 164 of file cxToolUsingIGSTK.cpp.

bool cx::ToolUsingIGSTK::isInitialized ( ) const
virtual

Reimplemented from cx::Tool.

Definition at line 113 of file cxToolUsingIGSTK.cpp.

bool cx::ToolUsingIGSTK::isValid ( ) const

whether this tool is constructed correctly or not

Definition at line 142 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::parseXml ( QDomNode &  dataNode)
virtual

Reimplemented from cx::ToolImpl.

Definition at line 220 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::set_prMt ( const Transform3D prMt,
double  timestamp 
)
virtual

if available for this type, set pos, ts<0 means use current time

Reimplemented from cx::ToolImpl.

Definition at line 285 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::setCalibration_sMt ( Transform3D  calibration)
virtual

requests to use the calibration and replaces the tools calibration file

Reimplemented from cx::Tool.

Definition at line 178 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::setTooltipOffset ( double  val)
virtual

set a virtual offset extending from the tool tip.

Reimplemented from cx::ToolImpl.

Definition at line 135 of file cxToolUsingIGSTK.cpp.

void cx::ToolUsingIGSTK::setVisible ( bool  vis)
virtual

if available for this type, set visibility

Implements cx::Tool.

Definition at line 290 of file cxToolUsingIGSTK.cpp.


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