Public Types | Public Member Functions | Public Attributes | Private Attributes
osgOceanScene Class Reference

#include <osgOceanScene.h>

List of all members.

Public Types

enum  SCENE_TYPE { CLEAR, DUSK, CLOUDY }

Public Member Functions

osg::Node * addObject (osg::Transform *transform, std::string filename, Object *o=NULL)
void addObject (osg::Transform *transform)
void build (double offsetp[3], double offsetr[3], const osg::Vec2f &windDirection, float windSpeed, float depth, float reflectionDamping, float waveScale, bool isChoppy, float choppyFactor, float crestFoamHeight, bool useVBO, const std::string &terrain_shader_basename)
void changeScene (SCENE_TYPE type)
osg::Light * getLight ()
osgOcean::OceanScene * getOceanScene ()
osgOcean::OceanScene::EventHandler * getOceanSceneEventHandler ()
osgOcean::OceanTechnique * getOceanSurface (void)
osg::Group * getScene (void)
osg::Vec4f intColor (unsigned r, unsigned g, unsigned b, unsigned a=255)
osg::ref_ptr< osg::TextureCubeMap > loadCubeMapTextures (const std::string &dir)
osg::Node * loadIslands (const std::string &terrain_shader_basename)
 osgOceanScene (double offsetp[3], double offsetr[3], const osg::Vec2f &windDirection=osg::Vec2f(1.0f, 1.0f), float windSpeed=12.f, float depth=10000.f, float reflectionDamping=0.35f, float scale=1e-8, bool isChoppy=true, float choppyFactor=-2.5f, float crestFoamHeight=2.2f, bool useVBO=false, const std::string &terrain_shader_basename="terrain")
osg::Geode * sunDebug (const osg::Vec3f &position)

Public Attributes

osg::ref_ptr
< osg::MatrixTransform > 
localizedWorld

Private Attributes

osg::ref_ptr< osg::TextureCubeMap > _cubemap
std::vector< std::string > _cubemapDirs
osg::ref_ptr
< osgOcean::FFTOceanTechnique > 
_FFToceanSurface
std::vector< osg::Vec4f > _fogColors
osg::ref_ptr< osg::Switch > _islandSwitch
osg::ref_ptr< osg::Light > _light
std::vector< osg::Vec4f > _lightColors
osg::ref_ptr< osgText::Text > _modeText
osg::ref_ptr
< osgOcean::OceanScene > 
_oceanScene
osg::ref_ptr< osg::Group > _scene
SCENE_TYPE _sceneType
osg::ref_ptr< SkyDome_skyDome
std::vector< osg::Vec4f > _sunDiffuse
std::vector< osg::Vec3f > _sunPositions
std::vector< osg::Vec3f > _underwaterAttenuations
std::vector< osg::Vec4f > _underwaterDiffuse
bool _useVBO
std::vector< osg::Vec4f > _waterFogColors

Detailed Description

Definition at line 39 of file osgOceanScene.h.


Member Enumeration Documentation

Enumerator:
CLEAR 
DUSK 
CLOUDY 

Definition at line 42 of file osgOceanScene.h.


Constructor & Destructor Documentation

osgOceanScene::osgOceanScene ( double  offsetp[3],
double  offsetr[3],
const osg::Vec2f &  windDirection = osg::Vec2f(1.0f, 1.0f),
float  windSpeed = 12.f,
float  depth = 10000.f,
float  reflectionDamping = 0.35f,
float  scale = 1e-8,
bool  isChoppy = true,
float  choppyFactor = -2.5f,
float  crestFoamHeight = 2.2f,
bool  useVBO = false,
const std::string &  terrain_shader_basename = "terrain" 
)

Definition at line 61 of file osgOceanScene.cpp.


Member Function Documentation

osg::Node * osgOceanScene::addObject ( osg::Transform *  transform,
std::string  filename,
Object *  o = NULL 
)

Definition at line 390 of file osgOceanScene.cpp.

void osgOceanScene::addObject ( osg::Transform *  transform)

Definition at line 456 of file osgOceanScene.cpp.

void osgOceanScene::build ( double  offsetp[3],
double  offsetr[3],
const osg::Vec2f &  windDirection,
float  windSpeed,
float  depth,
float  reflectionDamping,
float  waveScale,
bool  isChoppy,
float  choppyFactor,
float  crestFoamHeight,
bool  useVBO,
const std::string &  terrain_shader_basename 
)

