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
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,
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 
18 #ifndef _MITK_MITK_REGISTRATION_WRAPPER_MAPPER_BASE_H
19 #define _MITK_MITK_REGISTRATION_WRAPPER_MAPPER_BASE_H
20 
21 
22 #include <vtkSmartPointer.h>
23 
24 #include <mitkVtkMapper.h>
26 
28 
29 class vtkPropAssembly;
30 class vtkPolyDataMapper;
31 class vtkPolyData;
32 class vtkColorTransferFunction;
33 class vtkActor;
34 
35 namespace mitk {
36 
39 {
40 public:
41 
43 
44  //========== essential implementation for mapper ==========
45  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer);
46  static void SetDefaultProperties(DataNode* node, BaseRenderer* renderer = NULL, bool overwrite = false );
47  static void SetVtkMapperImmediateModeRendering(vtkMapper *mapper);
48  virtual void GenerateDataForRenderer(mitk::BaseRenderer* renderer);
49  //=========================================================
50 
51  virtual bool GetGeometryDescription(mitk::BaseRenderer *renderer, mitk::BaseGeometry::ConstPointer& gridDesc, unsigned int& gridFrequ) const = 0;
52  virtual bool RendererGeometryIsOutdated(mitk::BaseRenderer *renderer, const itk::TimeStamp& time) const = 0;
53 
57  {
58  public:
59  vtkSmartPointer<vtkPolyData> m_DeformedGridData;
60  vtkSmartPointer<vtkPolyData> m_StartGridData;
61 
62  vtkSmartPointer<vtkActor> m_DeformedGridActor;
63  vtkSmartPointer<vtkPolyDataMapper> m_DeformedGridMapper;
64  vtkSmartPointer<vtkActor> m_StartGridActor;
65  vtkSmartPointer<vtkPolyDataMapper> m_StartGridMapper;
66 
67  vtkSmartPointer<vtkPropAssembly> m_RegAssembly;
68 
69  vtkSmartPointer<vtkColorTransferFunction> m_LUT;
70 
72  itk::TimeStamp m_LastUpdateTime;
75 
77  {
78  }
79  };
80 
83 
84 
85 protected:
86 
89 
90 
91 private:
92 
93 };
94 
95 } // end namespace mitk
96 
97 
98 
99 
100 #endif /* MITKRegistrationWrapperMapperBase_H_HEADER_INCLUDED */
101 
Base class for mapper specific rendering ressources.
Definition: mitkMapper.h:200
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
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
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)
virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer)
Generate the data needed for rendering into renderer.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
virtual vtkProp * GetVtkProp(mitk::BaseRenderer *renderer)
virtual bool GetGeometryDescription(mitk::BaseRenderer *renderer, mitk::BaseGeometry::ConstPointer &gridDesc, unsigned int &gridFrequ) const =0
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66