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

Display a volume in 3D. More...

#include <cxVolumetricRep.h>

Inheritance diagram for cx::VolumetricRep:
cx::VolumetricBaseRep cx::RepImpl cx::Rep cx::StreamRep3D

Public Member Functions

virtual ~VolumetricRep ()
 
virtual QString getType () const
 
virtual void setImage (ImagePtr image)
 set the reps image More...
 
virtual ImagePtr getImage ()
 get the reps image More...
 
virtual bool hasImage (ImagePtr image) const
 check if the reps has the image More...
 
virtual vtkVolumePtr getVtkVolume ()
 get the images vtkVolume More...
 
void setMaxVolumeSize (long maxVoxels)
 set max volume size for rendering. Must be set before setImage() More...
 
void setUseGPUVolumeRayCastMapper ()
 
void setUseVolumeTextureMapper ()
 
- Public Member Functions inherited from cx::VolumetricBaseRep
virtual ~VolumetricBaseRep ()
 
- 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 VolumetricRepPtr New (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 Slots

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

Protected Member Functions

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

Protected Attributes

cx::VolumePropertyPtr mVolumeProperty
 
vtkVolumeMapperPtr mMapper
 
vtkVolumePtr mVolume
 
long mMaxVoxels
 always resample volume below this size. More...
 
ImagePtr mImage
 
cx::ImageMapperMonitorPtr mMonitor
 helper object for visualizing clipping/cropping More...
 

Detailed Description

Display a volume in 3D.

Use this to render volumetric image data in a 3D scene. Both texture rendering and GPU raycasting are available.

Used by Sonowand. Used by CustusX.

Definition at line 90 of file cxVolumetricRep.h.

Constructor & Destructor Documentation

cx::VolumetricRep::~VolumetricRep ( )
virtual

Definition at line 80 of file cxVolumetricRep.cpp.

cx::VolumetricRep::VolumetricRep ( )
protected

Definition at line 70 of file cxVolumetricRep.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 108 of file cxVolumetricRep.cpp.

ImagePtr cx::VolumetricRep::getImage ( )
virtual

get the reps image

Implements cx::VolumetricBaseRep.

Definition at line 118 of file cxVolumetricRep.cpp.

virtual QString cx::VolumetricRep::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.

Reimplemented in cx::StreamRep3D.

Definition at line 97 of file cxVolumetricRep.h.

virtual vtkVolumePtr cx::VolumetricRep::getVtkVolume ( )
inlinevirtual

get the images vtkVolume

Implements cx::VolumetricBaseRep.

Definition at line 101 of file cxVolumetricRep.h.

bool cx::VolumetricRep::hasImage ( ImagePtr  image) const
virtual

check if the reps has the image

Implements cx::VolumetricBaseRep.

Definition at line 151 of file cxVolumetricRep.cpp.

static VolumetricRepPtr cx::VolumetricRep::New ( QString  uid = "")
inlinestatic

Definition at line 96 of file cxVolumetricRep.h.

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

Implements cx::RepImpl.

Definition at line 113 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::setImage ( ImagePtr  image)
virtual

set the reps image

Implements cx::VolumetricBaseRep.

Definition at line 123 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::setMaxVolumeSize ( long  maxVoxels)
virtual

set max volume size for rendering. Must be set before setImage()

Implements cx::VolumetricBaseRep.

Definition at line 185 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::setUseGPUVolumeRayCastMapper ( )

Definition at line 83 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::setUseVolumeTextureMapper ( )

Definition at line 94 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::transformChangedSlot ( )
protectedslot

called when transform is changed reset it in the prop.

Definition at line 167 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::updateVtkImageDataSlot ( )
protectedslot

Definition at line 176 of file cxVolumetricRep.cpp.

void cx::VolumetricRep::vtkImageDataChangedSlot ( )
protectedslot

called when the image is changed internally. re-read the lut and vtkimagedata.

Definition at line 159 of file cxVolumetricRep.cpp.

Member Data Documentation

ImagePtr cx::VolumetricRep::mImage
protected

Definition at line 116 of file cxVolumetricRep.h.

vtkVolumeMapperPtr cx::VolumetricRep::mMapper
protected

Definition at line 112 of file cxVolumetricRep.h.

long cx::VolumetricRep::mMaxVoxels
protected

always resample volume below this size.

Definition at line 114 of file cxVolumetricRep.h.

cx::ImageMapperMonitorPtr cx::VolumetricRep::mMonitor
protected

helper object for visualizing clipping/cropping

Definition at line 117 of file cxVolumetricRep.h.

vtkVolumePtr cx::VolumetricRep::mVolume
protected

Definition at line 113 of file cxVolumetricRep.h.

cx::VolumePropertyPtr cx::VolumetricRep::mVolumeProperty
protected

Definition at line 111 of file cxVolumetricRep.h.


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