FogCube Class Reference

#include <fogcube.h>

Inheritance diagram for FogCube:

Inheritance graph
[legend]
Collaboration diagram for FogCube:

Collaboration graph
[legend]

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

Detailed Description

Author:
MiTcX <m.i.t.c.h@free.fr>

Definition at line 35 of file fogcube.h.


Constructor & Destructor Documentation

FogCube::FogCube (  ) 

Definition at line 27 of file fogcube.cpp.

FogCube::~FogCube (  ) 

Definition at line 33 of file fogcube.cpp.


Member Function Documentation

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().


Field Documentation

float FogCube::xmin [private]

le cube

Definition at line 39 of file fogcube.h.

Referenced by isInTheCube().

float FogCube::xmax [private]

Definition at line 39 of file fogcube.h.

float FogCube::ymin [private]

Definition at line 39 of file fogcube.h.

Referenced by isInTheCube().

float FogCube::ymax [private]

Definition at line 39 of file fogcube.h.

float FogCube::zmin [private]

Definition at line 39 of file fogcube.h.

Referenced by isInTheCube().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 5 16:57:15 2007 for Anidam by  doxygen 1.5.1