VTK
vtkPerlinNoise.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPerlinNoise.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
37 #ifndef vtkPerlinNoise_h
38 #define vtkPerlinNoise_h
39 
40 #include "vtkCommonDataModelModule.h" // For export macro
41 #include "vtkImplicitFunction.h"
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  static vtkPerlinNoise *New();
51 
53 
54  double EvaluateFunction(double x[3]);
55  double EvaluateFunction(double x, double y, double z)
56  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
58 
61  void EvaluateGradient(double x[3], double n[3]);
62 
64 
67  vtkSetVector3Macro(Frequency,double);
68  vtkGetVectorMacro(Frequency,double,3);
70 
72 
76  vtkSetVector3Macro(Phase,double);
77  vtkGetVectorMacro(Phase,double,3);
79 
81 
85  vtkSetMacro(Amplitude,double);
86  vtkGetMacro(Amplitude,double);
88 
89 protected:
92 
93  double Frequency[3];
94  double Phase[3];
95  double Amplitude;
96 
97 private:
98  vtkPerlinNoise(const vtkPerlinNoise&); // Not implemented
99  void operator=(const vtkPerlinNoise&); // Not implemented
100 };
101 
102 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:38
double EvaluateFunction(double x, double y, double z)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
an implicit function that implements Perlin noise
#define VTKCOMMONDATAMODEL_EXPORT