Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkSimulationVtkMapper3D.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkSimulationVtkMapper3D_h
18 #define mitkSimulationVtkMapper3D_h
19 
20 #include <mitkVtkMapper.h>
21 #include <vtkSmartPointer.h>
22 #include <MitkSimulationExports.h>
23 
24 namespace mitk
25 {
26  class vtkSimulationPolyDataMapper3D;
27 
28  class MITKSIMULATION_EXPORT SimulationVtkMapper3D : public VtkMapper
29  {
30  class LocalStorage : public Mapper::BaseLocalStorage
31  {
32  public:
33  LocalStorage();
34  ~LocalStorage();
35 
36  vtkSmartPointer<vtkSimulationPolyDataMapper3D> m_Mapper;
37  vtkSmartPointer<vtkActor> m_Actor;
38 
39  private:
40  LocalStorage(const LocalStorage&);
41  LocalStorage& operator=(const LocalStorage&);
42  };
43 
44  public:
45  static void SetDefaultProperties(DataNode* node, BaseRenderer* renderer = NULL, bool overwrite = false);
46 
48  itkFactorylessNewMacro(Self)
49  itkCloneMacro(Self)
50 
51  void ApplyColorAndOpacityProperties(BaseRenderer*, vtkActor*) override;
52  void ApplySimulationProperties(BaseRenderer* renderer);
53  vtkProp* GetVtkProp(BaseRenderer* renderer) override;
54 
55  protected:
56  void GenerateDataForRenderer(BaseRenderer* renderer) override;
57 
58  private:
61 
63  Self& operator=(const Self&);
64 
65  LocalStorageHandler<LocalStorage> m_LocalStorageHandler;
66  };
67 }
68 
69 #endif
Base class for mapper specific rendering ressources.
Definition: mitkMapper.h:200
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:53
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66