35 #include <vtkRenderer.h> 36 #include <vtkFloatArray.h> 37 #include <vtkPlaneSource.h> 38 #include <vtkPointData.h> 39 #include <vtkTriangleFilter.h> 40 #include <vtkStripper.h> 41 #include <vtkImageData.h> 42 #include <vtkLookupTable.h> 60 mSharedOpenGLContext(context)
75 for (
unsigned i=0; i<mProxy.size(); ++i)
83 reportWarning(
"Slices3DRep::setImages: No input images (in ViewGroup)");
86 for (
unsigned i=0; i<mProxy.size(); ++i)
88 mProxy[i]->setImages(images);
89 mProxy[i]->getSliceProxy()->setDefaultCenter(images[0]->get_rMd().coord(images[0]->boundingBox().center()));
96 sliceProxy->initializeFromPlane(plane,
false,
true, 150, 0.25);
97 sliceProxy->setAlwaysUseDefaultCenter(
true);
100 current->setSliceProxy(sliceProxy);
101 current->setTargetSpaceToR();
103 mProxy.push_back(current);
108 for (
unsigned i=0; i<mProxy.size(); ++i)
109 mProxy[i]->getSliceProxy()->setTool(tool);
114 for (
unsigned i=0; i<mProxy.size(); ++i)
115 view->getRenderer()->AddActor(mProxy[i]->getActor());
120 for (
unsigned i=0; i<mProxy.size(); ++i)
121 view->getRenderer()->RemoveActor(mProxy[i]->getActor());
void setShaderPath(QString path)
static SliceProxyPtr create(PatientModelServicePtr dataManager)
Slices3DRep(SharedOpenGLContextPtr context)
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
boost::shared_ptr< class View > ViewPtr
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
boost::shared_ptr< class SharedOpenGLContext > SharedOpenGLContextPtr
boost::shared_ptr< class Slices3DRep > Slices3DRepPtr
void reportWarning(QString msg)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Default implementation of Rep.
boost::shared_ptr< class Texture3DSlicerProxy > Texture3DSlicerProxyPtr
static Slices3DRepPtr New(SharedOpenGLContextPtr context, const QString &uid)
void setImages(std::vector< ImagePtr > images)
virtual void addRepActorsToViewRenderer(ViewPtr view)
void setTool(ToolPtr tool)
void addPlane(PLANE_TYPE plane, PatientModelServicePtr dataManager)
static Texture3DSlicerProxyPtr New(SharedOpenGLContextPtr context)
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr