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

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 ()
 

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 61 of file cxSlicerRepSW.h.

Constructor & Destructor Documentation

cx::SliceRepSW::~SliceRepSW ( )
virtual

Definition at line 58 of file cxSlicerRepSW.cpp.

cx::SliceRepSW::SliceRepSW ( )
protected

Definition at line 49 of file cxSlicerRepSW.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 97 of file cxSlicerRepSW.cpp.

vtkImageActorPtr cx::SliceRepSW::getActor ( )

Definition at line 72 of file cxSlicerRepSW.cpp.

ImagePtr cx::SliceRepSW::getImage ( )

Definition at line 67 of file cxSlicerRepSW.cpp.

QString cx::SliceRepSW::getImageUid ( ) const

Definition at line 87 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 67 of file cxSlicerRepSW.h.

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

Definition at line 107 of file cxSlicerRepSW.cpp.

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

Definition at line 62 of file cxSlicerRepSW.cpp.

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

Reimplemented from cx::RepImpl.

Definition at line 117 of file cxSlicerRepSW.cpp.

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

Implements cx::RepImpl.

Definition at line 102 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 80 of file cxSlicerRepSW.cpp.

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

Definition at line 92 of file cxSlicerRepSW.cpp.

void cx::SliceRepSW::update ( )

Definition at line 112 of file cxSlicerRepSW.cpp.


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