VTK  9.2.6
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=========================================================================*/
48#ifndef vtkLinkEdgels_h
49#define vtkLinkEdgels_h
50
51#include "vtkFiltersGeneralModule.h" // For export macro
53
54class vtkCellArray;
55class vtkDataArray;
56class vtkDoubleArray;
57class vtkPoints;
58
59class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
60{
61public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
69 static vtkLinkEdgels* New();
70
72
75 vtkSetMacro(LinkThreshold, double);
76 vtkGetMacro(LinkThreshold, double);
78
80
83 vtkSetMacro(PhiThreshold, double);
84 vtkGetMacro(PhiThreshold, double);
86
88
91 vtkSetMacro(GradientThreshold, double);
92 vtkGetMacro(GradientThreshold, double);
94
95protected:
97 ~vtkLinkEdgels() override = default;
98
100 int FillInputPortInformation(int port, vtkInformation* info) override;
101
102 void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
103 vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
104 vtkDoubleArray* outVectors, int z);
108
109private:
110 vtkLinkEdgels(const vtkLinkEdgels&) = delete;
111 void operator=(const vtkLinkEdgels&) = delete;
112};
113
114#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:34
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:34
Superclass for algorithms that produce only polydata as output.