VTK
dox/VolumeRendering/vtkFiniteDifferenceGradientEstimator.h
Go to the documentation of this file.
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 
00073   void UpdateNormals( void );
00074 private:
00075   vtkFiniteDifferenceGradientEstimator(const vtkFiniteDifferenceGradientEstimator&);  // Not implemented.
00076   void operator=(const vtkFiniteDifferenceGradientEstimator&);  // Not implemented.
00077 }; 
00079 
00080 
00081 #endif