Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSimulationVtkMapper2D.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 mitkSimulationVtkMapper2D_h
18 #define mitkSimulationVtkMapper2D_h
19 
20 #include <mitkVtkMapper.h>
21 #include <vtkSmartPointer.h>
22 #include <MitkSimulationExports.h>
23 
24 namespace mitk
25 {
26  class vtkSimulationPolyDataMapper2D;
27 
28  class MITKSIMULATION_EXPORT SimulationVtkMapper2D : public VtkMapper
29  {
30  class LocalStorage : public Mapper::BaseLocalStorage
31  {
32  public:
33  LocalStorage();
34  ~LocalStorage();
35 
36  vtkSmartPointer<vtkSimulationPolyDataMapper2D> 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  vtkProp* GetVtkProp(BaseRenderer* renderer) override;
53 
54  protected:
55  void GenerateDataForRenderer(BaseRenderer* renderer) override;
56 
57  private:
60 
62  Self& operator=(const Self&);
63 
64  LocalStorageHandler<LocalStorage> m_LocalStorageHandler;
65  };
66 }
67 
68 #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