14 #include <vtkRenderer.h>
15 #include <vtkFloatArray.h>
16 #include <vtkPlaneSource.h>
17 #include <vtkPointData.h>
18 #include <vtkTriangleFilter.h>
19 #include <vtkStripper.h>
20 #include <vtkImageData.h>
21 #include <vtkLookupTable.h>
39 mSharedOpenGLContext(context)
54 for (
unsigned i=0; i<mProxy.size(); ++i)
62 reportWarning(
"Slices3DRep::setImages: No input images (in ViewGroup)");
65 for (
unsigned i=0; i<mProxy.size(); ++i)
67 mProxy[i]->setImages(images);
68 mProxy[i]->getSliceProxy()->setDefaultCenter(images[0]->get_rMd().coord(images[0]->boundingBox().center()));
75 sliceProxy->initializeFromPlane(plane,
false,
true, 150, 0.25);
76 sliceProxy->setAlwaysUseDefaultCenter(
true);
79 current->setSliceProxy(sliceProxy);
80 current->setTargetSpaceToR();
82 mProxy.push_back(current);
87 for (
unsigned i=0; i<mProxy.size(); ++i)
88 mProxy[i]->getSliceProxy()->setTool(tool);
93 for (
unsigned i=0; i<mProxy.size(); ++i)
94 view->getRenderer()->AddActor(mProxy[i]->getActor());
99 for (
unsigned i=0; i<mProxy.size(); ++i)
100 view->getRenderer()->RemoveActor(mProxy[i]->getActor());