Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPlanarFigureVtkMapper3D.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 mitkPlanarFigureVtkMapper3D_h
18 #define mitkPlanarFigureVtkMapper3D_h
19 
21 #include <mitkVtkMapper.h>
22 #include <vtkSmartPointer.h>
23 
24 namespace mitk
25 {
27  {
28  class LocalStorage
29  {
30  public:
31  LocalStorage();
32  ~LocalStorage();
33 
34  vtkSmartPointer<vtkActor> m_Actor;
35  unsigned long m_LastMTime;
36 
37  private:
38  LocalStorage(const LocalStorage &);
39  LocalStorage &operator=(const LocalStorage &);
40  };
41 
42  public:
43  static void SetDefaultProperties(DataNode *, BaseRenderer * = NULL, bool = false);
44 
46  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
47 
48  void ApplyColorAndOpacityProperties(BaseRenderer *renderer, vtkActor *actor) override;
49  void ApplyPlanarFigureProperties(BaseRenderer *renderer, vtkActor *actor);
50  vtkProp *GetVtkProp(BaseRenderer *renderer) override;
51  void UpdateVtkTransform(BaseRenderer *) override;
52 
53  private:
56 
58  Self &operator=(const Self &);
59 
60  void GenerateDataForRenderer(BaseRenderer *renderer) override;
61 
62  LocalStorageHandler<LocalStorage> m_LocalStorageHandler;
63  bool m_FillPf;
64  };
65 }
66 
67 #endif
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
#define MITKPLANARFIGURE_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66