Filtering/vtkPerlinNoise.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Filtering/vtkPerlinNoise.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPerlinNoise.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00052 #ifndef __vtkPerlinNoise_h
    00053 #define __vtkPerlinNoise_h
    00054
    00055 #include "vtkImplicitFunction.h"
    00056
    00057 class VTK_FILTERING_EXPORT vtkPerlinNoise : public vtkImplicitFunction
    00058 {
    00059 public:
    00060   vtkTypeRevisionMacro(vtkPerlinNoise,vtkImplicitFunction);
    00061   void PrintSelf(ostream& os, vtkIndent indent);
    00062
    00064   static vtkPerlinNoise *New();
    00065
    00067
    00068   float EvaluateFunction(float x[3]);
    00069   float EvaluateFunction(float x, float y, float z)
    00070     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
    00072
    00075   void EvaluateGradient(float x[3], float n[3]);
    00076
    00078
    00081   vtkSetVector3Macro(Frequency,float);
    00082   vtkGetVectorMacro(Frequency,float,3);
    00084
    00086
    00090   vtkSetVector3Macro(Phase,float);
    00091   vtkGetVectorMacro(Phase,float,3);
    00093
    00095
    00097   vtkSetMacro(Amplitude,float);
    00098   vtkGetMacro(Amplitude,float);
    00100
    00101 protected:
    00102   vtkPerlinNoise();
    00103   ~vtkPerlinNoise() {}
    00104
    00105   float Frequency[3];
    00106   float Phase[3];
    00107   float Amplitude;
    00108
    00109 private:
    00110   vtkPerlinNoise(const vtkPerlinNoise&); // Not implemented
    00111   void operator=(const vtkPerlinNoise&); // Not implemented
    00112 };
    00113
    00114 #endif