Fraxinus  22.04-rc3
An IGT application

Display a Tool in 2D. More...

#include <cxToolRep2D.h>

Inheritance diagram for cx::ToolRep2D:
cx::RepImpl cx::Rep

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 ()
 

Detailed Description

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.

sscArchitecture_tool.png
ToolRep2D, ToolRep3D and surrounding classes.

Used by CustusX and Sonowand.

Definition at line 46 of file cxToolRep2D.h.

Constructor & Destructor Documentation

cx::ToolRep2D::~ToolRep2D ( )

Definition at line 62 of file cxToolRep2D.cpp.

Member Function Documentation

void cx::ToolRep2D::addRepActorsToViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 156 of file cxToolRep2D.cpp.

QString cx::ToolRep2D::getType ( ) const
virtual
Returns
a string identifying the Rep type. Each suclass implement this with its own class name. Subclasses from other namespaces (such as cx and snw) should add that namespace as a prefix.

Implements cx::RepImpl.

Definition at line 71 of file cxToolRep2D.cpp.

ToolRep2DPtr cx::ToolRep2D::New ( SpaceProviderPtr  spaceProvider,
const QString &  uid = "" 
)
static

Definition at line 66 of file cxToolRep2D.cpp.

void cx::ToolRep2D::onModifiedStartRender ( )
protectedvirtual

Reimplemented from cx::RepImpl.

Definition at line 193 of file cxToolRep2D.cpp.

void cx::ToolRep2D::removeRepActorsFromViewRenderer ( ViewPtr  view)
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.

bool cx::ToolRep2D::showOffset ( )
protected

Definition at line 251 of file cxToolRep2D.cpp.

bool cx::ToolRep2D::showProbe ( )
protected

Definition at line 247 of file cxToolRep2D.cpp.


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