Definition at line 104 of file osgOceanScene.cpp.

Definition at line 261 of file osgOceanScene.cpp.

osg::Light* osgOceanScene::getLight ( ) [inline]

Definition at line 122 of file osgOceanScene.h.

osgOcean::OceanScene* osgOceanScene::getOceanScene ( ) [inline]

Definition at line 117 of file osgOceanScene.h.

osgOcean::OceanScene::EventHandler* osgOceanScene::getOceanSceneEventHandler ( ) [inline]

Definition at line 102 of file osgOceanScene.h.

osgOcean::OceanTechnique* osgOceanScene::getOceanSurface ( void  ) [inline]

Definition at line 107 of file osgOceanScene.h.

osg::Group* osgOceanScene::getScene ( void  ) [inline]

Definition at line 112 of file osgOceanScene.h.

osg::Vec4f osgOceanScene::intColor ( unsigned  r,
unsigned  g,
unsigned  b,
unsigned  a = 255 
) [inline]

Definition at line 96 of file osgOceanScene.h.

osg::ref_ptr< osg::TextureCubeMap > osgOceanScene::loadCubeMapTextures ( const std::string &  dir)

Definition at line 343 of file osgOceanScene.cpp.

osg::Node * osgOceanScene::loadIslands ( const std::string &  terrain_shader_basename)

Definition at line 303 of file osgOceanScene.cpp.

osg::Geode * osgOceanScene::sunDebug ( const osg::Vec3f &  position)

Definition at line 379 of file osgOceanScene.cpp.


Member Data Documentation

osg::ref_ptr<osg::TextureCubeMap> osgOceanScene::_cubemap [private]

Definition at line 57 of file osgOceanScene.h.

std::vector<std::string> osgOceanScene::_cubemapDirs [private]

Definition at line 60 of file osgOceanScene.h.

osg::ref_ptr<osgOcean::FFTOceanTechnique> osgOceanScene::_FFToceanSurface [private]

Definition at line 56 of file osgOceanScene.h.

std::vector<osg::Vec4f> osgOceanScene::_fogColors [private]

Definition at line 62 of file osgOceanScene.h.

osg::ref_ptr<osg::Switch> osgOceanScene::_islandSwitch [private]

Definition at line 72 of file osgOceanScene.h.

osg::ref_ptr<osg::Light> osgOceanScene::_light [private]

Definition at line 66 of file osgOceanScene.h.

std::vector<osg::Vec4f> osgOceanScene::_lightColors [private]

Definition at line 61 of file osgOceanScene.h.

osg::ref_ptr<osgText::Text> osgOceanScene::_modeText [private]

Definition at line 52 of file osgOceanScene.h.

osg::ref_ptr<osgOcean::OceanScene> osgOceanScene::_oceanScene [private]

Definition at line 55 of file osgOceanScene.h.

osg::ref_ptr<osg::Group> osgOceanScene::_scene [private]

Definition at line 53 of file osgOceanScene.h.

Definition at line 49 of file osgOceanScene.h.

osg::ref_ptr<SkyDome> osgOceanScene::_skyDome [private]

Definition at line 58 of file osgOceanScene.h.

std::vector<osg::Vec4f> osgOceanScene::_sunDiffuse [private]

Definition at line 69 of file osgOceanScene.h.

std::vector<osg::Vec3f> osgOceanScene::_sunPositions [private]

Definition at line 68 of file osgOceanScene.h.

std::vector<osg::Vec3f> osgOceanScene::_underwaterAttenuations [private]

Definition at line 63 of file osgOceanScene.h.

std::vector<osg::Vec4f> osgOceanScene::_underwaterDiffuse [private]

Definition at line 64 of file osgOceanScene.h.

bool osgOceanScene::_useVBO [private]

Definition at line 50 of file osgOceanScene.h.

std::vector<osg::Vec4f> osgOceanScene::_waterFogColors [private]

Definition at line 70 of file osgOceanScene.h.

osg::ref_ptr<osg::MatrixTransform> osgOceanScene::localizedWorld

Definition at line 46 of file osgOceanScene.h.


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


uwsim
Author(s): Mario Prats
autogenerated on Mon Oct 6 2014 08:24:07