List of all members.
Public Member Functions |
| | CelluarAutomataGenerator (unsigned int width, unsigned int depth, unsigned int height, int type, osg::Vec4 color) |
| | ~CelluarAutomataGenerator (void) |
| void | Perform (void) |
| void | Update (void) |
| | CloudGenerator (osg::Vec4 density) |
| virtual | ~CloudGenerator (void)=0 |
| WangCloud * | Create () |
| WangCloud * | Create (osg::Vec3 middlepoint) |
| void | DecideInsideOutside () |
| void | AddCloudBox (int box_iter, osg::Vec3 origin, osg::Vec3 sizes, osg::Vec3 cloud_size, osg::Vec3 jitter_sizes, bool buttom, float s, osg::Vec4 min_max_scale, osg::Vec4 density=osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)) |
| void | AddCloudBox (CloudCreateVolume *volume, int box_iter, osg::Vec3 origin, osg::Vec3 sizes, osg::Vec3 cloud_size, osg::Vec3 jitter_sizes, bool buttom, osg::Vec4 density=osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)) |
| void | EliminateRedudantSprites () |
| void | AddBox (osg::ref_ptr< osg::Vec3Array > box_triangles, osg::Vec3 posHelper, osg::Vec3 size) |
Protected Attributes |
|
int | m_type |
|
osg::ref_ptr< osg::Vec3Array > | dBoxes_vertices |
|
std::vector< unsigned short > | dBoxes_indices |
|
osg::ref_ptr< osg::Geometry > | dBoxes_geometry |
|
int | m_category |
|
osg::Vec3 | m_middlepoint |
|
osg::Vec4 | m_density |
Constructor & Destructor Documentation
| osgCloudyDay::CelluarAutomataGenerator::CelluarAutomataGenerator |
( |
unsigned int |
width, |
|
|
unsigned int |
depth, |
|
|
unsigned int |
height, |
|
|
int |
type, |
|
|
osg::Vec4 |
color |
|
) |
| |
Constructor
- Parameters:
-
| width | width of the simulation space |
| depth | depth of the simulation space |
| height | height of the simulation space |
| type | cloud type |
| color | color of the cloud |
| osgCloudyDay::CelluarAutomataGenerator::~CelluarAutomataGenerator |
( |
void |
| ) |
|
Member Function Documentation
| void osgCloudyDay::CelluarAutomataGenerator::AddEllipsoide |
( |
osg::Vec3 |
radius, |
|
|
osg::Vec3 |
position, |
|
|
float |
lifetime |
|
) |
| |
|
protected |
Method adds an ellipsoid
- Parameters:
-
| radius | radius of th ellipsoid |
| position | position of the ellipsoid |
| lifetime | lifetime of the ellipsoid |
| float osgCloudyDay::CelluarAutomataGenerator::GetCellDensity |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
protected |
Returns the density of a cell
- Parameters:
-
| i | x-coordinate of the cell |
| j | y-coordinate of the cell |
| k | z-coordinate of the cell |
- Returns:
- density value
| float osgCloudyDay::CelluarAutomataGenerator::GetPointDensity |
( |
osg::Vec3 |
Point | ) |
|
|
protected |
Returns the point density of the cloud at a specific position
- Parameters:
-
| Point | position of the cloud |
- Returns:
- density value
| void osgCloudyDay::CelluarAutomataGenerator::Initialize |
( |
| ) |
|
|
protectedvirtual |
| void osgCloudyDay::CelluarAutomataGenerator::Perform |
( |
void |
| ) |
|
Method simulates the cloud
| void osgCloudyDay::CelluarAutomataGenerator::Update |
( |
void |
| ) |
|
Method sets the cloud to render it
The documentation for this class was generated from the following files: