CustusX  15.8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ToolRep3D Class Reference

Display a Tool in 3D. More...

#include <cxToolRep3D.h>

Inheritance diagram for cx::ToolRep3D:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~ToolRep3D ()
 
virtual QString getType () const
 
virtual void setTool (ToolPtr tool)
 
virtual bool hasTool (ToolPtr tool) const
 
virtual ToolPtr getTool ()
 
ToolTracerPtr getTracer ()
 
void setSphereRadius (double radius)
 
void setTooltipPointColor (QColor c)
 
void setOffsetPointColor (QColor c)
 
void setOffsetLineColor (QColor c)
 
void setOffsetStipplePattern (int pattern)
 
void setStayHiddenAfterVisible (bool val)
 
void setStayVisibleAfterHide (bool val)
 if true, tool is still rendered as visible after visibility status is hidden. More...
 
void setOffsetPointVisibleAtZeroOffset (bool val)
 if true the sphere is visible even when the offset is zero More...
 
void setSphereRadiusInNormalizedViewport (bool on)
 
- 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 ToolRep3DPtr 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

 ToolRep3D (SpaceProviderPtr spaceProvider)
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
bool showProbe ()
 
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 ()
 

Detailed Description

Display a Tool in 3D.

ToolRep3D displays a Tool using the supplied graphical representation from the Tool interface, with points showing the tooltip and offset point. If the Tool is a Probe, the probe sector and the prope video 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 72 of file cxToolRep3D.h.

Constructor & Destructor Documentation

cx::ToolRep3D::~ToolRep3D ( )
virtual

Definition at line 88 of file cxToolRep3D.cpp.

cx::ToolRep3D::ToolRep3D ( SpaceProviderPtr  spaceProvider)
protected

Definition at line 57 of file cxToolRep3D.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 225 of file cxToolRep3D.cpp.

ToolPtr cx::ToolRep3D::getTool ( )
virtual

Definition at line 106 of file cxToolRep3D.cpp.

ToolTracerPtr cx::ToolRep3D::getTracer ( )

Definition at line 91 of file cxToolRep3D.cpp.

QString cx::ToolRep3D::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 101 of file cxToolRep3D.cpp.

bool cx::ToolRep3D::hasTool ( ToolPtr  tool) const
virtual

Definition at line 173 of file cxToolRep3D.cpp.

ToolRep3DPtr cx::ToolRep3D::New ( SpaceProviderPtr  spaceProvider,
const QString &  uid = "" 
)
static

Definition at line 96 of file cxToolRep3D.cpp.

void cx::ToolRep3D::onModifiedStartRender ( )
protectedvirtual

Reimplemented from cx::RepImpl.

Definition at line 293 of file cxToolRep3D.cpp.

void cx::ToolRep3D::removeRepActorsFromViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 255 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setOffsetLineColor ( QColor  c)

Definition at line 197 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setOffsetPointColor ( QColor  c)

Definition at line 192 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setOffsetPointVisibleAtZeroOffset ( bool  val)

if true the sphere is visible even when the offset is zero

Definition at line 422 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setOffsetStipplePattern ( int  pattern)

Definition at line 202 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setSphereRadius ( double  radius)

Definition at line 178 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setSphereRadiusInNormalizedViewport ( bool  on)

Definition at line 207 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setStayHiddenAfterVisible ( bool  val)

Definition at line 406 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setStayVisibleAfterHide ( bool  val)

if true, tool is still rendered as visible after visibility status is hidden.

If true, tool is still rendered as visible after visibility status is hidden. Nice for viewing the last known position of a tool.

Definition at line 417 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setTool ( ToolPtr  tool)
virtual

Definition at line 141 of file cxToolRep3D.cpp.

void cx::ToolRep3D::setTooltipPointColor ( QColor  c)

Definition at line 187 of file cxToolRep3D.cpp.

bool cx::ToolRep3D::showProbe ( )
protected

Definition at line 432 of file cxToolRep3D.cpp.


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