From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNL3D_1_1CNoiseColorGradient.html | 235 +++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CNoiseColorGradient.html (limited to 'docs/doxygen/nel/classNL3D_1_1CNoiseColorGradient.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CNoiseColorGradient.html b/docs/doxygen/nel/classNL3D_1_1CNoiseColorGradient.html new file mode 100644 index 00000000..62fd2df9 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CNoiseColorGradient.html @@ -0,0 +1,235 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CNoiseColorGradient Class Reference

A noisy color generator. +More... +

+#include <noise_value.h> +

+List of all members. + + + + + + + + +

Public Methods

void eval (const CVector &posInWorld, NLMISC::CRGBAF &result) const
 Use NoiseValue to compute a PerlinNoise E [0..1], and peek in Gradients, with linear interpolation. More...

void serial (NLMISC::IStream &f)

Public Attributes

CNoiseValue NoiseValue
 Abs and Rand should be 0 and 1 here. If not, some colors may not be generated... More...

std::vector< NLMISC::CRGBAFGradients
+


Detailed Description

+A noisy color generator. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 89 of file noise_value.h.


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CNoiseColorGradient::eval const CVector &   posInWorld,
NLMISC::CRGBAF  result
const
+
+ + + + + +
+   + + +

+Use NoiseValue to compute a PerlinNoise E [0..1], and peek in Gradients, with linear interpolation. +

+result unmodified if no colors. If only one color, copied into result. Warning! Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd(). +

+Definition at line 309 of file noise_value.cpp. +

+References NLMISC::clamp, Gradients, id, NoiseValue, and NL3D::OptFastFloor.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CNoiseColorGradient::serial NLMISC::IStream  f
+
+ + + + + +
+   + + +

+ +

+Definition at line 337 of file noise_value.cpp. +

+References Gradients, and NoiseValue.

+


Member Data Documentation

+

+ + + + +
+ + +
std::vector<NLMISC::CRGBAF> NL3D::CNoiseColorGradient::Gradients +
+
+ + + + + +
+   + + +

+ +

+Definition at line 94 of file noise_value.h. +

+Referenced by eval, and serial.

+

+ + + + +
+ + +
CNoiseValue NL3D::CNoiseColorGradient::NoiseValue +
+
+ + + + + +
+   + + +

+Abs and Rand should be 0 and 1 here. If not, some colors may not be generated... +

+ +

+Definition at line 93 of file noise_value.h. +

+Referenced by eval, and serial.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1