HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Noise Class Reference

#include <UT_Noise.h>

+ Inheritance diagram for UT_Noise:

Public Types

enum  UT_NoiseType { FAST, SPARSE, FAST_FIX, ALLIGATOR }
 

Public Member Functions

 UT_Noise (unsigned seed=0, UT_NoiseType type=FAST)
 
 ~UT_Noise ()
 
void setType (UT_NoiseType type=FAST)
 
void setSeed (unsigned seed=0)
 
void initialize (unsigned seed, UT_NoiseType type)
 
UT_NoiseType getType () const
 
int getSeed () const
 
fpreal turbulence (const UT_Vector3F &pos, unsigned fractalDepth, fpreal rough=0.5, fpreal atten=1.0) const
 
void turbulence (const UT_Vector3 &pos, unsigned fractalDepth, UT_Vector3 &noise, fpreal rough=0.5, fpreal atten=1.0) const
 
void turbulence (const UT_Vector3D &pos, unsigned fractalDepth, UT_Vector3D &noise, fpreal rough=0.5, fpreal atten=1.0) const
 
const voidgetTextureData (int tex_index, int &xsize, int &ysize, int &comps, bool &fp) const
 

Detailed Description

Definition at line 28 of file UT_Noise.h.

Member Enumeration Documentation

Enumerator
FAST 
SPARSE 
FAST_FIX 
ALLIGATOR 

Definition at line 33 of file UT_Noise.h.

Constructor & Destructor Documentation

UT_Noise::UT_Noise ( unsigned  seed = 0,
UT_NoiseType  type = FAST 
)
explicit
UT_Noise::~UT_Noise ( )

Member Function Documentation

int UT_Noise::getSeed ( ) const
inline

Definition at line 64 of file UT_Noise.h.

const void* UT_Noise::getTextureData ( int  tex_index,
int xsize,
int ysize,
int comps,
bool &  fp 
) const
UT_NoiseType UT_Noise::getType ( void  ) const
inline

Definition at line 63 of file UT_Noise.h.

void UT_Noise::initialize ( unsigned  seed,
UT_NoiseType  type 
)
inline

Definition at line 48 of file UT_Noise.h.

void UT_Noise::setSeed ( unsigned  seed = 0)
void UT_Noise::setType ( UT_NoiseType  type = FAST)
fpreal UT_Noise::turbulence ( const UT_Vector3F pos,
unsigned  fractalDepth,
fpreal  rough = 0.5,
fpreal  atten = 1.0 
) const
void UT_Noise::turbulence ( const UT_Vector3 pos,
unsigned  fractalDepth,
UT_Vector3 noise,
fpreal  rough = 0.5,
fpreal  atten = 1.0 
) const
void UT_Noise::turbulence ( const UT_Vector3D pos,
unsigned  fractalDepth,
UT_Vector3D noise,
fpreal  rough = 0.5,
fpreal  atten = 1.0 
) const

The documentation for this class was generated from the following file: