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 <vtkLookupTable.h> 62 mProxy->setTargetSpaceToR();
77 return "Texture3DSlicerRep";
87 mProxy->setShaderPath(path);
90 void Texture3DSlicerRep::viewChanged()
94 if (this->
getView()->getZoomFactor() < 0)
96 mProxy->setViewportData(this->
getView()->get_vpMs(), this->
getView()->getViewport());
101 mProxy->setImages(images);
106 return mProxy->getImages();
111 mProxy->setSliceProxy(slicer);
116 view->getRenderer()->AddActor(mProxy->getActor());
117 connect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
123 view->getRenderer()->RemoveActor(mProxy->getActor());
124 disconnect(view.get(), SIGNAL(resized(QSize)),
this, SLOT(viewChanged()));
134 mProxy->setViewportData(vpMs, vp);
144 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.