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);
QString getImageUid() const
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
virtual void printSelf(std::ostream &os, Indent indent)
boost::shared_ptr< class Image > ImagePtr
void setSliceProxy(SliceProxyInterfacePtr slicer)
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
vtkSmartPointer< class vtkImageActor > vtkImageActorPtr
boost::shared_ptr< class View > ViewPtr
Helper class for slicing an image given a SliceProxy and an image.
virtual void addRepActorsToViewRenderer(ViewPtr view)
boost::shared_ptr< class SliceRepSW > SliceRepSWPtr
bool hasImage(ImagePtr image) const
Formatting class for debug printing of the ssc library.
static SliceRepSWPtr New(const QString &uid="")
Default implementation of Rep.
vtkImageActorPtr getActor()
void setImage(ImagePtr image)
boost::shared_ptr< class SliceProxyInterface > SliceProxyInterfacePtr
Namespace for all CustusX production code.