MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationDataObjectVisualizationFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
21namespace mitk {
22
31 {
32 public:
34
36
38
52 enum RotationMode {RotationStandard, RotationTransposed};
53
57 typedef BaseData::Pointer RepresentationPointer;
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
Class that reads NavigationData from input and transfers the information to the geometry of the assoc...
BaseData::Pointer RepresentationPointer
Smart Pointer type to a BaseData.
std::map< itk::ProcessObject::DataObjectPointerArraySizeType, bool > BooleanInputMap
RepresentationVectorPointerMap m_RepresentationVectorMap
An array of the BaseData which represent the tools.
BooleanInputMap m_TransformPosition
if set to true, the filter will use the position part of the input navigation data at the given index...
RepresentationVectorPointerMap::size_type RepresentationPointerMapSizeType
Size type of an std::vector.
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.
std::map< unsigned int, RepresentationPointer > RepresentationPointerMap
STL map of index to BaseData . Using map to be able to set non continuous indices.
std::map< unsigned int, mitk::AffineTransform3D::Pointer > OffsetPointerMap
mitkClassMacro(NavigationDataObjectVisualizationFilter, NavigationDataToNavigationDataFilter)
BooleanInputMap m_TransformOrientation
if set to true, the filter will use the orientation part of the input navigation data at the given in...
RepresentationPointerMapSizeType GetNumberOfToolRepresentations() const
Get the number of added BaseData associated to NavigationData.
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
IGT Exceptions.