Fraxinus  16.5.0-fx-rc6
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ToolRep2D Class Reference

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

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 67 of file cxToolRep2D.h.

Constructor & Destructor Documentation

cx::ToolRep2D::~ToolRep2D ( )

Definition at line 75 of file cxToolRep2D.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 168 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 84 of file cxToolRep2D.cpp.

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

Definition at line 79 of file cxToolRep2D.cpp.

void cx::ToolRep2D::onModifiedStartRender ( )
protectedvirtual

Reimplemented from cx::RepImpl.

Definition at line 205 of file cxToolRep2D.cpp.

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

void cx::ToolRep2D::setOffsetLineColor ( QColor  c)
inline

Definition at line 86 of file cxToolRep2D.h.

void cx::ToolRep2D::setOffsetPointColor ( QColor  c)
inline

Definition at line 84 of file cxToolRep2D.h.

void cx::ToolRep2D::setOffsetStipplePattern ( int  pattern)
inline

Definition at line 87 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.

void cx::ToolRep2D::setTooltipLineColor ( QColor  c)
inline

Definition at line 85 of file cxToolRep2D.h.

void cx::ToolRep2D::setTooltipPointColor ( QColor  c)
inline

Definition at line 83 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.

bool cx::ToolRep2D::showOffset ( )
protected

Definition at line 263 of file cxToolRep2D.cpp.

bool cx::ToolRep2D::showProbe ( )
protected

Definition at line 259 of file cxToolRep2D.cpp.


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