Fraxinus  16.5.0-fx-rc1
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ToolProxy Class Reference

#include <cxToolProxy.h>

Inheritance diagram for cx::ToolProxy:
cx::Tool

Public Member Functions

virtual ~ToolProxy ()
 
virtual std::set< TypegetTypes () const
 
virtual vtkPolyDataPtr getGraphicsPolyData () const
 get geometric 3D description More...
 
virtual TimedTransformMapPtr getPositionHistory ()
 get historical positions More...
 
virtual ToolPositionMetadata getMetadata () const
 
virtual const std::map< double,
ToolPositionMetadata > & 
getMetadataHistory ()
 
virtual bool getVisible () const
 
virtual bool isInitialized () const
 
virtual QString getUid () const
 
virtual QString getName () const
 
virtual bool isCalibrated () const
 a tool may not be calibrated, then no tracking i allowed 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...
 
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 void printSelf (std::ostream &os, Indent indent)
 dump internal debug data 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 std::map< int, Vector3DgetReferencePoints () const
 Get the optional reference points from this tool. More...
 
virtual bool hasReferencePointWithId (int id)
 
virtual TimedTransformMap getSessionHistory (double startTime, double stopTime)
 
virtual Transform3D get_prMt () const
 
virtual void resetTrackingPositionFilter (TrackingPositionFilterPtr filter)
 
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 bool isNull ()
 
- Public Member Functions inherited from cx::Tool
 Tool (const QString &uid="", const QString &name="")
 
virtual ~Tool ()
 
virtual bool hasType (Type type) const
 

Static Public Member Functions

static ToolPtr create (ToolPtr base, ctkPluginContext *pluginContext)
 
- Static Public Member Functions inherited from cx::Tool
static vtkPolyDataPtr createDefaultPolyDataCone ()
 
static ToolPtr getNullObject ()
 

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
}
 
- Signals inherited from cx::Tool
void toolTransformAndTimestamp (Transform3D matrix, double timestamp)
 
void toolVisible (bool visible)
 
void tooltipOffset (double offset)
 
void toolProbeSector ()
 
void tps (int)
 
- Protected Attributes inherited from cx::Tool
QString mUid
 
QString mName
 

Detailed Description

Proxy for a real Tool. Turns to Null when Tool becomes unavailable

Definition at line 48 of file cxToolProxy.h.

Constructor & Destructor Documentation

virtual cx::ToolProxy::~ToolProxy ( )
inlinevirtual

Definition at line 54 of file cxToolProxy.h.

Member Function Documentation

ToolPtr cx::ToolProxy::create ( ToolPtr  base,
ctkPluginContext *  pluginContext 
)
static

Definition at line 10 of file cxToolProxy.cpp.

Transform3D cx::ToolProxy::get_prMt ( ) const
virtual

Implements cx::Tool.

Definition at line 165 of file cxToolProxy.cpp.

Transform3D cx::ToolProxy::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 115 of file cxToolProxy.cpp.

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

get geometric 3D description

Implements cx::Tool.

Definition at line 70 of file cxToolProxy.cpp.

ToolPositionMetadata cx::ToolProxy::getMetadata ( ) const
virtual

Implements cx::Tool.

Definition at line 80 of file cxToolProxy.cpp.

const std::map< double, ToolPositionMetadata > & cx::ToolProxy::getMetadataHistory ( )
virtual

Implements cx::Tool.

Definition at line 85 of file cxToolProxy.cpp.

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

Implements cx::Tool.

Definition at line 106 of file cxToolProxy.cpp.

TimedTransformMapPtr cx::ToolProxy::getPositionHistory ( )
virtual

get historical positions

Implements cx::Tool.

Definition at line 75 of file cxToolProxy.cpp.

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

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

Reimplemented from cx::Tool.

Definition at line 125 of file cxToolProxy.cpp.

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

Get the optional reference points from this tool.

Reimplemented from cx::Tool.

Definition at line 150 of file cxToolProxy.cpp.

TimedTransformMap cx::ToolProxy::getSessionHistory ( double  startTime,
double  stopTime 
)
virtual

Implements cx::Tool.

Definition at line 160 of file cxToolProxy.cpp.

double cx::ToolProxy::getTimestamp ( ) const
virtual

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

Implements cx::Tool.

Definition at line 130 of file cxToolProxy.cpp.

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

get a virtual offset extending from the tool tip.

Reimplemented from cx::Tool.

Definition at line 140 of file cxToolProxy.cpp.

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

Implements cx::Tool.

Definition at line 65 of file cxToolProxy.cpp.

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

Implements cx::Tool.

Definition at line 100 of file cxToolProxy.cpp.

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

Implements cx::Tool.

Definition at line 90 of file cxToolProxy.cpp.

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

Reimplemented from cx::Tool.

Definition at line 155 of file cxToolProxy.cpp.

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

a tool may not be calibrated, then no tracking i allowed

Implements cx::Tool.

Definition at line 111 of file cxToolProxy.cpp.

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

Reimplemented from cx::Tool.

Definition at line 95 of file cxToolProxy.cpp.

bool cx::ToolProxy::isNull ( )
virtual

Implements cx::Tool.

Definition at line 186 of file cxToolProxy.cpp.

void cx::ToolProxy::printSelf ( std::ostream &  os,
Indent  indent 
)
virtual

dump internal debug data

Reimplemented from cx::Tool.

Definition at line 135 of file cxToolProxy.cpp.

void cx::ToolProxy::resetTrackingPositionFilter ( TrackingPositionFilterPtr  filter)
virtual

Implements cx::Tool.

Definition at line 170 of file cxToolProxy.cpp.

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

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

Implements cx::Tool.

Definition at line 175 of file cxToolProxy.cpp.

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

requests to use the calibration and replaces the tools calibration file

Reimplemented from cx::Tool.

Definition at line 120 of file cxToolProxy.cpp.

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

set a virtual offset extending from the tool tip.

Reimplemented from cx::Tool.

Definition at line 145 of file cxToolProxy.cpp.

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

if available for this type, set visibility

Implements cx::Tool.

Definition at line 180 of file cxToolProxy.cpp.


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