NorMIT-nav
16.5
An IGT application
|
Implementation of a Tool used for testing. More...
#include <cxDummyTool.h>
Public Member Functions | |
DummyTool (const QString &uid="dummytool") | |
~DummyTool () | |
virtual std::set< Type > | getTypes () const |
virtual void | setType (Type) |
virtual vtkPolyDataPtr | getGraphicsPolyData () const |
get geometric 3D description More... | |
virtual void | setTransformSaveFile (const QString &filename) |
virtual bool | getVisible () const |
virtual QString | getUid () const |
virtual QString | getName () const |
virtual int | getIndex () const |
virtual bool | isCalibrated () const |
a tool may not be calibrated, then no tracking i allowed More... | |
virtual ProbePtr | getProbe () const |
additional information if the tool represents an US Probe. Extends getProbeSector() More... | |
void | setProbeSector (ProbeDefinition probeDefinition) |
void | setProbeSector (ProbePtr probe) |
virtual double | getTimestamp () const |
latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools) More... | |
void | startTracking (int interval=33) |
void | stopTracking () |
void | setToolPositionMovement (const std::vector< Transform3D > &positions) |
void | setToolPositionMovementBB (const DoubleBoundingBox3D &bb) |
std::vector< Transform3D > | createToolPositionMovementTranslationOnly (const DoubleBoundingBox3D &bb) const |
std::vector< Transform3D > | getToolPositionMovement () |
void | set_prMt (const Transform3D &ptMt) |
void | setVisible (bool val) |
if available for this type, set visibility More... | |
virtual Transform3D | getCalibration_sMt () const |
get the calibration transform from tool space to sensor space (where the spheres or similar live) More... | |
virtual std::map< int, Vector3D > | getReferencePoints () const |
Get the optional reference points from this tool. More... | |
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 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 void | resetTrackingPositionFilter (TrackingPositionFilterPtr filter) |
virtual bool | isNull () |
virtual void | addXml (QDomNode &dataNode) |
virtual void | parseXml (QDomNode &dataNode) |
Public Member Functions inherited from cx::Tool | |
Tool (const QString &uid="", const QString &name="") | |
virtual | ~Tool () |
virtual bool | hasType (Type type) const |
virtual bool | isInitialized () const |
virtual void | setCalibration_sMt (Transform3D calibration) |
requests to use the calibration and replaces the tools calibration file More... | |
virtual void | printSelf (std::ostream &os, Indent indent) |
dump internal debug data More... | |
virtual bool | hasReferencePointWithId (int id) |
Static Public Member Functions | |
static vtkPolyDataPtr | createPolyData (double h1, double h2, double r1, double r2) |
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 Member Functions inherited from cx::ToolImpl | |
virtual void | set_prMt (const Transform3D &prMt, double timestamp) |
if available for this type, set pos, ts<0 means use current time More... | |
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 |
Implementation of a Tool used for testing.
Can move in a specified path.
Definition at line 170 of file cxDummyTool.h.
|
explicit |
Definition at line 90 of file cxDummyTool.cpp.
cx::DummyTool::~DummyTool | ( | ) |
Definition at line 108 of file cxDummyTool.cpp.
|
static |
Create a dummy 3D representation with a butt tip Input is the height of the two segments, h1 and h2, and the radius of the two segmens, r1 and r2. Typical values is given in the class constructor (150,10,10,3).
Definition at line 227 of file cxDummyTool.cpp.
std::vector< Transform3D > cx::DummyTool::createToolPositionMovementTranslationOnly | ( | const DoubleBoundingBox3D & | bb | ) | const |
Create a test trajectory that moves within the given bb.
Definition at line 348 of file cxDummyTool.cpp.
|
virtual |
get the calibration transform from tool space to sensor space (where the spheres or similar live)
Implements cx::Tool.
Definition at line 393 of file cxDummyTool.cpp.
|
virtual |
|
inlinevirtual |
Definition at line 184 of file cxDummyTool.h.
|
virtual |
Implements cx::Tool.
Definition at line 160 of file cxDummyTool.cpp.
|
inlinevirtual |
additional information if the tool represents an US Probe. Extends getProbeSector()
Reimplemented from cx::Tool.
Definition at line 186 of file cxDummyTool.h.
|
inlinevirtual |
Get the optional reference points from this tool.
Reimplemented from cx::Tool.
Definition at line 219 of file cxDummyTool.h.
|
inlinevirtual |
latest valid timestamp for the position matrix. 0 means indeterminate (for f.ex. manual tools)
Implements cx::Tool.
Definition at line 203 of file cxDummyTool.h.
std::vector< Transform3D > cx::DummyTool::getToolPositionMovement | ( | ) |
Definition at line 123 of file cxDummyTool.cpp.
|
virtual |
Implements cx::Tool.
Definition at line 113 of file cxDummyTool.cpp.
|
virtual |
Implements cx::Tool.
Definition at line 156 of file cxDummyTool.cpp.
|
virtual |
Implements cx::Tool.
Definition at line 152 of file cxDummyTool.cpp.
|
virtual |
a tool may not be calibrated, then no tracking i allowed
Implements cx::Tool.
Definition at line 177 of file cxDummyTool.cpp.
void cx::DummyTool::set_prMt | ( | const Transform3D & | ptMt | ) |
Definition at line 387 of file cxDummyTool.cpp.
|
inline |
Definition at line 190 of file cxDummyTool.h.
|
inline |
Definition at line 197 of file cxDummyTool.h.
void cx::DummyTool::setToolPositionMovement | ( | const std::vector< Transform3D > & | positions | ) |
Use this to override the default movement pattern in the tool. The pattern
Definition at line 132 of file cxDummyTool.cpp.
void cx::DummyTool::setToolPositionMovementBB | ( | const DoubleBoundingBox3D & | bb | ) |
Definition at line 118 of file cxDummyTool.cpp.
|
virtual |
Definition at line 147 of file cxDummyTool.cpp.
|
virtual |
Definition at line 137 of file cxDummyTool.cpp.
|
virtual |
if available for this type, set visibility
Implements cx::Tool.
Definition at line 211 of file cxDummyTool.cpp.
void cx::DummyTool::startTracking | ( | int | interval = 33 | ) |
Definition at line 164 of file cxDummyTool.cpp.
void cx::DummyTool::stopTracking | ( | ) |
Definition at line 201 of file cxDummyTool.cpp.