VTK
vtkLinkEdgels.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLinkEdgels.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
51 #ifndef vtkLinkEdgels_h
52 #define vtkLinkEdgels_h
53 
54 #include "vtkFiltersGeneralModule.h" // For export macro
55 #include "vtkPolyDataAlgorithm.h"
56 
57 class vtkCellArray;
58 class vtkDataArray;
59 class vtkDoubleArray;
60 class vtkPoints;
61 
62 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
67 
72  static vtkLinkEdgels *New();
73 
75 
78  vtkSetMacro(LinkThreshold,double);
79  vtkGetMacro(LinkThreshold,double);
81 
83 
86  vtkSetMacro(PhiThreshold,double);
87  vtkGetMacro(PhiThreshold,double);
89 
91 
94  vtkSetMacro(GradientThreshold,double);
95  vtkGetMacro(GradientThreshold,double);
97 
98 protected:
99  vtkLinkEdgels();
100  ~vtkLinkEdgels() VTK_OVERRIDE {}
101 
103  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
104 
105  void LinkEdgels(int xdim, int ydim,double *image, vtkDataArray *inVectors,
106  vtkCellArray *newLines, vtkPoints *newPts,
107  vtkDoubleArray *outScalars, vtkDoubleArray *outVectors,
108  int z);
109  double GradientThreshold;
110  double PhiThreshold;
111  double LinkThreshold;
112 private:
113  vtkLinkEdgels(const vtkLinkEdgels&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkLinkEdgels&) VTK_DELETE_FUNCTION;
115 };
116 
117 #endif
~vtkLinkEdgels() override
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of double
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
Store zero or more vtkInformation instances.
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:62
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.