VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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
43
class
VTKCOMMONDATAMODEL_EXPORT
vtkPerlinNoise
:
public
vtkImplicitFunction
44
{
45
public
:
46
vtkTypeMacro(
vtkPerlinNoise
,
vtkImplicitFunction
);
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
:
90
vtkPerlinNoise
();
91
~vtkPerlinNoise
() {}
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
Generated on Thu May 24 2012 22:22:10 for VTK by
1.8.1