# 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: