VTK  9.3.20240424
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
58#ifndef vtkLinkEdgels_h
59#define vtkLinkEdgels_h
60
61#include "vtkFiltersGeneralModule.h" // For export macro
63
64VTK_ABI_NAMESPACE_BEGIN
65class vtkCellArray;
66class vtkDataArray;
67class vtkDoubleArray;
68class vtkPoints;
69
70class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
71{
72public:
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
80 static vtkLinkEdgels* New();
81
83
86 vtkSetMacro(LinkThreshold, double);
87 vtkGetMacro(LinkThreshold, double);
89
91
94 vtkSetMacro(PhiThreshold, double);
95 vtkGetMacro(PhiThreshold, double);
97
99
102 vtkSetMacro(GradientThreshold, double);
103 vtkGetMacro(GradientThreshold, double);
105
106protected:
108 ~vtkLinkEdgels() override = default;
109
111 int FillInputPortInformation(int port, vtkInformation* info) override;
112
113 void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
114 vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
115 vtkDoubleArray* outVectors, int z);
119
120private:
121 vtkLinkEdgels(const vtkLinkEdgels&) = delete;
122 void operator=(const vtkLinkEdgels&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#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:108
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:139
Superclass for algorithms that produce only polydata as output.