NorMIT-nav  22.09
An IGT application
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...
 
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 ()
 
virtual vtkVolumePtr getVtkVolume ()=0
 get the images vtkVolume More...
 
- 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 ()
 
virtual void onEveryRender ()
 

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 69 of file cxVolumetricRep.h.

Constructor & Destructor Documentation

◆ ~VolumetricRep()

cx::VolumetricRep::~VolumetricRep ( )
virtual

Definition at line 55 of file cxVolumetricRep.cpp.

◆ VolumetricRep()

cx::VolumetricRep::VolumetricRep ( )
protected

Definition at line 45 of file cxVolumetricRep.cpp.

Member Function Documentation

◆ addRepActorsToViewRenderer()

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

Implements cx::RepImpl.

Definition at line 83 of file cxVolumetricRep.cpp.

◆ getImage()

ImagePtr cx::VolumetricRep::getImage ( )
virtual

get the reps image

Implements cx::VolumetricBaseRep.

Definition at line 93 of file cxVolumetricRep.cpp.

◆ getType()

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 76 of file cxVolumetricRep.h.

◆ hasImage()

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

check if the reps has the image

Implements cx::VolumetricBaseRep.

Definition at line 126 of file cxVolumetricRep.cpp.

◆ New()

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

Definition at line 75 of file cxVolumetricRep.h.

◆ removeRepActorsFromViewRenderer()

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

Implements cx::RepImpl.

Definition at line 88 of file cxVolumetricRep.cpp.

◆ setImage()

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

set the reps image

Implements cx::VolumetricBaseRep.

Definition at line 98 of file cxVolumetricRep.cpp.

◆ setMaxVolumeSize()

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

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

Implements cx::VolumetricBaseRep.

Definition at line 160 of file cxVolumetricRep.cpp.

◆ setUseGPUVolumeRayCastMapper()

void cx::VolumetricRep::setUseGPUVolumeRayCastMapper ( )

Definition at line 58 of file cxVolumetricRep.cpp.

◆ setUseVolumeTextureMapper()

void cx::VolumetricRep::setUseVolumeTextureMapper ( )

Definition at line 69 of file cxVolumetricRep.cpp.

◆ transformChangedSlot

void cx::VolumetricRep::transformChangedSlot ( )
protectedslot

called when transform is changed reset it in the prop.

Definition at line 142 of file cxVolumetricRep.cpp.

◆ updateVtkImageDataSlot

void cx::VolumetricRep::updateVtkImageDataSlot ( )
protectedslot

Definition at line 151 of file cxVolumetricRep.cpp.

◆ vtkImageDataChangedSlot

void cx::VolumetricRep::vtkImageDataChangedSlot ( )
protectedslot

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

Definition at line 134 of file cxVolumetricRep.cpp.

Member Data Documentation

◆ mImage

ImagePtr cx::VolumetricRep::mImage
protected

Definition at line 95 of file cxVolumetricRep.h.

◆ mMapper

vtkVolumeMapperPtr cx::VolumetricRep::mMapper
protected

Definition at line 91 of file cxVolumetricRep.h.

◆ mMaxVoxels

long cx::VolumetricRep::mMaxVoxels
protected

always resample volume below this size.

Definition at line 93 of file cxVolumetricRep.h.

◆ mMonitor

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

helper object for visualizing clipping/cropping

Definition at line 96 of file cxVolumetricRep.h.

◆ mVolume

vtkVolumePtr cx::VolumetricRep::mVolume
protected

Definition at line 92 of file cxVolumetricRep.h.

◆ mVolumeProperty

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

Definition at line 90 of file cxVolumetricRep.h.


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