Medical Imaging Interaction Toolkit  2022.04.99-b878213f
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkPlanarFigureVtkMapper3D_h
14 #define mitkPlanarFigureVtkMapper3D_h
15 
17 #include <mitkVtkMapper.h>
18 #include <vtkSmartPointer.h>
19 
20 namespace mitk
21 {
23  {
24  class LocalStorage
25  {
26  public:
27  LocalStorage();
28  ~LocalStorage();
29 
30  vtkSmartPointer<vtkActor> m_Actor;
31  unsigned long m_LastMTime;
32 
33  private:
34  LocalStorage(const LocalStorage &);
35  LocalStorage &operator=(const LocalStorage &);
36  };
37 
38  public:
39  static void SetDefaultProperties(DataNode *, BaseRenderer * = nullptr, bool = false);
40 
42  itkFactorylessNewMacro(Self);
43  itkCloneMacro(Self);
44 
45  void ApplyColorAndOpacityProperties(BaseRenderer *renderer, vtkActor *actor) override;
46  void ApplyPlanarFigureProperties(BaseRenderer *renderer, vtkActor *actor);
47  vtkProp *GetVtkProp(BaseRenderer *renderer) override;
48  void UpdateVtkTransform(BaseRenderer *) override;
49 
50  private:
52  ~PlanarFigureVtkMapper3D() override;
53 
55  Self &operator=(const Self &);
56 
57  void GenerateDataForRenderer(BaseRenderer *renderer) override;
58 
59  LocalStorageHandler<LocalStorage> m_LocalStorageHandler;
60  bool m_FillPf;
61  };
62 }
63 
64 #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:48
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
#define MITKPLANARFIGURE_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63