CustusX
15.3.3-beta
An IGT application
|
Common functionality for Tool subclasses. More...
#include <cxToolImpl.h>
Public Member Functions | |
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 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 () |
Public Member Functions inherited from cx::Tool | |
Tool (const QString &uid="", const QString &name="") | |
virtual | ~Tool () |
virtual std::set< Type > | getTypes () const =0 |
virtual bool | hasType (Type type) const |
virtual vtkPolyDataPtr | getGraphicsPolyData () const =0 |
get geometric 3D description More... | |
virtual bool | getVisible () const =0 |
virtual bool | isInitialized () const |
virtual QString | getUid () const =0 |
virtual QString | getName () const =0 |
virtual bool | isCalibrated () const =0 |
a tool may not be calibrated, then no tracking i allowed More... | |
virtual Transform3D | getCalibration_sMt () const =0 |
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 =0 |
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 std::map< int, Vector3D > | getReferencePoints () const |
Get the optional reference points from this tool. More... | |
virtual bool | hasReferencePointWithId (int id) |
virtual void | setVisible (bool vis)=0 |
if available for this type, set visibility More... | |
Protected Member Functions | |
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 | |
TimedTransformMapPtr | mPositionHistory |
Transform3D | m_prMt |
the transform from the tool to the patient reference More... | |
TrackingPositionFilterPtr | mTrackingPositionFilter |
Protected Attributes inherited from cx::Tool | |
QString | mUid |
QString | mName |
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) |
Static Public Member Functions inherited from cx::Tool | |
static ToolPtr | getNullObject () |
Common functionality for Tool subclasses.
Definition at line 50 of file cxToolImpl.h.
|
explicit |
Definition at line 39 of file cxToolImpl.cpp.
|
virtual |
Definition at line 47 of file cxToolImpl.cpp.
|
virtual |
Implements cx::Tool.
Reimplemented in cx::PlaybackTool.
Definition at line 79 of file cxToolImpl.cpp.
|
virtual |
get historical positions
Implements cx::Tool.
Reimplemented in cx::PlaybackTool.
Definition at line 65 of file cxToolImpl.cpp.
|
virtual |
Implements cx::Tool.
Reimplemented in cx::PlaybackTool.
Definition at line 70 of file cxToolImpl.cpp.
|
virtual |
get a virtual offset extending from the tool tip.
Reimplemented from cx::Tool.
Reimplemented in cx::ToolUsingIGSTK, cx::ManualToolAdapter, and cx::PlaybackTool.
Definition at line 52 of file cxToolImpl.cpp.
|
inlinevirtual |
Implements cx::Tool.
Definition at line 65 of file cxToolImpl.h.
|
virtual |
Implements cx::Tool.
Definition at line 97 of file cxToolImpl.cpp.
|
protectedvirtual |
if available for this type, set pos, ts<0 means use current time
Implements cx::Tool.
Reimplemented in cx::ToolUsingIGSTK, cx::PlaybackTool, and cx::ManualTool.
Definition at line 84 of file cxToolImpl.cpp.
|
virtual |
set a virtual offset extending from the tool tip.
Reimplemented from cx::Tool.
Reimplemented in cx::ToolUsingIGSTK, cx::ManualToolAdapter, and cx::PlaybackTool.
Definition at line 57 of file cxToolImpl.cpp.
|
protected |
the transform from the tool to the patient reference
Definition at line 70 of file cxToolImpl.h.
|
protected |
Definition at line 69 of file cxToolImpl.h.
|
protected |
Definition at line 71 of file cxToolImpl.h.