VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
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
42
class
VTK_FILTERING_EXPORT
vtkPerlinNoise
:
public
vtkImplicitFunction
43
{
44
public
:
45
vtkTypeMacro(
vtkPerlinNoise
,
vtkImplicitFunction
);
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
:
89
vtkPerlinNoise
();
90
~vtkPerlinNoise
() {}
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
Generated on Sun Sep 9 2012 13:03:28 for VTK by
1.8.1.2