Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
Medical Imaging Interaction Toolkit
mitkRegistrationWrapperMapperBase.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 
14 #ifndef _MITK_MITK_REGISTRATION_WRAPPER_MAPPER_BASE_H
15 #define _MITK_MITK_REGISTRATION_WRAPPER_MAPPER_BASE_H
16 
17 
18 #include <vtkSmartPointer.h>
19 
20 #include <mitkVtkMapper.h>
22 
24 
25 class vtkPropAssembly;
26 class vtkPolyDataMapper;
27 class vtkPolyData;
28 class vtkColorTransferFunction;
29 class vtkActor;
30 
31 namespace mitk {
32 
35 {
36 public:
37 
39 
40  //========== essential implementation for mapper ==========
41  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
42  static void SetDefaultProperties(DataNode* node, BaseRenderer* renderer = nullptr, bool overwrite = false );
43  void GenerateDataForRenderer(mitk::BaseRenderer* renderer) override;
44  //=========================================================
45 
46  virtual bool GetGeometryDescription(mitk::BaseRenderer *renderer, mitk::BaseGeometry::ConstPointer& gridDesc, unsigned int& gridFrequ) const = 0;
47  virtual bool RendererGeometryIsOutdated(mitk::BaseRenderer *renderer, const itk::TimeStamp& time) const = 0;
48 
52  {
53  public:
54  vtkSmartPointer<vtkPolyData> m_DeformedGridData;
55  vtkSmartPointer<vtkPolyData> m_StartGridData;
56 
57  vtkSmartPointer<vtkActor> m_DeformedGridActor;
58  vtkSmartPointer<vtkPolyDataMapper> m_DeformedGridMapper;
59  vtkSmartPointer<vtkActor> m_StartGridActor;
60  vtkSmartPointer<vtkPolyDataMapper> m_StartGridMapper;
61 
62  vtkSmartPointer<vtkPropAssembly> m_RegAssembly;
63 
64  vtkSmartPointer<vtkColorTransferFunction> m_LUT;
65 
67  itk::TimeStamp m_LastUpdateTime;
70 
72  {
73  }
74  };
75 
78 
79 
80 protected:
81 
84 
85 
86 private:
87 
88 };
89 
90 } // end namespace mitk
91 
92 
93 
94 
95 #endif /* MITKRegistrationWrapperMapperBase_H_HEADER_INCLUDED */
96 
Base class for mapper specific rendering ressources.
Definition: mitkMapper.h:193
void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
Templated class for management of LocalStorage implementations in Mappers.
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
mitk::LocalStorageHandler< RegWrapperLocalStorage > m_LSH
This member holds all three LocalStorages for the 3D render window(s).
virtual bool RendererGeometryIsOutdated(mitk::BaseRenderer *renderer, const itk::TimeStamp &time) const =0
#define MITKMATCHPOINTREGISTRATION_EXPORT
mitkClassMacro(MITKRegistrationWrapperMapperBase, VtkMapper)
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
virtual bool GetGeometryDescription(mitk::BaseRenderer *renderer, mitk::BaseGeometry::ConstPointer &gridDesc, unsigned int &gridFrequ) const =0
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57