36 #include <vtkRenderer.h>
37 #include <vtkFloatArray.h>
38 #include <vtkPlaneSource.h>
39 #include <vtkPointData.h>
40 #include <vtkTriangleFilter.h>
41 #include <vtkStripper.h>
42 #include <vtkImageData.h>
43 #include <vtkPainterPolyDataMapper.h>
44 #include <vtkLookupTable.h>
61 mProxy->setTargetSpaceToR();
81 mProxy->setShaderPath(path);
84 void Texture3DSlicerRep::viewChanged()
88 if (this->
getView()->getZoomFactor() < 0)
90 mProxy->setViewportData(this->
getView()->get_vpMs(), this->
getView()->getViewport());
95 mProxy->setImages(images);
100 return mProxy->getImages();
105 mProxy->setSliceProxy(slicer);
110 view->getRenderer()->AddActor(mProxy->getActor());
111 connect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
117 view->getRenderer()->RemoveActor(mProxy->getActor());
118 disconnect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
133 mProxy->setViewportData(vpMs, vp);
boost::shared_ptr< class Texture3DSlicerRep > Texture3DSlicerRepPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual void printSelf(std::ostream &os, Indent indent)
void setSliceProxy(SliceProxyPtr slicer)
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
static Texture3DSlicerProxyPtr New()
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
static Texture3DSlicerRepPtr New(const QString &uid="")
boost::shared_ptr< class View > ViewPtr
void setShaderPath(QString path)
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
std::vector< ImagePtr > getImages()
Formatting class for debug printing of the ssc library.
Default implementation of Rep.
void setImages(std::vector< ImagePtr > images)
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
virtual void addRepActorsToViewRenderer(ViewPtr view)
virtual ~Texture3DSlicerRep()
static bool isSupported(vtkRenderWindowPtr window)
void setViewportData(const Transform3D &vpMs, const DoubleBoundingBox3D &vp)
static bool isSupported(vtkRenderWindowPtr window)