Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::GeometricRep2D Class Reference

Display one Mesh in 2D. More...

#include <cxGeometricRep2D.h>

Inheritance diagram for cx::GeometricRep2D:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~GeometricRep2D ()
 
virtual QString getType () const
 gives this reps type More...
 
void setMesh (MeshPtr mesh)
 sets this reps mesh More...
 
MeshPtr getMesh ()
 gives this reps mesh More...
 
bool hasMesh (MeshPtr mesh) const
 checks if this rep has the give mesh More...
 
void setSliceProxy (SliceProxyPtr slicer)
 
- 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 GeometricRep2DPtr New (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

 GeometricRep2D ()
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
void setOpacity ()
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

vtkPolyDataMapperPtr mMapper
 
vtkPropertyPtr mProperty
 
vtkActorPtr mActor
 
MeshPtr mMesh
 
SliceProxyPtr mSlicer
 

Additional Inherited Members

- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Detailed Description

Display one Mesh in 2D.

Use this to render geometric polydata in a 2D scene as an intersection between the full polydata and the slice plane.

Used by CustusX.

Definition at line 39 of file cxGeometricRep2D.h.

Constructor & Destructor Documentation

cx::GeometricRep2D::~GeometricRep2D ( )
virtual

Definition at line 47 of file cxGeometricRep2D.cpp.

cx::GeometricRep2D::GeometricRep2D ( )
protected

Definition at line 37 of file cxGeometricRep2D.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 56 of file cxGeometricRep2D.cpp.

MeshPtr cx::GeometricRep2D::getMesh ( )

gives this reps mesh

Definition at line 85 of file cxGeometricRep2D.cpp.

virtual QString cx::GeometricRep2D::getType ( ) const
inlinevirtual

gives this reps type

Implements cx::RepImpl.

Definition at line 47 of file cxGeometricRep2D.h.

bool cx::GeometricRep2D::hasMesh ( MeshPtr  mesh) const

checks if this rep has the give mesh

Definition at line 89 of file cxGeometricRep2D.cpp.

GeometricRep2DPtr cx::GeometricRep2D::New ( const QString &  uid = "")
static

Definition at line 51 of file cxGeometricRep2D.cpp.

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

Implements cx::RepImpl.

Definition at line 61 of file cxGeometricRep2D.cpp.

void cx::GeometricRep2D::setMesh ( MeshPtr  mesh)

sets this reps mesh

Definition at line 66 of file cxGeometricRep2D.cpp.

void cx::GeometricRep2D::setOpacity ( )
protected

Definition at line 125 of file cxGeometricRep2D.cpp.

void cx::GeometricRep2D::setSliceProxy ( SliceProxyPtr  slicer)

Definition at line 94 of file cxGeometricRep2D.cpp.

Member Data Documentation

vtkActorPtr cx::GeometricRep2D::mActor
protected

Definition at line 61 of file cxGeometricRep2D.h.

vtkPolyDataMapperPtr cx::GeometricRep2D::mMapper
protected

Definition at line 59 of file cxGeometricRep2D.h.

MeshPtr cx::GeometricRep2D::mMesh
protected

Definition at line 63 of file cxGeometricRep2D.h.

vtkPropertyPtr cx::GeometricRep2D::mProperty
protected

Definition at line 60 of file cxGeometricRep2D.h.

SliceProxyPtr cx::GeometricRep2D::mSlicer
protected

Definition at line 64 of file cxGeometricRep2D.h.


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