|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
15 #include <vtkImageActor.h>
16 #include <vtkRenderer.h>
17 #include <vtkImageData.h>
22 #include "vtkImageMapper3D.h"
23 #include "vtkImageAlgorithm.h"
32 mImageActor = vtkImageActorPtr::New();
33 mImageActor->GetMapper()->SetInputConnection(mImageSlicer->getOutputPort()->GetOutputPort());
48 return mImageSlicer->getImage();
63 mImageSlicer->setImage(image);
68 return mImageSlicer->getImage() ? mImageSlicer->getImage()->getUid() :
"";
73 mImageSlicer->setSliceProxy(slicer);
78 view->getRenderer()->AddActor(mImageActor);
83 view->getRenderer()->RemoveActor(mImageActor);
88 return (mImageSlicer->getImage() != NULL);
93 mImageSlicer->update();
98 mImageSlicer->printSelf(os, indent);
vtkSmartPointer< class vtkImageActor > vtkImageActorPtr
Namespace for all CustusX production code.
bool hasImage(ImagePtr image) const
QString getImageUid() const
void setImage(ImagePtr image)
virtual void printSelf(std::ostream &os, Indent indent)
Helper class for slicing an image given a SliceProxy and an image.
virtual void addRepActorsToViewRenderer(ViewPtr view)
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
void setSliceProxy(SliceProxyInterfacePtr slicer)
boost::shared_ptr< class SliceRepSW > SliceRepSWPtr
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class SliceProxyInterface > SliceProxyInterfacePtr
boost::shared_ptr< class View > ViewPtr
Default implementation of Rep.
Formatting class for debug printing of the ssc library.
vtkImageActorPtr getActor()
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
static SliceRepSWPtr New(const QString &uid="")