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

Display several slices through volumes in 3D. More...

#include <cxSlices3DRep.h>

Inheritance diagram for cx::Slices3DRep:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~Slices3DRep ()
 
virtual QString getType () const
 
void setShaderPath (QString path)
 
void setImages (std::vector< ImagePtr > images)
 
void addPlane (PLANE_TYPE plane, PatientModelServicePtr dataManager)
 
void setTool (ToolPtr tool)
 
- 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 Slices3DRepPtr New (SharedOpenGLContextPtr context, 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

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

Additional Inherited Members

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

Detailed Description

Display several slices through volumes in 3D.

Use this as an alternative to full volume rendering. Define a set of planes and an ordered set of images. The images are sliced in a way similar to that in Texture3DSlicerRep, but they are displayed in the 3D View instead of in 2D.

Used by CustusX.

See also
Texture3DSlicerProxy

Definition at line 47 of file cxSlices3DRep.h.

Constructor & Destructor Documentation

cx::Slices3DRep::~Slices3DRep ( )
virtual

Definition at line 43 of file cxSlices3DRep.cpp.

cx::Slices3DRep::Slices3DRep ( SharedOpenGLContextPtr  context)
protected

Definition at line 37 of file cxSlices3DRep.cpp.

Member Function Documentation

void cx::Slices3DRep::addPlane ( PLANE_TYPE  plane,
PatientModelServicePtr  dataManager 
)

Definition at line 72 of file cxSlices3DRep.cpp.

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

Implements cx::RepImpl.

Definition at line 91 of file cxSlices3DRep.cpp.

virtual QString cx::Slices3DRep::getType ( ) const
inlinevirtual
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 53 of file cxSlices3DRep.h.

Slices3DRepPtr cx::Slices3DRep::New ( SharedOpenGLContextPtr  context,
const QString &  uid 
)
static

Definition at line 47 of file cxSlices3DRep.cpp.

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

Implements cx::RepImpl.

Definition at line 97 of file cxSlices3DRep.cpp.

void cx::Slices3DRep::setImages ( std::vector< ImagePtr images)

Definition at line 58 of file cxSlices3DRep.cpp.

void cx::Slices3DRep::setShaderPath ( QString  path)

Definition at line 52 of file cxSlices3DRep.cpp.

void cx::Slices3DRep::setTool ( ToolPtr  tool)

Definition at line 85 of file cxSlices3DRep.cpp.


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