VMTK
vtkvmtkPolyDataNormalPlaneEstimator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkPolyDataNormalPlaneEstimator.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
28 #ifndef __vtkvmtkPolyDataNormalPlaneEstimator_h
29 #define __vtkvmtkPolyDataNormalPlaneEstimator_h
30 
31 #include "vtkPolyDataAlgorithm.h"
32 #include "vtkvmtkWin32Header.h"
33 
34 class VTK_VMTK_MISC_EXPORT vtkvmtkPolyDataNormalPlaneEstimator : public vtkPolyDataAlgorithm
35 {
36  public:
37  vtkTypeMacro(vtkvmtkPolyDataNormalPlaneEstimator,vtkPolyDataAlgorithm);
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
41 
42  vtkSetMacro(OriginPointId,vtkIdType);
43  vtkGetMacro(OriginPointId,vtkIdType);
44 
45  vtkGetVectorMacro(Origin,double,3);
46  vtkGetVectorMacro(Normal,double,3);
47 
48  vtkSetMacro(UseConnectivity,int);
49  vtkGetMacro(UseConnectivity,int);
50  vtkBooleanMacro(UseConnectivity,int);
51 
52  vtkSetMacro(MinimumNeighborhoodSize,int);
53  vtkGetMacro(MinimumNeighborhoodSize,int);
54 
55  protected:
58 
59  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
60 
61  vtkIdType OriginPointId;
62 
63  double Origin[3];
64  double Normal[3];
65 
68 
69  private:
71  void operator=(const vtkvmtkPolyDataNormalPlaneEstimator&); // Not implemented.
72 };
73 
74 #endif
calculate the normal plane alone a centerline path