Blender V2.61 - r43446
Public Member Functions | Public Attributes

WTURBULENCE Class Reference

#include <WTURBULENCE.h>

List of all members.

Public Member Functions

 WTURBULENCE (int xResSm, int yResSm, int zResSm, int amplify, int noisetype)
virtual ~WTURBULENCE ()
 destructor
void setNoise (int type)
void initBlenderRNA (float *strength)
void stepTurbulenceReadable (float dt, float *xvel, float *yvel, float *zvel, unsigned char *obstacles)
void stepTurbulenceFull (float dt, float *xvel, float *yvel, float *zvel, unsigned char *obstacles)
void advectTextureCoordinates (float dtOrg, float *xvel, float *yvel, float *zvel, float *tempBig1, float *tempBig2)
void resetTextureCoordinates (float *_eigMin, float *_eigMax)
void computeEnergy (float *energy, float *xvel, float *yvel, float *zvel, unsigned char *obstacles)
Vec3 WVelocity (Vec3 p)
Vec3 WVelocityWithJacobian (Vec3 p, float *xUnwarped, float *yUnwarped, float *zUnwarped)
float * getDensityBig ()
float * getArrayTcU ()
float * getArrayTcV ()
float * getArrayTcW ()
Vec3Int getResSm ()
Vec3Int getResBig ()
int getOctaves ()
void computeEigenvalues (float *_eigMin, float *_eigMax)
void decomposeEnergy (float *energy, float *_highFreqEnergy)

Public Attributes

float * _strength
int _amplify
int _octaves
float _cullingThreshold
int _xResBig
int _yResBig
int _zResBig
Vec3Int _resBig
Vec3 _invResBig
int _totalCellsBig
int _slabSizeBig
int _xResSm
int _yResSm
int _zResSm
Vec3Int _resSm
Vec3 _invResSm
int _totalCellsSm
int _slabSizeSm
float * _densityBig
float * _densityBigOld
float * _tcU
float * _tcV
float * _tcW
float * _tcTemp
float * _noiseTile
int _totalStepsBig

Detailed Description

Main WTURBULENCE class, stores large density array etc.

Definition at line 35 of file WTURBULENCE.h.


Constructor & Destructor Documentation

WTURBULENCE::WTURBULENCE ( int  xResSm,
int  yResSm,
int  zResSm,
int  amplify,
int  noisetype 
)
WTURBULENCE::~WTURBULENCE ( ) [virtual]

destructor

Definition at line 134 of file WTURBULENCE.cpp.

References _densityBig, _densityBigOld, _noiseTile, _tcTemp, _tcU, _tcV, and _tcW.


Member Function Documentation

void WTURBULENCE::advectTextureCoordinates ( float  dtOrg,
float *  xvel,
float *  yvel,
float *  zvel,
float *  tempBig1,
float *  tempBig2 
)
void WTURBULENCE::computeEigenvalues ( float *  _eigMin,
float *  _eigMax 
)
void WTURBULENCE::computeEnergy ( float *  energy,
float *  xvel,
float *  yvel,
float *  zvel,
unsigned char *  obstacles 
)
void WTURBULENCE::decomposeEnergy ( float *  energy,
float *  _highFreqEnergy 
)
float* WTURBULENCE::getArrayTcU ( ) [inline]

Definition at line 66 of file WTURBULENCE.h.

float* WTURBULENCE::getArrayTcV ( ) [inline]

Definition at line 67 of file WTURBULENCE.h.

float* WTURBULENCE::getArrayTcW ( ) [inline]

Definition at line 68 of file WTURBULENCE.h.

float* WTURBULENCE::getDensityBig ( ) [inline]

Definition at line 65 of file WTURBULENCE.h.

Referenced by smoke_dissolve_wavelet(), and smoke_turbulence_get_density().

int WTURBULENCE::getOctaves ( ) [inline]

Definition at line 72 of file WTURBULENCE.h.

Vec3Int WTURBULENCE::getResBig ( ) [inline]

Definition at line 71 of file WTURBULENCE.h.

Referenced by smoke_dissolve_wavelet(), and smoke_turbulence_get_res().

Vec3Int WTURBULENCE::getResSm ( ) [inline]

Definition at line 70 of file WTURBULENCE.h.

void WTURBULENCE::initBlenderRNA ( float *  strength)

Definition at line 175 of file WTURBULENCE.cpp.

References _strength.

Referenced by smoke_initWaveletBlenderRNA().

void WTURBULENCE::resetTextureCoordinates ( float *  _eigMin,
float *  _eigMax 
)

Definition at line 367 of file WTURBULENCE.cpp.

References _resSm, _slabSizeSm, _tcU, _tcV, _tcW, _xResSm, _yResSm, and _zResSm.

Referenced by stepTurbulenceFull().

void WTURBULENCE::setNoise ( int  type)

Definition at line 153 of file WTURBULENCE.cpp.

References _noiseTile, and generateTile_WAVELET().

Referenced by smoke_turbulence_set_noise(), and WTURBULENCE().

void WTURBULENCE::stepTurbulenceFull ( float  dt,
float *  xvel,
float *  yvel,
float *  zvel,
unsigned char *  obstacles 
)
void WTURBULENCE::stepTurbulenceReadable ( float  dt,
float *  xvel,
float *  yvel,
float *  zvel,
unsigned char *  obstacles 
)
Vec3 WTURBULENCE::WVelocity ( Vec3  p)

Definition at line 515 of file WTURBULENCE.cpp.

References _noiseTile, NOISE_TILE_SIZE, WNoiseDx(), WNoiseDy(), and WNoiseDz().

Vec3 WTURBULENCE::WVelocityWithJacobian ( Vec3  p,
float *  xUnwarped,
float *  yUnwarped,
float *  zUnwarped 
)

Definition at line 541 of file WTURBULENCE.cpp.

References _noiseTile, NOISE_TILE_SIZE, WNoiseDx(), WNoiseDy(), and WNoiseDz().

Referenced by stepTurbulenceFull().


Member Data Documentation

Definition at line 80 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 84 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 100 of file WTURBULENCE.h.

Referenced by WTURBULENCE().

Definition at line 108 of file WTURBULENCE.h.

Referenced by WTURBULENCE().

Definition at line 122 of file WTURBULENCE.h.

Referenced by setNoise(), WTURBULENCE(), WVelocity(), WVelocityWithJacobian(), and ~WTURBULENCE().

Definition at line 81 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 99 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 102 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 75 of file WTURBULENCE.h.

Referenced by initBlenderRNA(), and stepTurbulenceFull().

Definition at line 101 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 109 of file WTURBULENCE.h.

Referenced by computeEnergy(), stepTurbulenceFull(), and WTURBULENCE().

Definition at line 126 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 96 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().

Definition at line 97 of file WTURBULENCE.h.

Referenced by WTURBULENCE().

Definition at line 98 of file WTURBULENCE.h.

Referenced by stepTurbulenceFull(), and WTURBULENCE().


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