15 #include <vtkRenderer.h> 16 #include <vtkFloatArray.h> 17 #include <vtkPlaneSource.h> 18 #include <vtkPointData.h> 19 #include <vtkTriangleFilter.h> 20 #include <vtkStripper.h> 21 #include <vtkImageData.h> 22 #include <vtkLookupTable.h> 41 mProxy->setTargetSpaceToR();
56 return "Texture3DSlicerRep";
66 mProxy->setShaderPath(path);
69 void Texture3DSlicerRep::viewChanged()
73 if (this->
getView()->getZoomFactor() < 0)
75 mProxy->setViewportData(this->
getView()->get_vpMs(), this->
getView()->getViewport());
80 mProxy->setImages(images);
85 return mProxy->getImages();
90 mProxy->setSliceProxy(slicer);
95 view->getRenderer()->AddActor(mProxy->getActor());
96 connect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
102 view->getRenderer()->RemoveActor(mProxy->getActor());
103 disconnect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
113 mProxy->setViewportData(vpMs, vp);
123 mProxy->setRenderWindow(window);
boost::shared_ptr< class Texture3DSlicerRep > Texture3DSlicerRepPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void setRenderWindow(vtkRenderWindowPtr window)
virtual void printSelf(std::ostream &os, Indent indent)
void setSliceProxy(SliceProxyPtr slicer)
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
Texture3DSlicerRep(SharedOpenGLContextPtr context)
boost::shared_ptr< class View > ViewPtr
void setShaderPath(QString path)
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
boost::shared_ptr< class SharedOpenGLContext > SharedOpenGLContextPtr
std::vector< ImagePtr > getImages()
virtual QString getType() const
static Texture3DSlicerRepPtr New(SharedOpenGLContextPtr context, const QString &uid="")
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)
static bool isSupported(vtkRenderWindowPtr window)
void setViewportData(const Transform3D &vpMs, const DoubleBoundingBox3D &vp)
static Texture3DSlicerProxyPtr New(SharedOpenGLContextPtr context)
Namespace for all CustusX production code.