Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkFibersFromPlanarFiguresFilter.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef itkFibersFromPlanarFiguresFilter_h
17 #define itkFibersFromPlanarFiguresFilter_h
18 
19 // MITK
20 #include <mitkPlanarEllipse.h>
21 #include <mitkFiberBundle.h>
22 #include <mitkFiberfoxParameters.h>
23 
24 // ITK
25 #include <itkProcessObject.h>
26 
27 // VTK
28 #include <vtkSmartPointer.h>
29 #include <vtkPolyData.h>
30 #include <vtkCellArray.h>
31 #include <vtkPoints.h>
32 #include <vtkPolyLine.h>
33 
34 using namespace std;
35 
36 namespace itk{
37 
41 class FibersFromPlanarFiguresFilter : public ProcessObject
42 {
43 public:
44 
46  typedef ProcessObject Superclass;
50  typedef vector< mitk::FiberBundle::Pointer > FiberContainerType;
51 
52  itkFactorylessNewMacro(Self)
53  itkCloneMacro(Self)
54  itkTypeMacro( FibersFromPlanarFiguresFilter, ProcessObject )
55 
56  virtual void Update() override{
57  this->GenerateData();
58  }
59 
60  // input
62  {
63  m_Parameters = param;
64  }
65 
66  // output
67  FiberContainerType GetFiberBundles(){ return m_FiberBundles; }
68 
69 protected:
70 
71  void GenerateData() override;
72 
75  void GeneratePoints();
76 
77  FiberContainerType m_FiberBundles;
78  vector< mitk::Vector2D > m_2DPoints;
80 };
81 }
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
85 #endif
86 
87 #endif
vector< mitk::Vector2D > m_2DPoints
container for the 2D fiber waypoints
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
STL namespace.
void SetParameters(FiberGenerationParameters param)
vector< mitk::FiberBundle::Pointer > FiberContainerType
Generates artificial fibers distributed in and interpolated between the input planar figures...
FiberContainerType m_FiberBundles
container for the output fiber bundles