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