Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkNavigationDataObjectVisualizationFilter.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 mitkNavigationDataObjectVisualizationFilter_h
15 #define mitkNavigationDataObjectVisualizationFilter_h
16 
18 #include "mitkNavigationData.h"
19 #include "mitkBaseData.h"
20 
21 namespace mitk {
22 
31  {
32  public:
34 
35  itkFactorylessNewMacro(Self);
36 
37  itkCloneMacro(Self);
38 
52  enum RotationMode {RotationStandard, RotationTransposed};
53 
58 
62  typedef std::map<unsigned int, RepresentationPointer> RepresentationPointerMap;
63 
67  typedef std::map<unsigned int, std::vector<RepresentationPointer>> RepresentationVectorPointerMap;
68 
72  typedef RepresentationVectorPointerMap::size_type RepresentationPointerMapSizeType;
73 
80  void SetRepresentationObject(unsigned int index, BaseData::Pointer data);
81 
88  void SetRepresentationObjects(unsigned int index, const std::vector<BaseData::Pointer> &data);
89 
97  BaseData::Pointer GetRepresentationObject(unsigned int idx) const;
98 
106  std::vector<RepresentationPointer> GetAllRepresentationObjects(unsigned int idx) const;
107 
108  virtual void SetTransformPosition(unsigned int index, bool applyTransform);
109  virtual bool GetTransformPosition(unsigned int index) const;
110  virtual void TransformPositionOn(unsigned int index);
111  virtual void TransformPositionOff(unsigned int index);
112 
113  virtual void SetTransformOrientation(unsigned int index, bool applyTransform);
114  virtual bool GetTransformOrientation(unsigned int index) const;
115  virtual void TransformOrientationOn(unsigned int index);
116  virtual void TransformOrientationOff(unsigned int index);
117 
123  void SetOffset(int index, mitk::AffineTransform3D::Pointer offset);
124 
130  virtual void SetRotationMode(RotationMode r);
131 
133  mitk::AffineTransform3D::Pointer GetOffset(int index);
134 
140  {
141  return m_RepresentationVectorMap.size();
142  }
143 
144  /*
145  * \brief Transfer the information from the input to the associated BaseData
146  */
147  void GenerateData() override;
148 
149 
150  protected:
151  typedef std::map<itk::ProcessObject::DataObjectPointerArraySizeType, bool> BooleanInputMap;
152  typedef std::map<unsigned int, mitk::AffineTransform3D::Pointer> OffsetPointerMap;
153 
158 
163 
172 
173  private:
174  RotationMode m_RotationMode;
175  };
176 } // namespace mitk
177 #endif
mitk::NavigationDataObjectVisualizationFilter::GetNumberOfToolRepresentations
RepresentationPointerMapSizeType GetNumberOfToolRepresentations() const
Get the number of added BaseData associated to NavigationData.
Definition: mitkNavigationDataObjectVisualizationFilter.h:139
mitk::NavigationDataObjectVisualizationFilter::m_OffsetList
OffsetPointerMap m_OffsetList
Definition: mitkNavigationDataObjectVisualizationFilter.h:171
mitk::NavigationDataObjectVisualizationFilter::m_TransformPosition
BooleanInputMap m_TransformPosition
if set to true, the filter will use the position part of the input navigation data at the given index...
Definition: mitkNavigationDataObjectVisualizationFilter.h:169
mitk::NavigationDataObjectVisualizationFilter::m_TransformOrientation
BooleanInputMap m_TransformOrientation
if set to true, the filter will use the orientation part of the input navigation data at the given in...
Definition: mitkNavigationDataObjectVisualizationFilter.h:170
mitkNavigationData.h
itk::SmartPointer< Self >
mitk::NavigationDataToNavigationDataFilter
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
Definition: mitkNavigationDataToNavigationDataFilter.h:32
mitk::NavigationDataObjectVisualizationFilter::RepresentationPointerMap
std::map< unsigned int, RepresentationPointer > RepresentationPointerMap
STL map of index to BaseData . Using map to be able to set non continuous indices.
Definition: mitkNavigationDataObjectVisualizationFilter.h:62
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::NavigationDataObjectVisualizationFilter::RotationMode
RotationMode
Definition: mitkNavigationDataObjectVisualizationFilter.h:52
mitk::NavigationDataObjectVisualizationFilter::OffsetPointerMap
std::map< unsigned int, mitk::AffineTransform3D::Pointer > OffsetPointerMap
Definition: mitkNavigationDataObjectVisualizationFilter.h:152
mitk::NavigationDataObjectVisualizationFilter::m_RepresentationVectorMap
RepresentationVectorPointerMap m_RepresentationVectorMap
An array of the BaseData which represent the tools.
Definition: mitkNavigationDataObjectVisualizationFilter.h:168
mitk::NavigationDataObjectVisualizationFilter::RepresentationPointer
BaseData::Pointer RepresentationPointer
Smart Pointer type to a BaseData.
Definition: mitkNavigationDataObjectVisualizationFilter.h:57
mitk::NavigationDataObjectVisualizationFilter::RepresentationPointerMapSizeType
RepresentationVectorPointerMap::size_type RepresentationPointerMapSizeType
Size type of an std::vector.
Definition: mitkNavigationDataObjectVisualizationFilter.h:72
mitkNavigationDataToNavigationDataFilter.h
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::NavigationDataObjectVisualizationFilter::RepresentationVectorPointerMap
std::map< unsigned int, std::vector< RepresentationPointer > > RepresentationVectorPointerMap
STL vector map of index to BaseData . Using map to be able to set non continuous indices.
Definition: mitkNavigationDataObjectVisualizationFilter.h:67
mitk::NavigationDataObjectVisualizationFilter::BooleanInputMap
std::map< itk::ProcessObject::DataObjectPointerArraySizeType, bool > BooleanInputMap
Definition: mitkNavigationDataObjectVisualizationFilter.h:151
mitk::NavigationDataObjectVisualizationFilter
Class that reads NavigationData from input and transfers the information to the geometry of the assoc...
Definition: mitkNavigationDataObjectVisualizationFilter.h:30