VTK: Filters/General/vtkLinkEdgels.h Source File

| VTK 9.3.1

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
52 #include "vtkPolyDataAlgorithm.h"
53
54 VTK_ABI_NAMESPACE_BEGIN
55 class vtkCellArray;
56 class vtkDataArray;
57 class vtkDoubleArray;
58 class vtkPoints;
59
60 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
61 {
62 public:
63 vtkTypeMacro(vtkLinkEdgels, vtkPolyDataAlgorithm);
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
96 protected:
97 vtkLinkEdgels();
98 ~vtkLinkEdgels() override = default;
99
100 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
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);
106 double GradientThreshold;
107 double PhiThreshold;
108 double LinkThreshold;
109
110 private:
111 vtkLinkEdgels(const vtkLinkEdgels&) = delete;
112 void operator=(const vtkLinkEdgels&) = delete;
113 };
114
115 VTK_ABI_NAMESPACE_END
116 #endif
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:185
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkLinkEdgels
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:61
vtkLinkEdgels::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkLinkEdgels::LinkEdgels
void LinkEdgels(int xdim, int ydim, double *image, vtkDataArray *inVectors, vtkCellArray *newLines, vtkPoints *newPts, vtkDoubleArray *outScalars, vtkDoubleArray *outVectors, int z)
vtkLinkEdgels::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkLinkEdgels::PhiThreshold
double PhiThreshold
Definition: vtkLinkEdgels.h:107
vtkLinkEdgels::GradientThreshold
double GradientThreshold
Definition: vtkLinkEdgels.h:106
vtkLinkEdgels::LinkThreshold
double LinkThreshold
Definition: vtkLinkEdgels.h:108
vtkLinkEdgels::vtkLinkEdgels
vtkLinkEdgels()
vtkLinkEdgels::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLinkEdgels::~vtkLinkEdgels
~vtkLinkEdgels() override=default
vtkLinkEdgels::New
static vtkLinkEdgels * New()
Construct instance of vtkLinkEdgels with GradientThreshold set to 0.1, PhiThreshold set to 90 degrees...
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::image
@ image
Definition: vtkX3D.h:374
vtkPolyDataAlgorithm.h