CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Protected Attributes
osgCloudyDay::MyTerrain Class Reference

#include <Terrain.h>

Inheritance diagram for osgCloudyDay::MyTerrain:
osgCloudyDay::TerrainGeometry osgCloudyDay::TerrainHimmel osgCloudyDay::TerrainMIE

List of all members.

Public Member Functions

 MyTerrain (TerrainConfig *config)
 ~MyTerrain (void)
virtual void Initialize ()=0
osg::MatrixTransform * GetNode ()
osg::MatrixTransform * GetLightNode ()
void SetFog (Fog *fog)
osg::ref_ptr< osg::Texture2D > GetHeightTexture ()
osg::ref_ptr< osg::Texture2D > GetDefinitionTexture ()
osg::ref_ptr< osg::Texture2D > GetOrthogonalTexture ()

Protected Attributes

Fogm_fog
osg::ref_ptr< osg::Texture2D > tex_height
osg::ref_ptr< osg::Texture2D > tex_def
osg::ref_ptr< osg::Texture2D > tex_ortho
TerrainConfigm_config
osg::ref_ptr< osg::Program > terrainShadowProg
osg::ref_ptr< osg::Program > mieTerrainProg
osg::ref_ptr
< osg::MatrixTransform > 
trans
osg::ref_ptr
< osg::MatrixTransform > 
trans_light
bool m_use_geometry_shader

Detailed Description

Parent class to create a terrain.


Constructor & Destructor Documentation

osgCloudyDay::MyTerrain::MyTerrain ( TerrainConfig config)

Constructor

Parameters:
configconfiguration of the terrain
osgCloudyDay::MyTerrain::~MyTerrain ( void  )

Deconstructor


Member Function Documentation

osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetDefinitionTexture ( )

Returns the definition texture of the terrain

Returns:
node
osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetHeightTexture ( )

Returns the height texture of the terrain

Returns:
node
osg::MatrixTransform * osgCloudyDay::MyTerrain::GetLightNode ( )

Returns the node to integrate it into the light source camera

Returns:
node
osg::MatrixTransform * osgCloudyDay::MyTerrain::GetNode ( )

Returns the node to integrate it into the viewer camera

Returns:
node
osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetOrthogonalTexture ( )

Returns the orthogonal texture of the terrain

Returns:
node
virtual void osgCloudyDay::MyTerrain::Initialize ( )
pure virtual

Initalize method, creates the terrain

Implemented in osgCloudyDay::TerrainHimmel, osgCloudyDay::TerrainGeometry, and osgCloudyDay::TerrainMIE.

void osgCloudyDay::MyTerrain::SetFog ( Fog fog)

Set function for fog

Parameters:
Fogclass, which saves the fog.

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