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 "vtkImplicitFunction.h"
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49  static vtkPerlinNoise *New();
50 
52 
53  double EvaluateFunction(double x[3]);
54  double EvaluateFunction(double x, double y, double z)
55  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
57 
60  void EvaluateGradient(double x[3], double n[3]);
61 
63 
66  vtkSetVector3Macro(Frequency,double);
67  vtkGetVectorMacro(Frequency,double,3);
69 
71 
75  vtkSetVector3Macro(Phase,double);
76  vtkGetVectorMacro(Phase,double,3);
78 
80 
84  vtkSetMacro(Amplitude,double);
85  vtkGetMacro(Amplitude,double);
87 
88 protected:
91 
92  double Frequency[3];
93  double Phase[3];
94  double Amplitude;
95 
96 private:
97  vtkPerlinNoise(const vtkPerlinNoise&); // Not implemented
98  void operator=(const vtkPerlinNoise&); // Not implemented
99 };
100 
101 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
#define VTK_FILTERING_EXPORT
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:37
double EvaluateFunction(double x, double y, double z)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
an implicit function that implements Perlin noise