VTK
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
52 #include "vtkPolyDataAlgorithm.h"
53 
54 class vtkCellArray;
55 class vtkDataArray;
56 class vtkDoubleArray;
57 class vtkPoints;
58 
59 class VTKFILTERSGENERAL_EXPORT vtkLinkEdgels : public vtkPolyDataAlgorithm
60 {
61 public:
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 
95 protected:
96  vtkLinkEdgels();
97  ~vtkLinkEdgels() override {}
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,
104  vtkDoubleArray *outScalars, vtkDoubleArray *outVectors,
105  int z);
107  double PhiThreshold;
109 private:
110  vtkLinkEdgels(const vtkLinkEdgels&) = delete;
111  void operator=(const vtkLinkEdgels&) = delete;
112 };
113 
114 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkLinkEdgels::PhiThreshold
double PhiThreshold
Definition: vtkLinkEdgels.h:107
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::image
Definition: vtkX3D.h:374
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLinkEdgels::~vtkLinkEdgels
~vtkLinkEdgels() override
Definition: vtkLinkEdgels.h:97
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:44
vtkLinkEdgels
links edgels together to form digital curves.
Definition: vtkLinkEdgels.h:59
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkLinkEdgels::LinkThreshold
double LinkThreshold
Definition: vtkLinkEdgels.h:108
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkLinkEdgels::GradientThreshold
double GradientThreshold
Definition: vtkLinkEdgels.h:106
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41