36 #include <vtkImageActor.h>
37 #include <vtkRenderer.h>
38 #include <vtkImageData.h>
43 #include "vtkImageMapper3D.h"
44 #include "vtkImageAlgorithm.h"
53 mImageActor = vtkImageActorPtr::New();
54 mImageActor->GetMapper()->SetInputConnection(mImageSlicer->getOutputPort()->GetOutputPort());
69 return mImageSlicer->getImage();
84 mImageSlicer->setImage(image);
89 return mImageSlicer->getImage() ? mImageSlicer->getImage()->getUid() :
"";
94 mImageSlicer->setSliceProxy(slicer);
99 view->getRenderer()->AddActor(mImageActor);
104 view->getRenderer()->RemoveActor(mImageActor);
109 return (mImageSlicer->getImage() != NULL);
114 mImageSlicer->update();
119 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