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

dox/Graphics/vtkSubPixelPositionEdgels.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSubPixelPositionEdgels.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 =========================================================================*/ 00043 #ifndef __vtkSubPixelPositionEdgels_h 00044 #define __vtkSubPixelPositionEdgels_h 00045 00046 #include "vtkPolyDataToPolyDataFilter.h" 00047 00048 class vtkStructuredPoints; 00049 class vtkDataArray; 00050 00051 class VTK_GRAPHICS_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataToPolyDataFilter 00052 { 00053 public: 00054 static vtkSubPixelPositionEdgels *New(); 00055 vtkTypeRevisionMacro(vtkSubPixelPositionEdgels,vtkPolyDataToPolyDataFilter); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00059 00060 void SetGradMaps(vtkStructuredPoints *gm); 00061 vtkStructuredPoints *GetGradMaps(); 00063 00065 00067 vtkSetMacro(TargetFlag, int); 00068 vtkGetMacro(TargetFlag, int); 00069 vtkBooleanMacro(TargetFlag, int); 00070 vtkSetMacro(TargetValue, float); 00071 vtkGetMacro(TargetValue, float); 00073 00074 protected: 00075 vtkSubPixelPositionEdgels(); 00076 ~vtkSubPixelPositionEdgels(); 00077 00078 // Usual data generation method 00079 void Execute(); 00080 void Move(int xdim, int ydim, int zdim, int x, int y, 00081 float *img, vtkDataArray *inVecs, 00082 float *result, int z, float *aspect, float *resultNormal); 00083 // extension for target instead of maximum 00084 int TargetFlag; 00085 float TargetValue; 00086 private: 00087 vtkSubPixelPositionEdgels(const vtkSubPixelPositionEdgels&); // Not implemented. 00088 void operator=(const vtkSubPixelPositionEdgels&); // Not implemented. 00089 }; 00090 00091 #endif