#include <osg/Node>
#include <osg/Geometry>
#include <osg/Notify>
#include <osg/Texture3D>
#include <osg/TexGen>
#include <osg/Geode>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgProducer/Viewer>
#include <osg/PositionAttitudeTransform>
#include <osg/Texture2D>
#include <osg/ShapeDrawable>
#include <osgText/Text>
#include <osg/MatrixTransform>
#include <osg/Transform>
#include <osg/Material>
#include <osgFX/BumpMapping>
#include <osg/TexGenNode>
#include <osg/Group>
#include <osg/StateSet>
#include <osg/TextureCubeMap>
#include <osg/TexEnvCombine>
#include <osg/Stencil>
#include <osg/ColorMask>
#include <osg/Depth>
#include <osg/ClipNode>
#include <osg/AnimationPath>
#include <osg/BlendFunc>
#include <osgDB/FileUtils>
#include <osgUtil/ReflectionMapGenerator>
#include <osgUtil/HighlightMapGenerator>
#include <osgUtil/HalfWayMapGenerator>
#include <osgUtil/Optimizer>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include <osgGA/DriveManipulator>
#include <osg/Fog>
#include <osg/PolygonOffset>
#include <osg/PolygonMode>
#include <osg/LineStipple>
#include <iostream>
#include <string>
#include <vector>
#include <osgUtil/Tesselator>
#include <osg/AlphaFunc>
#include <osgUtil/IntersectVisitor>
#include <osgUtil/SmoothingVisitor>
#include "fogcube.h"
#include "waterplan.h"
Include dependency graph for waterdyn3d.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | PATH_DATA "./data/" |
Functions | |
osg::StateSet * | createMirrorTexturedState (const std::string &filename) |
osg::Node * | createWaterNode (osg::Node *scene, waterPlan *water1) |
osg::Node * | createWaterNodeWithoutMirror (osg::Node *scene, osg::Geode *mirrors) |
osg::Geode * | createTerrain (const osg::Vec3 &origin, const osg::Vec3 &size) |
osg::Node * | createScene2 () |
osg::Group * | initWater (osg::ref_ptr< osg::Group > scene, osgProducer::Viewer *viewer, osg::Node *terrain, bool isfog) |
#define PATH_DATA "./data/" |
Definition at line 93 of file waterdyn3d.h.
osg::StateSet* createMirrorTexturedState | ( | const std::string & | filename | ) |
osg::Node* createScene2 | ( | ) |
osg::Geode* createTerrain | ( | const osg::Vec3 & | origin, | |
const osg::Vec3 & | size | |||
) |
osg::Node* createWaterNode | ( | osg::Node * | scene, | |
waterPlan * | water1 | |||
) |
Definition at line 148 of file waterdyn3d.cpp.
References waterPlan::createMirrorTexturedState(), waterPlan::getOrCreateDrawable(), waterPlan::getOrCreateGeodeWater(), and waterPlan::getZ().
Referenced by initWater().
Here is the call graph for this function:
osg::Node* createWaterNodeWithoutMirror | ( | osg::Node * | scene, | |
osg::Geode * | mirrors | |||
) |
Definition at line 370 of file waterdyn3d.cpp.
References createMirrorTexturedState().
Referenced by initWater().
Here is the call graph for this function:
osg::Group* initWater | ( | osg::ref_ptr< osg::Group > | scene, | |
osgProducer::Viewer * | viewer, | |||
osg::Node * | terrain, | |||
bool | isfog | |||
) |
Definition at line 413 of file waterdyn3d.cpp.
References FogCube::addDynamicFogCoords(), FogCube::addFog(), clip_object_with_box(), waterPlan::createGeodeUnderWater(), waterPlan::createMirrorSurface(), waterPlan::createMirrorSurfaceForTheDam(), waterPlan::createMirrorTexturedState(), createWaterNode(), createWaterNodeWithoutMirror(), waterPlan::getOrCreateGeodeWater(), waterPlan::getStateCallback(), pat_dam, quaternion, findNodeVisitor::results, FogCube::setCube(), waterPlan::setDeplacementWater(), waterPlan::setPlan(), findNodeVisitor::setSearchName(), and waterPlan::setTexture().
Referenced by Scene3D::createScene().
Here is the call graph for this function: