VTK  9.2.5
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 =========================================================================*/
70 #ifndef vtkLinkEdgels_h
71 #define vtkLinkEdgels_h
72 
73 #include "vtkFiltersGeneralModule.h" // For export macro
74 #include "vtkPolyDataAlgorithm.h"
75 
76 class vtkCellArray;
77 class vtkDataArray;
78 class vtkDoubleArray;
79 class vtkPoints;
80 
81 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
82 {
83 public:
85  void PrintSelf(ostream& os, vtkIndent indent) override;
86 
91  static vtkLinkEdgels* New();
92 
94 
97  vtkSetMacro(LinkThreshold, double);
98  vtkGetMacro(LinkThreshold, double);
100 
102 
105  vtkSetMacro(PhiThreshold, double);
106  vtkGetMacro(PhiThreshold, double);
108 
110 
113  vtkSetMacro(GradientThreshold, double);
114  vtkGetMacro(GradientThreshold, double);
116 
117 protected:
119  ~vtkLinkEdgels() override = default;
120 
123 
124  void LinkEdgels(int xdim, int ydim, double* image, vtkDataArray* inVectors,
125  vtkCellArray* newLines, vtkPoints* newPts, vtkDoubleArray* outScalars,
126  vtkDoubleArray* outVectors, int z);
128  double PhiThreshold;
130 
131 private:
132  vtkLinkEdgels(const vtkLinkEdgels&) = delete;
133  void operator=(const vtkLinkEdgels&) = delete;
134 };
135 
136 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:296
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:82
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 PhiThreshold
double GradientThreshold
double LinkThreshold
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkLinkEdgels() override=default
static vtkLinkEdgels * New()
Construct instance of vtkLinkEdgels with GradientThreshold set to 0.1, PhiThreshold set to 90 degrees...
represent and manipulate 3D points
Definition: vtkPoints.h:149
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ image
Definition: vtkX3D.h:380