CustusX
15.3.3-beta
An IGT application
|
#include <cxToolRep2D.h>
Public Member Functions | |
~ToolRep2D () | |
virtual QString | getType () const |
void | setSliceProxy (SliceProxyPtr slicer) |
void | setViewportData (const Transform3D &vpMs, const DoubleBoundingBox3D &vp) |
void | setUseOffset (bool on) |
void | setUseCrosshair (bool on) |
void | setUseToolLine (bool on) |
void | setUseOffsetText (bool on) |
void | setMergeOffsetAndToolLine (bool on) |
void | setTooltipPointColor (QColor c) |
void | setOffsetPointColor (QColor c) |
void | setTooltipLineColor (QColor c) |
void | setOffsetLineColor (QColor c) |
void | setOffsetStipplePattern (int pattern) |
Public Member Functions inherited from cx::RepImpl | |
RepImpl (const QString &uid="", const QString &name="") | |
virtual | ~RepImpl () |
virtual void | connectToView (ViewPtr theView) |
virtual void | disconnectFromView (ViewPtr theView) |
virtual bool | isConnectedToView (ViewPtr theView) const |
void | setName (QString name) |
QString | getName () const |
QString | getUid () const |
virtual void | printSelf (std::ostream &os, Indent indent) |
Public Member Functions inherited from cx::Rep | |
virtual | ~Rep () |
Static Public Member Functions | |
static ToolRep2DPtr | New (SpaceProviderPtr spaceProvider, const QString &uid="") |
Static Public Member Functions inherited from cx::RepImpl | |
template<class REP > | |
static boost::shared_ptr< REP > | wrap_new (REP *object, QString uid) |
Protected Member Functions | |
bool | showProbe () |
bool | showOffset () |
virtual void | addRepActorsToViewRenderer (ViewPtr view) |
virtual void | removeRepActorsFromViewRenderer (ViewPtr view) |
virtual void | onModifiedStartRender () |
Protected Member Functions inherited from cx::RepImpl | |
ViewPtr | getView () const |
vtkRendererPtr | getRenderer () |
RepPtr | getSelf () |
Additional Inherited Members | |
Protected Slots inherited from cx::RepImpl | |
void | setModified () |
Display a Tool in 2D.
Toolrep2D displays a Tool as a line, with points showing the toop tip and the offset point. If the Tool is a Probe, the probe sector can be shown as well.
Several optional visualizations are available.
Used by CustusX and Sonowand.
Definition at line 68 of file cxToolRep2D.h.
cx::ToolRep2D::~ToolRep2D | ( | ) |
Definition at line 75 of file cxToolRep2D.cpp.
|
protectedvirtual |
Implements cx::RepImpl.
Definition at line 168 of file cxToolRep2D.cpp.
|
virtual |
Implements cx::RepImpl.
Definition at line 84 of file cxToolRep2D.cpp.
|
static |
Definition at line 79 of file cxToolRep2D.cpp.
|
protectedvirtual |
Reimplemented from cx::RepImpl.
Definition at line 205 of file cxToolRep2D.cpp.
|
protectedvirtual |
Implements cx::RepImpl.
Definition at line 178 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setMergeOffsetAndToolLine | ( | bool | on | ) |
Set to merge the rep of the tool and the tool offset into one line, thus making the location of the physical tool tip invisible.
Definition at line 162 of file cxToolRep2D.cpp.
|
inline |
Definition at line 87 of file cxToolRep2D.h.
|
inline |
Definition at line 85 of file cxToolRep2D.h.
|
inline |
Definition at line 88 of file cxToolRep2D.h.
void cx::ToolRep2D::setSliceProxy | ( | SliceProxyPtr | slicer | ) |
Set a slice proxy representing the plane on which to render.
Definition at line 110 of file cxToolRep2D.cpp.
|
inline |
Definition at line 86 of file cxToolRep2D.h.
|
inline |
Definition at line 84 of file cxToolRep2D.h.
void cx::ToolRep2D::setUseCrosshair | ( | bool | on | ) |
Set display of a yellow crosshair centered on the cross pos.
Definition at line 136 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setUseOffset | ( | bool | on | ) |
Set display of the line from tool tip to the cross pos (this is the offset line).
Definition at line 128 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setUseOffsetText | ( | bool | on | ) |
Set display of the amount of offset, in the upper right corner.
Definition at line 152 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setUseToolLine | ( | bool | on | ) |
Set display of the line from back infinity to the tool tip.
Definition at line 144 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setViewportData | ( | const Transform3D & | vpMs, |
const DoubleBoundingBox3D & | vp | ||
) |
Set transform from slice space to viewport, and the viewport size. Some old code need this in order to render in viewport coordinates.
Definition at line 99 of file cxToolRep2D.cpp.
|
protected |
Definition at line 263 of file cxToolRep2D.cpp.
|
protected |
Definition at line 259 of file cxToolRep2D.cpp.