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

vtkPerlinNoise.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPerlinNoise.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 =========================================================================*/
00049 #ifndef __vtkPerlinNoise_h
00050 #define __vtkPerlinNoise_h
00051 
00052 #include "vtkImplicitFunction.h"
00053 
00054 class VTK_FILTERING_EXPORT vtkPerlinNoise : public vtkImplicitFunction
00055 {
00056 public:
00057   vtkTypeRevisionMacro(vtkPerlinNoise,vtkImplicitFunction);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061   static vtkPerlinNoise *New();
00062 
00064 
00065   double EvaluateFunction(double x[3]);
00066   double EvaluateFunction(double x, double y, double z)
00067     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00069 
00072   void EvaluateGradient(double x[3], double n[3]);
00073 
00075 
00078   vtkSetVector3Macro(Frequency,double);
00079   vtkGetVectorMacro(Frequency,double,3);
00081 
00083 
00087   vtkSetVector3Macro(Phase,double);
00088   vtkGetVectorMacro(Phase,double,3);
00090 
00092 
00094   vtkSetMacro(Amplitude,double);
00095   vtkGetMacro(Amplitude,double);
00097 
00098 protected:
00099   vtkPerlinNoise();
00100   ~vtkPerlinNoise() {}
00101 
00102   double Frequency[3];
00103   double Phase[3];
00104   double Amplitude;
00105 
00106 private:
00107   vtkPerlinNoise(const vtkPerlinNoise&); // Not implemented
00108   void operator=(const vtkPerlinNoise&); // Not implemented
00109 };
00110 
00111 #endif