waterPlan Class Reference

#include <waterplan.h>

Collaboration diagram for waterPlan:

Collaboration graph
[legend]

Public Member Functions

 waterPlan ()
 ~waterPlan ()
float getZ ()
void setPlan (float xMin, float xMax, float yMin, float yMax, float z)
void setTexture (std::string tex, float densite)
void setDeplacementWater (osg::Vec4 depl)
osg::Drawable * createMirrorSurface ()
osg::Drawable * createMirrorSurfaceForTheDam (float x)
osg::Drawable * createSurfaceBehindForTheDam (float x, float dz)
osg::Drawable * getOrCreateDrawable ()
osg::StateSet * createMirrorTexturedState ()
osg::Geode * getOrCreateGeodeWater (osg::StateSet *stateset=NULL)
osg::Geode * createGeodeUnderWater (float x, float dz)

Static Public Member Functions

static ConstructStateCallbackgetStateCallback (osg::Node *node1, osg::Node *node2)

Private Attributes

float xMin
float xMax
float yMin
float yMax
float z
float densite_texture
std::string texture
osg::Vec4 deplacement_texture
osg::Geometry * water_geometry
osg::Geode * water_geode

Detailed Description

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

Definition at line 44 of file waterplan.h.


Constructor & Destructor Documentation

waterPlan::waterPlan (  ) 

Definition at line 201 of file waterplan.cpp.

References densite_texture, deplacement_texture, water_geode, and water_geometry.

waterPlan::~waterPlan (  ) 

Definition at line 210 of file waterplan.cpp.


Member Function Documentation

float waterPlan::getZ (  )  [inline]

Definition at line 62 of file waterplan.h.

References z.

Referenced by createWaterNode().

void waterPlan::setPlan ( float  xMin,
float  xMax,
float  yMin,
float  yMax,
float  z 
)

Definition at line 215 of file waterplan.cpp.

Referenced by initWater().

void waterPlan::setTexture ( std::string  tex,
float  densite 
)

Definition at line 223 of file waterplan.cpp.

References densite_texture, and texture.

Referenced by initWater().

void waterPlan::setDeplacementWater ( osg::Vec4  depl  ) 

Definition at line 229 of file waterplan.cpp.

References deplacement_texture.

Referenced by initWater().

osg::Drawable * waterPlan::createMirrorSurface (  ) 

créé la surface plane

Definition at line 234 of file waterplan.cpp.

References densite_texture, water_geometry, xMax, xMin, yMax, yMin, and z.

Referenced by getOrCreateDrawable(), getOrCreateGeodeWater(), and initWater().

osg::Drawable * waterPlan::createMirrorSurfaceForTheDam ( float  x  ) 

Definition at line 281 of file waterplan.cpp.

References densite_texture, water_geometry, xMax, xMin, yMax, yMin, and z.

Referenced by initWater().

osg::Drawable * waterPlan::createSurfaceBehindForTheDam ( float  x,
float  dz 
)

Definition at line 347 of file waterplan.cpp.

References densite_texture, water_geometry, xMax, xMin, yMax, yMin, and z.

Referenced by createGeodeUnderWater().

osg::Drawable * waterPlan::getOrCreateDrawable (  ) 

Definition at line 411 of file waterplan.cpp.

References createMirrorSurface(), and water_geometry.

Referenced by createWaterNode().

Here is the call graph for this function:

osg::StateSet * waterPlan::createMirrorTexturedState (  ) 

créé la texture (StateSet) pour la surface

Definition at line 419 of file waterplan.cpp.

References texture.

Referenced by createGeodeUnderWater(), createWaterNode(), and initWater().

osg::Geode * waterPlan::getOrCreateGeodeWater ( osg::StateSet *  stateset = NULL  ) 

retourne le geode Water (et le créé si null)

Definition at line 444 of file waterplan.cpp.

References createMirrorSurface(), deplacement_texture, water_geode, and water_geometry.

Referenced by createWaterNode(), and initWater().

Here is the call graph for this function:

osg::Geode * waterPlan::createGeodeUnderWater ( float  x,
float  dz 
)

Definition at line 476 of file waterplan.cpp.

References createMirrorTexturedState(), and createSurfaceBehindForTheDam().

Referenced by initWater().

Here is the call graph for this function:

ConstructStateCallback * waterPlan::getStateCallback ( osg::Node *  node1,
osg::Node *  node2 
) [static]

construit le statesSet avec la texture 3D pour le node

Definition at line 489 of file waterplan.cpp.

Referenced by initWater().


Field Documentation

float waterPlan::xMin [private]

Definition at line 46 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), and createSurfaceBehindForTheDam().

float waterPlan::xMax [private]

Definition at line 46 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), and createSurfaceBehindForTheDam().

float waterPlan::yMin [private]

Definition at line 46 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), and createSurfaceBehindForTheDam().

float waterPlan::yMax [private]

Definition at line 46 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), and createSurfaceBehindForTheDam().

float waterPlan::z [private]

Definition at line 46 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), createSurfaceBehindForTheDam(), and getZ().

float waterPlan::densite_texture [private]

texture

Definition at line 49 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), createSurfaceBehindForTheDam(), setTexture(), and waterPlan().

std::string waterPlan::texture [private]

Definition at line 50 of file waterplan.h.

Referenced by createMirrorTexturedState(), and setTexture().

osg::Vec4 waterPlan::deplacement_texture [private]

deplacement

Definition at line 53 of file waterplan.h.

Referenced by getOrCreateGeodeWater(), setDeplacementWater(), and waterPlan().

osg::Geometry* waterPlan::water_geometry [private]

Definition at line 56 of file waterplan.h.

Referenced by createMirrorSurface(), createMirrorSurfaceForTheDam(), createSurfaceBehindForTheDam(), getOrCreateDrawable(), getOrCreateGeodeWater(), and waterPlan().

osg::Geode* waterPlan::water_geode [private]

Definition at line 57 of file waterplan.h.

Referenced by getOrCreateGeodeWater(), and waterPlan().


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