Medical Imaging Interaction Toolkit  2024.06.00
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 mitkRegistrationWrapperMapperBase_h
15 #define mitkRegistrationWrapperMapperBase_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:
56 
61 
63 
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
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_RegAssembly
vtkSmartPointer< vtkPropAssembly > m_RegAssembly
Definition: mitkRegistrationWrapperMapperBase.h:62
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_StartGridMapper
vtkSmartPointer< vtkPolyDataMapper > m_StartGridMapper
Definition: mitkRegistrationWrapperMapperBase.h:60
mitkLocalStorageHandler.h
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage
Definition: mitkRegistrationWrapperMapperBase.h:51
mitk::MITKRegistrationWrapperMapperBase::GetVtkProp
vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
mitk::MITKRegistrationWrapperMapperBase::GetGeometryDescription
virtual bool GetGeometryDescription(mitk::BaseRenderer *renderer, mitk::BaseGeometry::ConstPointer &gridDesc, unsigned int &gridFrequ) const =0
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_LastUpdateTime
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Definition: mitkRegistrationWrapperMapperBase.h:67
mitk::MITKRegistrationWrapperMapperBase::MITKRegistrationWrapperMapperBase
MITKRegistrationWrapperMapperBase()
mitk::MITKRegistrationWrapperMapperBase::RendererGeometryIsOutdated
virtual bool RendererGeometryIsOutdated(mitk::BaseRenderer *renderer, const itk::TimeStamp &time) const =0
vtkSmartPointer< vtkPolyData >
mitk::MITKRegistrationWrapperMapperBase::m_LSH
mitk::LocalStorageHandler< RegWrapperLocalStorage > m_LSH
This member holds all three LocalStorages for the 3D render window(s).
Definition: mitkRegistrationWrapperMapperBase.h:77
mitk::MITKRegistrationWrapperMapperBase::SetDefaultProperties
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
itk::SmartPointer< const Self >
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_DeformedGridData
vtkSmartPointer< vtkPolyData > m_DeformedGridData
Definition: mitkRegistrationWrapperMapperBase.h:54
MitkMatchPointRegistrationExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::MITKRegistrationWrapperMapperBase::mitkClassMacro
mitkClassMacro(MITKRegistrationWrapperMapperBase, VtkMapper)
mitk::LocalStorageHandler
Templated class for management of LocalStorage implementations in Mappers.
Definition: mitkLocalStorageHandler.h:48
mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer
void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_DeformedGridActor
vtkSmartPointer< vtkActor > m_DeformedGridActor
Definition: mitkRegistrationWrapperMapperBase.h:57
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:47
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_LUT
vtkSmartPointer< vtkColorTransferFunction > m_LUT
Definition: mitkRegistrationWrapperMapperBase.h:64
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_DeformedGridMapper
vtkSmartPointer< vtkPolyDataMapper > m_DeformedGridMapper
Definition: mitkRegistrationWrapperMapperBase.h:58
mitk::Mapper::BaseLocalStorage
Base class for mapper specific rendering resources.
Definition: mitkMapper.h:190
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_StartGridData
vtkSmartPointer< vtkPolyData > m_StartGridData
Definition: mitkRegistrationWrapperMapperBase.h:55
mitkVtkMapper.h
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::m_StartGridActor
vtkSmartPointer< vtkActor > m_StartGridActor
Definition: mitkRegistrationWrapperMapperBase.h:59
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITKMATCHPOINTREGISTRATION_EXPORT
#define MITKMATCHPOINTREGISTRATION_EXPORT
Definition: MitkMatchPointRegistrationExports.h:15
mitk::MITKRegistrationWrapperMapperBase::~MITKRegistrationWrapperMapperBase
~MITKRegistrationWrapperMapperBase() override
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage::~RegWrapperLocalStorage
~RegWrapperLocalStorage() override
Definition: mitkRegistrationWrapperMapperBase.h:71
mitk::MITKRegistrationWrapperMapperBase
Definition: mitkRegistrationWrapperMapperBase.h:34