Fraxinus
2023.01.05-dev+develop.0da12
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 | setUseCrosshair (bool on) |
void | setCrosshairColor (const QColor &color) |
void | setTooltipLineColor (const QColor &color) |
void | setTooltipPointColor (const QColor &color) |
void | setToolOffsetPointColor (const QColor &color) |
void | setToolOffsetLineColor (const QColor &color) |
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 () |
virtual void | onEveryRender () |
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 46 of file cxToolRep2D.h.
cx::ToolRep2D::~ToolRep2D | ( | ) |
Definition at line 62 of file cxToolRep2D.cpp.
|
protectedvirtual |
Implements cx::RepImpl.
Definition at line 156 of file cxToolRep2D.cpp.
|
virtual |
Implements cx::RepImpl.
Definition at line 71 of file cxToolRep2D.cpp.
|
static |
Definition at line 66 of file cxToolRep2D.cpp.
|
protectedvirtual |
Reimplemented from cx::RepImpl.
Definition at line 193 of file cxToolRep2D.cpp.
|
protectedvirtual |
Implements cx::RepImpl.
Definition at line 166 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setCrosshairColor | ( | const QColor & | color | ) |
Definition at line 126 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setSliceProxy | ( | SliceProxyPtr | slicer | ) |
Set a slice proxy representing the plane on which to render.
Definition at line 100 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setToolOffsetLineColor | ( | const QColor & | color | ) |
Definition at line 150 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setToolOffsetPointColor | ( | const QColor & | color | ) |
Definition at line 144 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setTooltipLineColor | ( | const QColor & | color | ) |
Definition at line 132 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setTooltipPointColor | ( | const QColor & | color | ) |
Definition at line 138 of file cxToolRep2D.cpp.
void cx::ToolRep2D::setUseCrosshair | ( | bool | on | ) |
Set display of a yellow crosshair centered on the cross pos.
Definition at line 118 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 86 of file cxToolRep2D.cpp.
|
protected |
Definition at line 251 of file cxToolRep2D.cpp.
|
protected |
Definition at line 247 of file cxToolRep2D.cpp.