00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkFiniteDifferenceGradientEstimator.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 =========================================================================*/ 00015 00041 #ifndef __vtkFiniteDifferenceGradientEstimator_h 00042 #define __vtkFiniteDifferenceGradientEstimator_h 00043 00044 #include "vtkEncodedGradientEstimator.h" 00045 00046 class VTK_VOLUMERENDERING_EXPORT vtkFiniteDifferenceGradientEstimator : public vtkEncodedGradientEstimator 00047 { 00048 public: 00049 vtkTypeMacro(vtkFiniteDifferenceGradientEstimator,vtkEncodedGradientEstimator); 00050 void PrintSelf( ostream& os, vtkIndent indent ); 00051 00054 static vtkFiniteDifferenceGradientEstimator *New(); 00055 00057 00059 vtkSetMacro( SampleSpacingInVoxels, int ); 00060 vtkGetMacro( SampleSpacingInVoxels, int ); 00062 00063 // The sample spacing between samples taken for the normal estimation 00064 int SampleSpacingInVoxels; 00065 00066 protected: 00067 vtkFiniteDifferenceGradientEstimator(); 00068 ~vtkFiniteDifferenceGradientEstimator(); 00069 00070 00072 void UpdateNormals( void ); 00073 private: 00074 vtkFiniteDifferenceGradientEstimator(const vtkFiniteDifferenceGradientEstimator&); // Not implemented. 00075 void operator=(const vtkFiniteDifferenceGradientEstimator&); // Not implemented. 00076 }; 00077 00078 00079 #endif