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=========================================================================*/
60#ifndef vtkLinkEdgels_h
61#define vtkLinkEdgels_h
62
63#include "vtkFiltersGeneralModule.h" // For export macro
65
66class vtkCellArray;
67class vtkDataArray;
68class vtkDoubleArray;
69class vtkPoints;
70
71class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
72{
73public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
81 static vtkLinkEdgels* New();
82
84
87 vtkSetMacro(LinkThreshold, double);
88 vtkGetMacro(LinkThreshold, double);
90
92
95 vtkSetMacro(PhiThreshold, double);
96 vtkGetMacro(PhiThreshold, double);
98
100
103 vtkSetMacro(GradientThreshold, double);
104 vtkGetMacro(GradientThreshold, double);
106
107protected:
109 ~vtkLinkEdgels() override = default;
110
112 int FillInputPortInformation(int port, vtkInformation* info) override;
113
114 void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
115 vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
116 vtkDoubleArray* outVectors, int z);
120
121private:
122 vtkLinkEdgels(const vtkLinkEdgels&) = delete;
123 void operator=(const vtkLinkEdgels&) = delete;
124};
125
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:49
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:49
Superclass for algorithms that produce only polydata as output.