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

#include <WangCloud.h>

List of all members.

Public Member Functions

 WangCloud (void)
 WangCloud (int category)
 WangCloud (int category, osg::ref_ptr< osg::Vec3Array > vertices, osg::ref_ptr< osg::Vec4Array > rotation, osg::ref_ptr< osg::Vec4Array > center, osg::ref_ptr< osg::Vec4Array > ids, osg::ref_ptr< osg::Vec4Array > boxcenters, osg::ref_ptr< osg::Vec3Array > ambientlight_h, osg::ref_ptr< osg::Vec3Array > ambientlight_t, osg::ref_ptr< osg::Vec3Array > diffuselight, osg::ref_ptr< osg::Vec4Array > color)
 ~WangCloud (void)
int GetNumberOfParticles ()
void GetBoundingBox ()
osg::Vec3 BoundingBoxMax ()
osg::Vec3 BoundingBoxMin ()
void Setup ()
osg::Vec3Array * GetVertices ()
osg::Vec4Array * GetRotation ()
osg::Vec4Array * GetColor ()
osg::Vec4Array * GetCenter ()
osg::Vec4Array * GetIds ()
osg::Vec4Array * GetBoxCenters ()
int & GetNumberOfIndices ()
void SetCloudGenerator (CloudGenerator *generator)
CloudGeneratorGetCloudGenerator ()

Protected Attributes

CloudGeneratorm_generator
int num_indices
osg::ref_ptr< osg::Vec3Array > vertices
osg::ref_ptr< osg::Vec4Array > rotation
osg::ref_ptr< osg::Vec4Array > center
osg::ref_ptr< osg::Vec4Array > ids
osg::ref_ptr< osg::Vec4Array > box_centers
osg::ref_ptr< osg::Vec4Array > color
osg::Vec3 bb_min
osg::Vec3 bb_max
unsigned int m_type

Detailed Description

Container class (like vertices, texture coordantes and so on) for 3D clouds


Constructor & Destructor Documentation

osgCloudyDay::WangCloud::WangCloud ( void  )

Standardconstructor

osgCloudyDay::WangCloud::WangCloud ( int  category)

Standardconstructor

Parameters:
categorytype of cloud
osgCloudyDay::WangCloud::WangCloud ( int  category,
osg::ref_ptr< osg::Vec3Array >  vertices,
osg::ref_ptr< osg::Vec4Array >  rotation,
osg::ref_ptr< osg::Vec4Array >  center,
osg::ref_ptr< osg::Vec4Array >  ids,
osg::ref_ptr< osg::Vec4Array >  boxcenters,
osg::ref_ptr< osg::Vec3Array >  ambientlight_h,
osg::ref_ptr< osg::Vec3Array >  ambientlight_t,
osg::ref_ptr< osg::Vec3Array >  diffuselight,
osg::ref_ptr< osg::Vec4Array >  color 
)

Standardconstructor

Parameters:
categorytype of cloud
verticesvertices array of the cloud
rotationrotation array of the cloud
centercenter of the cloud
boxcentersboxcenters of the cloud
ambientlight_hambientlight_h of the cloud
ambientlight_tambientlight_t of the cloud
diffuselightdiffuselight of the cloud
colorcolor of the cloud
osgCloudyDay::WangCloud::~WangCloud ( void  )

Standarddeconstructor


Member Function Documentation

osg::Vec3 osgCloudyDay::WangCloud::BoundingBoxMax ( )

Returns the Maximum position of the bounding box

Returns:
maximum
osg::Vec3 osgCloudyDay::WangCloud::BoundingBoxMin ( )

Returns the minima position of the bounding box

Returns:
maxima
void osgCloudyDay::WangCloud::GetBoundingBox ( )

Calculates the BoundingBox

osg::Vec4Array * osgCloudyDay::WangCloud::GetBoxCenters ( )

Returns the boxcenters array of the cloud

Returns:
box centers
osg::Vec4Array * osgCloudyDay::WangCloud::GetCenter ( )

Returns the center array of the cloud

Returns:
center array
osgCloudyDay::CloudGenerator * osgCloudyDay::WangCloud::GetCloudGenerator ( )

Method returns the cloud geneator

Returns:
cloud generator
osg::Vec4Array * osgCloudyDay::WangCloud::GetColor ( )

Returns the color array of the cloud

Returns:
color array
osg::Vec4Array * osgCloudyDay::WangCloud::GetIds ( )

Returns the texture ides array of the cloud

Returns:
texture ids
int & osgCloudyDay::WangCloud::GetNumberOfIndices ( )

Returns the number of vertices of the cloud

Returns:
number of vertices
int osgCloudyDay::WangCloud::GetNumberOfParticles ( )

Returns the number of particles

Returns:
number of particles
osg::Vec4Array * osgCloudyDay::WangCloud::GetRotation ( )

Returns the rotation array of the cloud

Returns:
rotation array
osg::Vec3Array * osgCloudyDay::WangCloud::GetVertices ( )

Returns the vertices array of the cloud

Returns:
vertices array
void osgCloudyDay::WangCloud::SetCloudGenerator ( osgCloudyDay::CloudGenerator generator)

Method sets the cloud generator

Parameters:
cloudgenerator
void osgCloudyDay::WangCloud::Setup ( )

Set textures and other states


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