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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00050 #ifndef __vtkLinkEdgels_h
00051 #define __vtkLinkEdgels_h
00052 
00053 #include "vtkStructuredPointsToPolyDataFilter.h"
00054 
00055 class vtkCellArray;
00056 class vtkDataArray;
00057 class vtkDoubleArray;
00058 class vtkPoints;
00059 
00060 class VTK_GRAPHICS_EXPORT vtkLinkEdgels : public vtkStructuredPointsToPolyDataFilter
00061 {
00062 public:
00063   vtkTypeRevisionMacro(vtkLinkEdgels,vtkStructuredPointsToPolyDataFilter);
00064   void PrintSelf(ostream& os, vtkIndent indent);
00065 
00069   static vtkLinkEdgels *New();
00070 
00072 
00073   vtkSetMacro(LinkThreshold,double);
00074   vtkGetMacro(LinkThreshold,double);
00076 
00078 
00079   vtkSetMacro(PhiThreshold,double);
00080   vtkGetMacro(PhiThreshold,double);
00082 
00084 
00085   vtkSetMacro(GradientThreshold,double);
00086   vtkGetMacro(GradientThreshold,double);
00088 
00089 protected:
00090   vtkLinkEdgels();
00091   ~vtkLinkEdgels() {};
00092 
00093   void Execute();
00094   void LinkEdgels(int xdim, int ydim,double *image, vtkDataArray *inVectors,
00095                   vtkCellArray *newLines, vtkPoints *newPts,
00096                   vtkDoubleArray *outScalars, vtkDoubleArray *outVectors,
00097                   int z);
00098   double GradientThreshold;
00099   double PhiThreshold;
00100   double LinkThreshold;
00101 private:
00102   vtkLinkEdgels(const vtkLinkEdgels&);  // Not implemented.
00103   void operator=(const vtkLinkEdgels&);  // Not implemented.
00104 };
00105 
00106 #endif