#include <fogcube.h>
Inheritance diagram for FogCube:
Public Member Functions | |
FogCube () | |
~FogCube () | |
void | setCube (float xmin, float xmax, float ymin, float ymax, float zmin, float zmax) |
void | setNode (osg::Node *node) |
bool | addFog (osg::Node *node) |
void | addStaticFogCoords (osg::Node *node) |
void | addDynamicFogCoords (osg::Node *node) |
osg::Node * | createMultiplesDrawables () |
Private Member Functions | |
bool | isInTheCube (float x, float y, float z) |
Private Attributes | |
float | xmin |
float | xmax |
float | ymin |
float | ymax |
float | zmin |
float | zmax |
osg::Node * | node |
Definition at line 35 of file fogcube.h.
FogCube::FogCube | ( | ) |
Definition at line 27 of file fogcube.cpp.
FogCube::~FogCube | ( | ) |
Definition at line 33 of file fogcube.cpp.
void FogCube::setCube | ( | float | xmin, | |
float | xmax, | |||
float | ymin, | |||
float | ymax, | |||
float | zmin, | |||
float | zmax | |||
) |
initialise le cube
Definition at line 37 of file fogcube.cpp.
References node.
Referenced by Scene3D::creerChutesEtAnim(), and initWater().
void FogCube::setNode | ( | osg::Node * | node | ) |
setter sur le node
bool FogCube::addFog | ( | osg::Node * | node | ) |
ajoute le fog sur un node
Definition at line 152 of file fogcube.cpp.
Referenced by addDynamicFogCoords(), addStaticFogCoords(), Scene3D::creerChutesEtAnim(), and initWater().
void FogCube::addStaticFogCoords | ( | osg::Node * | node | ) |
ajoute le fog static sur un node
Definition at line 53 of file fogcube.cpp.
References addFog(), isInTheCube(), and zmax.
Here is the call graph for this function:
void FogCube::addDynamicFogCoords | ( | osg::Node * | node | ) |
ajoute le fog dynamic sur un node
Definition at line 104 of file fogcube.cpp.
References addFog(), isInTheCube(), and zmax.
Referenced by initWater().
Here is the call graph for this function:
osg::Node * FogCube::createMultiplesDrawables | ( | ) |
Decouper l'objet dans node en sous drawables
Definition at line 164 of file fogcube.cpp.
References node.
bool FogCube::isInTheCube | ( | float | x, | |
float | y, | |||
float | z | |||
) | [private] |
Definition at line 49 of file fogcube.cpp.
References xmin, ymin, zmax, and zmin.
Referenced by addDynamicFogCoords(), and addStaticFogCoords().
float FogCube::xmin [private] |
float FogCube::xmax [private] |
float FogCube::ymin [private] |
float FogCube::ymax [private] |
float FogCube::zmin [private] |
float FogCube::zmax [private] |
Definition at line 39 of file fogcube.h.
Referenced by addDynamicFogCoords(), addStaticFogCoords(), and isInTheCube().
osg::Node* FogCube::node [private] |
le node surlequel appliquer le fog
Definition at line 41 of file fogcube.h.
Referenced by createMultiplesDrawables(), and setCube().