13 #ifndef mitkBoundingShapeVtkMapper2D_h
14 #define mitkBoundingShapeVtkMapper2D_h
20 #include <vtkActor2D.h>
21 #include <vtkCutter.h>
23 #include <vtkPolyDataMapper2D.h>
24 #include <vtkPropAssembly.h>
25 #include <vtkSmartPointer.h>
26 #include <vtkSphereSource.h>
36 ~LocalStorage()
override;
40 vtkSmartPointer<vtkActor> m_Actor;
41 vtkSmartPointer<vtkActor2D> m_HandleActor;
42 vtkSmartPointer<vtkActor2D> m_SelectedHandleActor;
43 vtkSmartPointer<vtkPolyDataMapper> m_Mapper;
44 vtkSmartPointer<vtkPolyDataMapper2D> m_HandleMapper;
45 vtkSmartPointer<vtkPolyDataMapper2D> m_SelectedHandleMapper;
46 vtkSmartPointer<vtkCutter> m_Cutter;
47 vtkSmartPointer<vtkPlane> m_CuttingPlane;
48 unsigned int m_LastSliceNumber;
49 std::vector<vtkSmartPointer<vtkSphereSource>> m_Handles;
50 vtkSmartPointer<vtkPropAssembly> m_PropAssembly;
54 LocalStorage(
const LocalStorage &);
55 LocalStorage &operator=(
const LocalStorage &);
59 static void SetDefaultProperties(
DataNode *node,
BaseRenderer *renderer =
nullptr,
bool overwrite =
false);
62 itkFactorylessNewMacro(
Self);
65 void ApplyColorAndOpacityProperties(
BaseRenderer *, vtkActor *)
override;
75 void GenerateDataForRenderer(
BaseRenderer *renderer)
override;