Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
mitkNeedleProjectionFilter.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 #ifndef NEEDLEPROJECTIONFILTER_H_INCLUDED
14 #define NEEDLEPROJECTIONFILTER_H_INCLUDED
15 
16 #include "MitkIGTExports.h"
17 
18 // MITK
20 #include <mitkNavigationData.h>
21 #include <mitkPointSet.h>
22 #include <mitkGeometry3D.h>
23 
24 namespace mitk {
44  {
45  public:
47  itkNewMacro(Self);
48 
49  virtual void SelectInput(int i);
50 
51  itkGetMacro(TargetPlane, mitk::AffineTransform3D::Pointer);
52  itkSetMacro(TargetPlane, mitk::AffineTransform3D::Pointer);
53  itkGetMacro(Projection, mitk::PointSet::Pointer);
56  void SetToolAxisForFilter(mitk::Point3D point);
59  void ShowToolAxis(bool enabled);
60 
61  protected:
63  ~NeedleProjectionFilter() override;
64 
65  void GenerateData() override;
66 
67  mitk::AffineTransform3D::Pointer m_TargetPlane;
68 
73 
75 
78  void InitializeOriginalPoints(mitk::Point3D toolAxis, bool showToolAxis);
79 
80 
84  mitk::AffineTransform3D::Pointer NavigationDataToTransform(const mitk::NavigationData * nd);
88  mitk::Geometry3D::Pointer TransformToGeometry(mitk::AffineTransform3D::Pointer transform);
89  };
90 } // namespace mitk
91 
92 
93 #endif
Navigation Data.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIGT_EXPORT
Basis for filters that want to leave the navigation data untouched.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::PointSet::Pointer m_OriginalPoints
mitk::AffineTransform3D::Pointer m_TargetPlane
This filter projects a needle&#39;s path onto a plane.