Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Graphics/vtkLinkEdgels.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkLinkEdgels.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00065 #ifndef __vtkLinkEdgels_h
00066 #define __vtkLinkEdgels_h
00067 
00068 #include "vtkStructuredPointsToPolyDataFilter.h"
00069 
00070 class vtkCellArray;
00071 class vtkDataArray;
00072 class vtkFloatArray;
00073 class vtkPoints;
00074 
00075 class VTK_GRAPHICS_EXPORT vtkLinkEdgels : public vtkStructuredPointsToPolyDataFilter
00076 {
00077 public:
00078   vtkTypeRevisionMacro(vtkLinkEdgels,vtkStructuredPointsToPolyDataFilter);
00079   void PrintSelf(ostream& os, vtkIndent indent);
00080 
00084   static vtkLinkEdgels *New();
00085 
00087 
00088   vtkSetMacro(LinkThreshold,float);
00089   vtkGetMacro(LinkThreshold,float);
00091 
00093 
00094   vtkSetMacro(PhiThreshold,float);
00095   vtkGetMacro(PhiThreshold,float);
00097 
00099 
00100   vtkSetMacro(GradientThreshold,float);
00101   vtkGetMacro(GradientThreshold,float);
00103 
00104 protected:
00105   vtkLinkEdgels();
00106   ~vtkLinkEdgels() {};
00107 
00108   void Execute();
00109   void LinkEdgels(int xdim, int ydim,float *image, vtkDataArray *inVectors,
00110                   vtkCellArray *newLines, vtkPoints *newPts,
00111                   vtkFloatArray *outScalars, vtkFloatArray *outVectors,
00112                   int z);
00113   float GradientThreshold;
00114   float PhiThreshold;
00115   float LinkThreshold;
00116 private:
00117   vtkLinkEdgels(const vtkLinkEdgels&);  // Not implemented.
00118   void operator=(const vtkLinkEdgels&);  // Not implemented.
00119 };
00120 
00121 #endif