Fraxinus  22.04-rc5
An IGT application

Display an image slice in 2D. More...

#include <cxSlicerRepSW.h>

Inheritance diagram for cx::SliceRepSW:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~SliceRepSW ()
 
virtual QString getType () const
 
bool hasImage (ImagePtr image) const
 
void setImage (ImagePtr image)
 
ImagePtr getImage ()
 
vtkImageActorPtr getActor ()
 
void setSliceProxy (SliceProxyInterfacePtr slicer)
 
QString getImageUid () const
 
void update ()
 
virtual void printSelf (std::ostream &os, Indent indent)
 
- 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
 
- Public Member Functions inherited from cx::Rep
virtual ~Rep ()
 

Static Public Member Functions

static SliceRepSWPtr 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

 SliceRepSW ()
 
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 an image slice in 2D.

The image is sliced using a SliceProxy. Only a single volume can be used.

Used by CustusX.

See also
SlicedImageProxy SliceProxy

Definition at line 40 of file cxSlicerRepSW.h.

Constructor & Destructor Documentation

cx::SliceRepSW::~SliceRepSW ( )
virtual

Definition at line 37 of file cxSlicerRepSW.cpp.

cx::SliceRepSW::SliceRepSW ( )
protected

Definition at line 28 of file cxSlicerRepSW.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 76 of file cxSlicerRepSW.cpp.

vtkImageActorPtr cx::SliceRepSW::getActor ( )

Definition at line 51 of file cxSlicerRepSW.cpp.

ImagePtr cx::SliceRepSW::getImage ( )

Definition at line 46 of file cxSlicerRepSW.cpp.

QString cx::SliceRepSW::getImageUid ( ) const

Definition at line 66 of file cxSlicerRepSW.cpp.

virtual QString cx::SliceRepSW::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 46 of file cxSlicerRepSW.h.

bool cx::SliceRepSW::hasImage ( ImagePtr  image) const

Definition at line 86 of file cxSlicerRepSW.cpp.

SliceRepSWPtr cx::SliceRepSW::New ( const QString &  uid = "")
static

Definition at line 41 of file cxSlicerRepSW.cpp.

void cx::SliceRepSW::printSelf ( std::ostream &  os,
Indent  indent 
)
virtual

Reimplemented from cx::RepImpl.

Definition at line 96 of file cxSlicerRepSW.cpp.

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

Implements cx::RepImpl.

Definition at line 81 of file cxSlicerRepSW.cpp.

void cx::SliceRepSW::setImage ( ImagePtr  image)

This method set the image, that has all the information in it self. color, brigthness, contrast, etc...

Definition at line 59 of file cxSlicerRepSW.cpp.

void cx::SliceRepSW::setSliceProxy ( SliceProxyInterfacePtr  slicer)

Definition at line 71 of file cxSlicerRepSW.cpp.

void cx::SliceRepSW::update ( )

Definition at line 91 of file cxSlicerRepSW.cpp.


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