17 #ifndef mitkBoundingShapeVtkMapper2D_h
18 #define mitkBoundingShapeVtkMapper2D_h
24 #include <vtkActor2D.h>
25 #include <vtkCutter.h>
27 #include <vtkPolyDataMapper2D.h>
28 #include <vtkPropAssembly.h>
29 #include <vtkSmartPointer.h>
30 #include <vtkSphereSource.h>
44 vtkSmartPointer<vtkActor> m_Actor;
45 vtkSmartPointer<vtkActor2D> m_HandleActor;
46 vtkSmartPointer<vtkActor2D> m_SelectedHandleActor;
47 vtkSmartPointer<vtkPolyDataMapper> m_Mapper;
48 vtkSmartPointer<vtkPolyDataMapper2D> m_HandleMapper;
49 vtkSmartPointer<vtkPolyDataMapper2D> m_SelectedHandleMapper;
50 vtkSmartPointer<vtkCutter> m_Cutter;
51 vtkSmartPointer<vtkPlane> m_CuttingPlane;
52 unsigned int m_LastSliceNumber;
53 std::vector<vtkSmartPointer<vtkSphereSource>> m_Handles;
54 vtkSmartPointer<vtkPropAssembly> m_PropAssembly;
58 LocalStorage(
const LocalStorage &);
59 LocalStorage &operator=(
const LocalStorage &);
63 static void SetDefaultProperties(
DataNode *node,
BaseRenderer *renderer =
nullptr,
bool overwrite =
false);
66 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
68 void ApplyColorAndOpacityProperties(
BaseRenderer *, vtkActor *)
override;
78 void GenerateDataForRenderer(
BaseRenderer *renderer)
override;
Base class for mapper specific rendering ressources.
#define MITKBOUNDINGSHAPE_EXPORT
Organizes the rendering process.
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Base class of all mappers, Vtk as well as OpenGL mappers.
#define mitkClassMacro(className, SuperClassName)
Class for nodes of the DataTree.