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

#include <TerrainConfig.h>

List of all members.

Public Member Functions

 TerrainConfig (void)
 ~TerrainConfig (void)
void SetPath2File (std::string path)
std::string GetPath2File ()
void SetPath2DiffuseTexture (std::string path)
std::string GetPath2DiffuseTexture ()
void SetPath2DefinationTexture (std::string path)
std::string GetPath2DefinationTexture ()
void SetPath2HeightTexture (std::string path)
std::string GetPath2HeightTexture ()
int GetNumberOfTexture ()
void AddPath2Texture (std::string path)
std::string GetPathAt (int at)
int GetNumberOfNormalTexture ()
void AddPath2NormalTexture (std::string path)
std::string GetNormalPathAt (int at)
bool UseTesselationShader ()
void SetTesselationShader (bool value)

Protected Attributes

bool m_use_geometry_shader
std::string m_path2file
std::string m_diffuse_texture
std::string m_heightmap
std::string m_defination
std::vector< std::string > m_textures
std::vector< std::string > m_textures_normal

Detailed Description

Class to configure the terrain


Constructor & Destructor Documentation

osgCloudyDay::TerrainConfig::TerrainConfig ( void  )

Constructor

osgCloudyDay::TerrainConfig::~TerrainConfig ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::TerrainConfig::AddPath2NormalTexture ( std::string  path)

Method to add a normal texture path to the normal texture

void osgCloudyDay::TerrainConfig::AddPath2Texture ( std::string  path)

Method to add a texture path to the texture

std::string osgCloudyDay::TerrainConfig::GetNormalPathAt ( int  at)

Method returns the path to a normal texture

Parameters:
attexture id
Returns:
path to the normal texture
int osgCloudyDay::TerrainConfig::GetNumberOfNormalTexture ( )

Returns the number of normal textures

Returns:
number of normal textures
int osgCloudyDay::TerrainConfig::GetNumberOfTexture ( )

Returns the number of textures

Returns:
number of textures
std::string osgCloudyDay::TerrainConfig::GetPath2DefinationTexture ( )

Returns the path to the definition texture

Returns:
path to the definition texture
std::string osgCloudyDay::TerrainConfig::GetPath2DiffuseTexture ( )

Returns the path to the diffuse texture

Returns:
path to the diffuse texture
std::string osgCloudyDay::TerrainConfig::GetPath2File ( )

Returns the path to the 3D model

Returns:
path to the 3D model
std::string osgCloudyDay::TerrainConfig::GetPath2HeightTexture ( )

Returns the path to the height texture

Returns:
path to the height texture
std::string osgCloudyDay::TerrainConfig::GetPathAt ( int  at)

Method returns the path to a texture

Parameters:
attexture id
Returns:
path to the texture
void osgCloudyDay::TerrainConfig::SetPath2DefinationTexture ( std::string  path)

Set the path to the definition texture

Parameters:
pathto definition texture
void osgCloudyDay::TerrainConfig::SetPath2DiffuseTexture ( std::string  path)

Set the path to the diffuse texture

Parameters:
pathto diffuse texture
void osgCloudyDay::TerrainConfig::SetPath2File ( std::string  path)

Set the path to the 3D model

Parameters:
pathto 3D model
void osgCloudyDay::TerrainConfig::SetPath2HeightTexture ( std::string  path)

Set the path to the height texture

Parameters:
pathto height texture
void osgCloudyDay::TerrainConfig::SetTesselationShader ( bool  value)

Method sets, if the tesselation shader should be used

Parameters:
valuetesselation shader? yes/no
bool osgCloudyDay::TerrainConfig::UseTesselationShader ( )

Returns, if the tesselation shader should be used

Returns:
tesselation shader? yes/no

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