VTK  9.3.0
vtkLinkEdgels.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
39 #ifndef vtkLinkEdgels_h
40 #define vtkLinkEdgels_h
41 
42 #include "vtkFiltersGeneralModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkCellArray;
47 class vtkDataArray;
48 class vtkDoubleArray;
49 class vtkPoints;
50 
51 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
61  static vtkLinkEdgels* New();
62 
64 
67  vtkSetMacro(LinkThreshold, double);
68  vtkGetMacro(LinkThreshold, double);
70 
72 
75  vtkSetMacro(PhiThreshold, double);
76  vtkGetMacro(PhiThreshold, double);
78 
80 
83  vtkSetMacro(GradientThreshold, double);
84  vtkGetMacro(GradientThreshold, double);
86 
87 protected:
89  ~vtkLinkEdgels() override = default;
90 
93 
94  void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
95  vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
96  vtkDoubleArray* outVectors, int z);
98  double PhiThreshold;
99  double LinkThreshold;
100 
101 private:
102  vtkLinkEdgels(const vtkLinkEdgels&) = delete;
103  void operator=(const vtkLinkEdgels&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:176
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:52
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void LinkEdgels(int xdim, int ydim, double *image, vtkDataArray *inVectors, vtkCellArray *newLines, vtkPoints *newPts, vtkDoubleArray *outScalars, vtkDoubleArray *outVectors, int z)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double PhiThreshold
Definition: vtkLinkEdgels.h:98
double GradientThreshold
Definition: vtkLinkEdgels.h:97
double LinkThreshold
Definition: vtkLinkEdgels.h:99
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkLinkEdgels() override=default
static vtkLinkEdgels * New()
Construct instance of vtkLinkEdgels with GradientThreshold set to 0.1, PhiThreshold set to 90 degrees...
represent and manipulate 3D points
Definition: vtkPoints.h:29
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ image
Definition: vtkX3D.h:374