![]() |
VR-Forces 4.10 Class Documentation
|
an object used to represent 1 patch of a patchy ground fog system. More...
Classes | |
| struct | Cell |
| a cell in the voxel grid More... | |
| struct | SortJobData |
| a structure to hold data for a sorting job More... | |
Public Member Functions | |
| DtGroundFogPatch () | |
| CTOR. More... | |
| virtual | ~DtGroundFogPatch () |
| DTOR. More... | |
| virtual void | init (int gridSize, float patchSize) |
| Initialize the patch. More... | |
| virtual void | draw (osg::RenderInfo &renderInfo) const |
| Issues the drawing command for the patch. More... | |
| virtual void | updateAlphaFade (double time) |
| Updates alpha fade based on time. More... | |
| virtual void | cullUpdate (const osg::Vec3d &camPos, DtJobSplitter *jobSplitter) |
| Prepares the patch for drawing bsed on the camera position. More... | |
| virtual void | setTransform (const osg::Vec3d &position) |
| Sets the transform for the patch. More... | |
| virtual const osg::Vec3d & | position () const |
| Returns the position of the patch transform. More... | |
| virtual const float * | skeleton () const |
| Returns the skeletal grid used to bend the patch mesh. More... | |
| virtual void | getBonePosition (int boneIndex, float patchSize, osg::Vec3d &position) |
| Gets a skeletal grid bone position. More... | |
| virtual void | setBoneHeight (int boneIndex, float height) |
| Sets a skeletal grid bone height. More... | |
| virtual void | setDesiredAlphaFade (float value) |
| Sets the desired alpha fade to blend to over time. More... | |
| virtual void | setAlphaFade (float value) |
| Sets the alpha fade parameter used for lod. More... | |
| virtual float | alphaFade () const |
| Returns the alpha fade parameter used for lod. More... | |
| virtual void | SetCulled (bool culled) |
| Sets the culled state for this patch. More... | |
| virtual bool | culled () const |
| Returns the culled state for this patch. More... | |
| virtual void | setBoneHeightExtents (float min, float max) |
| Sets the computed minimum maximum bone offsets. More... | |
| virtual void | getBoneHeightExtents (float &min, float &max) |
| Gets the computed minimum maximum bone offsets. More... | |
| virtual void | computeBoneHeightExtents () |
| Computes the minimum maximum bone offsets. More... | |
| virtual void | runSort (const osg::Vec3 &localCamPos) |
| Sorts cells for the current view. More... | |
Public Attributes | |
| int | mySortDepth |
Protected Member Functions | |
| virtual void | computeSortDepth (const osg::Vec3 &camPos) |
| Computes the sort depth for all cells. More... | |
| virtual void | fillSortedIndices () |
| Fills the indice buffer with sorted indices. More... | |
Protected Attributes | |
| unsigned short | myIndiceCount |
| unsigned short * | myIndices |
| Cell * | myCells |
| int | myCellCount |
| osg::Vec3d | myPosition |
| double | myLastTime |
| float | myAlphaFade |
| float | myAlphaFadeDesired |
| bool | myCulled |
| float | myBoneHeightMin |
| float | myBoneHeightMax |
| float | mySkeleton [9] |
| SortJobData | mySortJobData |
| DtJobSplitterJob | mySortJob |
Private Member Functions | |
| DtGroundFogPatch (const DtGroundFogPatch &other) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtGroundFogPatch & | operator= (const DtGroundFogPatch &other) |
| Assignment Operator not implemented - Assignment not allowed. More... | |
| void | freeData (void) |
| frees resources (used in destructor) More... | |
Static Private Member Functions | |
| static int | theSortBackToFront (const void *arg0, const void *arg1) |
| sort function used for qsorting cells More... | |
| static void | theSortJob (void *data) |
| sort job function used as a callback for job splitting More... | |
an object used to represent 1 patch of a patchy ground fog system.
The patch is made up of cells in a 2d grid. The grid can optionally use a skelatal structure to clamp and bend in order to follow the ground. Each grid cell represents a volume division and is rendered using a particle. Note that sandstorms also make use of color patchy ground fog.
| makVrv::DtGroundFogPatch::DtGroundFogPatch | ( | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Initialize the patch.
| gridSize | The number of cells in 1 row of the patch. |
| patchSize | The world space size of 1 row of the patch. |
|
virtual |
Issues the drawing command for the patch.
|
virtual |
Updates alpha fade based on time.
| time | The current simulation time. |
|
virtual |
Prepares the patch for drawing bsed on the camera position.
| camPos | The camera position in fog system space. |
| jobSplitter | A job splitter to add predraw jobs to. |
|
virtual |
Sets the transform for the patch.
| position | The transform position in fog system space. |
|
virtual |
Returns the position of the patch transform.
|
virtual |
Returns the skeletal grid used to bend the patch mesh.
|
virtual |
Gets a skeletal grid bone position.
| boneIndex | The index of the bone to get the position for. |
| patchSize | The world space size of 1 row of the patch. |
| position | The filled out position. |
|
virtual |
Sets a skeletal grid bone height.
| boneIndex | The index of the bone to set the height for. |
| height | The height to set. |
|
virtual |
Sets the desired alpha fade to blend to over time.
| value | The alpha value to set in the (0-1) range. |
|
virtual |
Sets the alpha fade parameter used for lod.
| value | The alpha value to set in the (0-1) range. |
|
virtual |
Returns the alpha fade parameter used for lod.
|
virtual |
Sets the culled state for this patch.
| culled | If true, the object is culled. |
|
virtual |
Returns the culled state for this patch.
|
virtual |
Sets the computed minimum maximum bone offsets.
| min | The minimum offset value. |
| max | The maximum offset value. |
|
virtual |
Gets the computed minimum maximum bone offsets.
| min | The minimum offset value. |
| max | The maximum offset value. |
|
virtual |
Computes the minimum maximum bone offsets.
|
virtual |
Sorts cells for the current view.
Fills indice buffer.
| localCamPos | The local camera position. |
|
protectedvirtual |
Computes the sort depth for all cells.
| campPos | The camera position in local patch space. |
|
protectedvirtual |
Fills the indice buffer with sorted indices.
|
private |
frees resources (used in destructor)
|
staticprivate |
sort function used for qsorting cells
|
staticprivate |
sort job function used as a callback for job splitting
| int makVrv::DtGroundFogPatch::mySortDepth |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |