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
48#ifndef vtkLinkEdgels_h
49#define vtkLinkEdgels_h
50
51#include "vtkFiltersGeneralModule.h" // For export macro
53
54VTK_ABI_NAMESPACE_BEGIN
55class vtkCellArray;
56class vtkDataArray;
57class vtkDoubleArray;
58class vtkPoints;
59
60class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
61{
62public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
70 static vtkLinkEdgels* New();
71
73
76 vtkSetMacro(LinkThreshold, double);
77 vtkGetMacro(LinkThreshold, double);
79
81
84 vtkSetMacro(PhiThreshold, double);
85 vtkGetMacro(PhiThreshold, double);
87
89
92 vtkSetMacro(GradientThreshold, double);
93 vtkGetMacro(GradientThreshold, double);
95
96protected:
98 ~vtkLinkEdgels() override = default;
99
101 int FillInputPortInformation(int port, vtkInformation* info) override;
102
103 void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
104 vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
105 vtkDoubleArray* outVectors, int z);
109
110private:
111 vtkLinkEdgels(const vtkLinkEdgels&) = delete;
112 void operator=(const vtkLinkEdgels&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
object to represent cell connectivity
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
links edgels together to form digital curves.
static vtkLinkEdgels * New()
Construct instance of vtkLinkEdgels with GradientThreshold set to 0.1, PhiThreshold set to 90 degrees...
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 GradientThreshold
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkLinkEdgels() override=default
represent and manipulate 3D points
Definition vtkPoints.h:38
Superclass for algorithms that produce only polydata as output.