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

dox/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 =========================================================================*/
00054 #ifndef __vtkLinkEdgels_h
00055 #define __vtkLinkEdgels_h
00056 
00057 #include "vtkStructuredPointsToPolyDataFilter.h"
00058 
00059 class vtkCellArray;
00060 class vtkDataArray;
00061 class vtkFloatArray;
00062 class vtkPoints;
00063 
00064 class VTK_GRAPHICS_EXPORT vtkLinkEdgels : public vtkStructuredPointsToPolyDataFilter
00065 {
00066 public:
00067   vtkTypeRevisionMacro(vtkLinkEdgels,vtkStructuredPointsToPolyDataFilter);
00068   void PrintSelf(ostream& os, vtkIndent indent);
00069 
00073   static vtkLinkEdgels *New();
00074 
00076 
00077   vtkSetMacro(LinkThreshold,float);
00078   vtkGetMacro(LinkThreshold,float);
00080 
00082 
00083   vtkSetMacro(PhiThreshold,float);
00084   vtkGetMacro(PhiThreshold,float);
00086 
00088 
00089   vtkSetMacro(GradientThreshold,float);
00090   vtkGetMacro(GradientThreshold,float);
00092 
00093 protected:
00094   vtkLinkEdgels();
00095   ~vtkLinkEdgels() {};
00096 
00097   void Execute();
00098   void LinkEdgels(int xdim, int ydim,float *image, vtkDataArray *inVectors,
00099                   vtkCellArray *newLines, vtkPoints *newPts,
00100                   vtkFloatArray *outScalars, vtkFloatArray *outVectors,
00101                   int z);
00102   float GradientThreshold;
00103   float PhiThreshold;
00104   float LinkThreshold;
00105 private:
00106   vtkLinkEdgels(const vtkLinkEdgels&);  // Not implemented.
00107   void operator=(const vtkLinkEdgels&);  // Not implemented.
00108 };
00109 
00110 #endif