#include <WangCloud.h>
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) |
| CloudGenerator * | GetCloudGenerator () |
Protected Attributes | |
| CloudGenerator * | m_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 |
Container class (like vertices, texture coordantes and so on) for 3D clouds
| osgCloudyDay::WangCloud::WangCloud | ( | void | ) |
Standardconstructor
| osgCloudyDay::WangCloud::WangCloud | ( | int | category | ) |
Standardconstructor
| category | type 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
| category | type of cloud |
| vertices | vertices array of the cloud |
| rotation | rotation array of the cloud |
| center | center of the cloud |
| boxcenters | boxcenters of the cloud |
| ambientlight_h | ambientlight_h of the cloud |
| ambientlight_t | ambientlight_t of the cloud |
| diffuselight | diffuselight of the cloud |
| color | color of the cloud |
| osgCloudyDay::WangCloud::~WangCloud | ( | void | ) |
Standarddeconstructor
| osg::Vec3 osgCloudyDay::WangCloud::BoundingBoxMax | ( | ) |
Returns the Maximum position of the bounding box
| osg::Vec3 osgCloudyDay::WangCloud::BoundingBoxMin | ( | ) |
Returns the minima position of the bounding box
| void osgCloudyDay::WangCloud::GetBoundingBox | ( | ) |
Calculates the BoundingBox
| osg::Vec4Array * osgCloudyDay::WangCloud::GetBoxCenters | ( | ) |
Returns the boxcenters array of the cloud
| osg::Vec4Array * osgCloudyDay::WangCloud::GetCenter | ( | ) |
Returns the center array of the cloud
| osgCloudyDay::CloudGenerator * osgCloudyDay::WangCloud::GetCloudGenerator | ( | ) |
Method returns the cloud geneator
| osg::Vec4Array * osgCloudyDay::WangCloud::GetColor | ( | ) |
Returns the color array of the cloud
| osg::Vec4Array * osgCloudyDay::WangCloud::GetIds | ( | ) |
Returns the texture ides array of the cloud
| int & osgCloudyDay::WangCloud::GetNumberOfIndices | ( | ) |
Returns the number of vertices of the cloud
| int osgCloudyDay::WangCloud::GetNumberOfParticles | ( | ) |
Returns the number of particles
| osg::Vec4Array * osgCloudyDay::WangCloud::GetRotation | ( | ) |
Returns the rotation array of the cloud
| osg::Vec3Array * osgCloudyDay::WangCloud::GetVertices | ( | ) |
Returns the vertices array of the cloud
| void osgCloudyDay::WangCloud::SetCloudGenerator | ( | osgCloudyDay::CloudGenerator * | generator | ) |
Method sets the cloud generator
| cloud | generator |
| void osgCloudyDay::WangCloud::Setup | ( | ) |
Set textures and other states
1.8.1.1