Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
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_HEADER_INCLUDED_
15 #define MITKNAVIGATIONDATAOBJECTVISUALIZATIONFILTER_H_HEADER_INCLUDED_
16 
18 #include "mitkNavigationData.h"
19 #include "mitkBaseData.h"
20 
21 namespace mitk {
22 
31  {
32  public:
34 
35  itkFactorylessNewMacro(Self)
36  itkCloneMacro(Self)
37 
38 
51  enum RotationMode {RotationStandard, RotationTransposed};
52 
57 
61  typedef std::map<unsigned int, RepresentationPointer> RepresentationPointerMap;
62 
66  typedef RepresentationPointerMap::size_type RepresentationPointerMapSizeType;
67 
74  void SetRepresentationObject(unsigned int index, BaseData* data);
75 
83  const BaseData* GetRepresentationObject(unsigned int idx);
84 
85  virtual void SetTransformPosition(unsigned int index, bool applyTransform);
86  virtual bool GetTransformPosition(unsigned int index) const;
87  virtual void TransformPositionOn(unsigned int index);
88  virtual void TransformPositionOff(unsigned int index);
89 
90  virtual void SetTransformOrientation(unsigned int index, bool applyTransform);
91  virtual bool GetTransformOrientation(unsigned int index) const;
92  virtual void TransformOrientationOn(unsigned int index);
93  virtual void TransformOrientationOff(unsigned int index);
94 
99  void SetOffset(int index, mitk::AffineTransform3D::Pointer offset);
100 
106  virtual void SetRotationMode(RotationMode r);
107 
109  mitk::AffineTransform3D::Pointer GetOffset(int index);
110 
115  RepresentationPointerMapSizeType GetNumberOfToolRepresentations() const
116  {
117  return m_RepresentationList.size();
118  }
119 
120  /*
121  * \brief Transfer the information from the input to the associated BaseData
122  */
123  void GenerateData() override;
124 
125 
126  protected:
127  typedef std::map<itk::ProcessObject::DataObjectPointerArraySizeType, bool> BooleanInputMap;
128  typedef std::map<unsigned int, mitk::AffineTransform3D::Pointer> OffsetPointerMap;
129 
134 
139 
143  RepresentationPointerMap m_RepresentationList;
144  BooleanInputMap m_TransformPosition;
145  BooleanInputMap m_TransformOrientation;
146  OffsetPointerMap m_OffsetList;
147 
148  private:
149  RotationMode m_RotationMode;
150  };
151 } // namespace mitk
152 #endif /* MITKNAVIGATIONDATAOBJECTVISUALIZATIONFILTER_H_HEADER_INCLUDED_ */
std::map< itk::ProcessObject::DataObjectPointerArraySizeType, bool > BooleanInputMap
Base of all data objects.
Definition: mitkBaseData.h:37
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
std::map< unsigned int, RepresentationPointer > RepresentationPointerMap
STL map of index to BaseData . Using map to be able to set non continuous indices.
BooleanInputMap m_TransformPosition
if set to true, the filter will use the position part of the input navigation data at the given index...
DataCollection - Class to facilitate loading/accessing structured data.
BaseData::ConstPointer RepresentationPointer
Smart Pointer type to a BaseData.
RepresentationPointerMapSizeType GetNumberOfToolRepresentations() const
Get the number of added BaseData associated to NavigationData.
static Vector3D offset
#define MITKIGT_EXPORT
RepresentationPointerMap::size_type RepresentationPointerMapSizeType
Size type of an std::vector.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
BooleanInputMap m_TransformOrientation
if set to true, the filter will use the orientation part of the input navigation data at the given in...
RepresentationPointerMap m_RepresentationList
An array of the BaseData which represent the tools.
std::map< unsigned int, mitk::AffineTransform3D::Pointer > OffsetPointerMap
Class that reads NavigationData from input and transfers the information to the geometry of the assoc...