CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions
osgCloudyDay::CloudLayerState Class Reference

#include <CloudLayerState.h>

List of all members.

Public Member Functions

 CloudLayerState (void)
 ~CloudLayerState (void)
void AddLayer (unsigned int layer, unsigned int type)
std::vector< unsigned int > GetLayers ()
void SetType (unsigned int layer, unsigned int type)
int GetType (unsigned int layer)
void setClot (unsigned int cloud_type, unsigned int clot)
int getClot (unsigned int cloud_type)
void setVariance (unsigned int cloud_type, float v)
float getVariance (unsigned int cloud_type)
void setMeasureOvercast (unsigned int cloud_type, float overcast)
float getMeasureOvercast (unsigned int cloud_type)
void setColor (unsigned int cloud_type, osg::Vec4f v)
osg::Vec4f getColor (unsigned int cloud_type)
void setOvercast (unsigned int cloud_type, float overcast)
float getOvercast (unsigned int cloud_type)
void setHeight (unsigned int cloud_type, float height)
float getHeight (unsigned int cloud_type)
unsigned int GetEstimationOfNumberOfCloudsOfLayer (unsigned int cloud_type)
void setMiddlePoint (unsigned int cloud_type, osg::Vec3 middlepoint)
osg::Vec3 getMiddlePoint (unsigned int cloud_type)
void setSize (unsigned int cloud_type, osg::Vec3 size)
osg::Vec3 getSize (unsigned int cloud_type)
unsigned int getNumClouds (unsigned int cloud_type)
void setNumClouds (unsigned int cloud_type, unsigned int num_clouds)

Detailed Description

States of a 3D cloud layer


Constructor & Destructor Documentation

osgCloudyDay::CloudLayerState::CloudLayerState ( void  )

Constructor

osgCloudyDay::CloudLayerState::~CloudLayerState ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::CloudLayerState::AddLayer ( unsigned int  layer,
unsigned int  type 
)

This method adds a cloud layer

Parameters:
layerlayer id
typetype of the cloud
int osgCloudyDay::CloudLayerState::getClot ( unsigned int  cloud_type)

This method returns the number of clots

Parameters:
layerlayer id
Returns:
number of clots
osg::Vec4f osgCloudyDay::CloudLayerState::getColor ( unsigned int  cloud_type)

This method returns the color of the cloud layer

Parameters:
layerlayer id
Returns:
color of the cloud layer
unsigned int osgCloudyDay::CloudLayerState::GetEstimationOfNumberOfCloudsOfLayer ( unsigned int  cloud_type)

This method sets the height of the cloud layer

Parameters:
layerlayer id
Returns:
number of
float osgCloudyDay::CloudLayerState::getHeight ( unsigned int  cloud_type)

This method returns the height of the cloud layer

Parameters:
layerlayer id
Returns:
height of the cloud layer
std::vector< unsigned int > osgCloudyDay::CloudLayerState::GetLayers ( )

This method returns all cloud layers

Parameters:
layerlayer id
Returns:
all cloud layers
float osgCloudyDay::CloudLayerState::getMeasureOvercast ( unsigned int  cloud_type)

This method returns the measured overcast of the cloud layer

Parameters:
layerlayer id
Returns:
measured overcast of the cloud layer
osg::Vec3 osgCloudyDay::CloudLayerState::getMiddlePoint ( unsigned int  cloud_type)

This method returns the position of the cloud layer

Parameters:
layerlayer id
Returns:
position of the cloud layer
unsigned int osgCloudyDay::CloudLayerState::getNumClouds ( unsigned int  cloud_type)

This method returns the number of clouds

Parameters:
layerlayer id
Returns:
number of clouds
float osgCloudyDay::CloudLayerState::getOvercast ( unsigned int  cloud_type)

This method returns the threshold until clouds are added to a cloud layer

Parameters:
layerlayer id
Returns:
threshold
osg::Vec3 osgCloudyDay::CloudLayerState::getSize ( unsigned int  cloud_type)

This method returns the size of the cloud layer

Parameters:
layerlayer id
Returns:
size of the cloud layer
int osgCloudyDay::CloudLayerState::GetType ( unsigned int  layer)

This method returns the type of the cloud layer

Parameters:
layerlayer id
Returns:
type of the cloud layer
float osgCloudyDay::CloudLayerState::getVariance ( unsigned int  cloud_type)

This method returns the variance of the cloud layer

Parameters:
layerlayer id
Returns:
variance of the cloud layer
void osgCloudyDay::CloudLayerState::setClot ( unsigned int  cloud_type,
unsigned int  clot 
)

This method sets the number of clots of the cloud layer

Parameters:
layerlayer id
clotsnumber of clots
void osgCloudyDay::CloudLayerState::setColor ( unsigned int  cloud_type,
osg::Vec4f  v 
)

This method sets color of the cloud layer

Parameters:
layerlayer id
colorcolor of the cloud layer
void osgCloudyDay::CloudLayerState::setHeight ( unsigned int  cloud_type,
float  height 
)

This method sets the height of the cloud layer

Parameters:
layerlayer id
heightheight of the cloud layer
void osgCloudyDay::CloudLayerState::setMeasureOvercast ( unsigned int  cloud_type,
float  overcast 
)

This method sets the measured overcast of the cloud layer

Parameters:
layerlayer id
overcastmeasured overcast
void osgCloudyDay::CloudLayerState::setMiddlePoint ( unsigned int  cloud_type,
osg::Vec3  middlepoint 
)

This method sets the position of the cloud layer

Parameters:
layerlayer id
middlepointposition of the cloud layer
void osgCloudyDay::CloudLayerState::setNumClouds ( unsigned int  cloud_type,
unsigned int  num_clouds 
)

this method sets the number of clouds

Parameters:
layerlayer id
num_cloudsnumber of clouds
void osgCloudyDay::CloudLayerState::setOvercast ( unsigned int  cloud_type,
float  overcast 
)

This method sets a threshold. We add clouds until the measured overcast is below the threshold.

Parameters:
layerlayer id
overcasttheshold
void osgCloudyDay::CloudLayerState::setSize ( unsigned int  cloud_type,
osg::Vec3  size 
)

this method sets the size of the cloud layer

Parameters:
layerlayer id
sizesize of the cloud layer
void osgCloudyDay::CloudLayerState::SetType ( unsigned int  layer,
unsigned int  type 
)

This method sets the type of the cloud layer

Parameters:
layerlayer id
typetype of the cloud
void osgCloudyDay::CloudLayerState::setVariance ( unsigned int  cloud_type,
float  v 
)

This method sets the variance of the cloud clots

Parameters:
layerlayer id
variancevariance of the clots

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