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

#include <Cloud2DState.h>

Inheritance diagram for osgCloudyDay::Cloud2DState:
osgCloudyDay::AltStratusCloudState osgCloudyDay::CirrusCloudState osgCloudyDay::CirrusCumulusCloudState osgCloudyDay::CirrusStratusCloudState osgCloudyDay::PerlinCloudState

List of all members.

Public Types

enum  Cloud2D_Type {
  C2DT_Perlin, C2DT_Cirrus, C2DT_CirrusStratus, C2DT_CirrusCumulus,
  C2DT_AltStratus
}

Public Member Functions

 Cloud2DState (int cat)
 ~Cloud2DState (void)
osg::Vec3 getMiddlePoint ()
void setMiddlePoint (osg::Vec3 middlepoint)
osg::Vec2 getSize ()
void setSize (osg::Vec2 size)
int GetCategory ()

Protected Attributes

osg::Vec3 m_middlepoint
osg::Vec2 m_size
int m_type

Detailed Description

Class to configure a 2D cloud


Constructor & Destructor Documentation

osgCloudyDay::Cloud2DState::Cloud2DState ( int  cat)

Constructor to create a new 2D cloud

Parameters:
catcatogory of 2D cloud
osgCloudyDay::Cloud2DState::~Cloud2DState ( void  )

Deconstructor


Member Function Documentation

int osgCloudyDay::Cloud2DState::GetCategory ( )

Returns the category of the 2D cloud

Returns:
category of the 2D cloud
osg::Vec3 osgCloudyDay::Cloud2DState::getMiddlePoint ( )

Returns the positon of the 2D cloud

Returns:
position of the 2D cloud
osg::Vec2 osgCloudyDay::Cloud2DState::getSize ( )

Returns the size of the 2D cloud

Returns:
size of the 2D cloud
void osgCloudyDay::Cloud2DState::setMiddlePoint ( osg::Vec3  middlepoint)

Set the position of the 2D cloud

Parameters:
middlepointposition of the cloud
void osgCloudyDay::Cloud2DState::setSize ( osg::Vec2  size)

Set the positsizeion of the 2D cloud

Parameters:
sizesize of the cloud

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