Blender
V4.3
source
blender
freestyle
intern
system
PseudoNoise.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
#include "
Precision.h
"
13
14
#ifdef WITH_CXX_GUARDEDALLOC
15
# include "
MEM_guardedalloc.h
"
16
#endif
17
18
namespace
Freestyle
{
19
20
class
PseudoNoise
{
21
public
:
22
virtual
~PseudoNoise
() {}
23
24
real
smoothNoise
(
real
x);
25
real
linearNoise
(
real
x);
26
27
real
turbulenceSmooth
(
real
x,
uint
nbOctave = 8);
28
real
turbulenceLinear
(
real
x,
uint
nbOctave = 8);
29
30
static
void
init
(
long
seed
);
31
32
protected
:
33
static
const
uint
NB_VALUE_NOISE
= 512;
34
static
real
_values
[
NB_VALUE_NOISE
];
35
36
#ifdef WITH_CXX_GUARDEDALLOC
37
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:PseudoNoise"
)
38
#endif
39
};
40
41
}
/* namespace Freestyle */
uint
unsigned int uint
Definition
BLI_sys_types.h:68
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Precision.h
Define the float precision used in the program.
init
void init()
seed
static unsigned long seed
Definition
btSoftBody.h:39
Freestyle::PseudoNoise
Definition
PseudoNoise.h:20
Freestyle::PseudoNoise::turbulenceLinear
real turbulenceLinear(real x, uint nbOctave=8)
Definition
PseudoNoise.cpp:95
Freestyle::PseudoNoise::smoothNoise
real smoothNoise(real x)
Definition
PseudoNoise.cpp:60
Freestyle::PseudoNoise::linearNoise
real linearNoise(real x)
Definition
PseudoNoise.cpp:40
Freestyle::PseudoNoise::_values
static real _values[NB_VALUE_NOISE]
Definition
PseudoNoise.h:34
Freestyle::PseudoNoise::~PseudoNoise
virtual ~PseudoNoise()
Definition
PseudoNoise.h:22
Freestyle::PseudoNoise::NB_VALUE_NOISE
static const uint NB_VALUE_NOISE
Definition
PseudoNoise.h:33
Freestyle::PseudoNoise::turbulenceSmooth
real turbulenceSmooth(real x, uint nbOctave=8)
Definition
PseudoNoise.cpp:84
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Freestyle::real
double real
Definition
Precision.h:14
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0