VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSubPixelPositionEdgels.h 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 "vtkFiltersGeneralModule.h" // For export macro 00043 #include "vtkPolyDataAlgorithm.h" 00044 00045 class vtkStructuredPoints; 00046 class vtkDataArray; 00047 00048 class VTKFILTERSGENERAL_EXPORT vtkSubPixelPositionEdgels : public vtkPolyDataAlgorithm 00049 { 00050 public: 00051 static vtkSubPixelPositionEdgels *New(); 00052 vtkTypeMacro(vtkSubPixelPositionEdgels,vtkPolyDataAlgorithm); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 00057 void SetGradMapsData(vtkStructuredPoints *gm); 00058 vtkStructuredPoints *GetGradMaps(); 00060 00062 00064 vtkSetMacro(TargetFlag, int); 00065 vtkGetMacro(TargetFlag, int); 00066 vtkBooleanMacro(TargetFlag, int); 00067 vtkSetMacro(TargetValue, double); 00068 vtkGetMacro(TargetValue, double); 00070 00071 protected: 00072 vtkSubPixelPositionEdgels(); 00073 ~vtkSubPixelPositionEdgels(); 00074 00075 // Usual data generation method 00076 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00077 virtual int FillInputPortInformation(int port, vtkInformation *info); 00078 00079 void Move(int xdim, int ydim, int zdim, int x, int y, 00080 float *img, vtkDataArray *inVecs, 00081 double *result, int z, double *aspect, double *resultNormal); 00082 void Move(int xdim, int ydim, int zdim, int x, int y, 00083 double *img, vtkDataArray *inVecs, 00084 double *result, int z, double *aspect, double *resultNormal); 00085 // extension for target instead of maximum 00086 int TargetFlag; 00087 double TargetValue; 00088 private: 00089 vtkSubPixelPositionEdgels(const vtkSubPixelPositionEdgels&); // Not implemented. 00090 void operator=(const vtkSubPixelPositionEdgels&); // Not implemented. 00091 }; 00092 00093 #endif