![]() |
VR-Forces Developer's Guide
|
2) Define the next frame class. This will be used for write access.

Protected Member Functions | |
| bool | thermoclineLayer (unsigned int index, DtVrfSubsurfaceLayer &layer) const |
| bool | removeThermoclineLayer (unsigned int index, DtVrfSubsurfaceLayer &layer) |
| void | setThermoclineLayerByIndex (DtVrfSubsurfaceLayer layer, unsigned int index) |
Protected Attributes | |
| tbb::spin_rw_mutex | myMutex |
Protected Attributes inherited from DtStateComponentNextFrameTemplate< DtSubsurfaceStateComponent, DtSubsurfaceStateComponentData > | |
| DtSubsurfaceStateComponentData | myData |
|
inline |
Constructs a next-frame state component backed by the given state data storage.
| sd | Pointer to the shared state data storage. |
|
inlineoverridevirtual |
Destructor.
| makVrf::DtSubsurfaceStateComponentNextFrame::NEXTFRAME_ACCESSOR_MUTATOR | ( | double | , |
| underwaterVisibility | , | ||
| UnderwaterVisibility | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::NEXTFRAME_ACCESSOR_BY_REF_MUTATOR | ( | DtVrfSubsurfaceLayerSet | , |
| subsurfaceLayers | , | ||
| SubsurfaceLayers | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::NEXTFRAME_ACCESSOR_MUTATOR | ( | double | , |
| ambientWaterTemperature | , | ||
| AmbientWaterTemperature | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::NEXTFRAME_ACCESSOR_MUTATOR | ( | int | , |
| priority | , | ||
| Priority | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 1 | , |
| depth | , | ||
| Depth | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 1 | , |
| thickness | , | ||
| Thickness | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 1 | , |
| permeability | , | ||
| Permeability | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 2 | , |
| depth | , | ||
| Depth | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 2 | , |
| thickness | , | ||
| Thickness | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 2 | , |
| permeability | , | ||
| Permeability | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 3 | , |
| depth | , | ||
| Depth | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 3 | , |
| thickness | , | ||
| Thickness | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 3 | , |
| permeability | , | ||
| Permeability | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 4 | , |
| depth | , | ||
| Depth | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 4 | , |
| thickness | , | ||
| Thickness | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 4 | , |
| permeability | , | ||
| Permeability | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 5 | , |
| depth | , | ||
| Depth | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 5 | , |
| thickness | , | ||
| Thickness | |||
| ) |
| makVrf::DtSubsurfaceStateComponentNextFrame::THERMOCLINE_SETTER_GETTER | ( | 5 | , |
| permeability | , | ||
| Permeability | |||
| ) |
|
overridevirtual |
Adds a subsurface layer to the next-frame state, replacing any existing layer with the same priority. Thread-safe via internal mutex.
| layerToAdd | The layer to add. |
|
overridevirtual |
Removes the specified subsurface layer from the next-frame state. Thread-safe via internal mutex.
| layerToAdd | The layer to remove. |
|
protected |
Retrieves the thermocline layer at the given 0-based priority index.
| index | 0-based priority index of the layer to retrieve. |
| layer | Output parameter populated with the found layer. |
|
protected |
Removes the thermocline layer at the given 0-based priority index.
| index | 0-based priority index of the layer to remove. |
| layer | Output parameter populated with the removed layer. |
|
protected |
Replaces (or inserts) the thermocline layer for the given 0-based priority index.
| layer | The layer data to set. |
| index | 0-based priority index to assign to the layer. |
|
mutableprotected |
Read-write mutex protecting concurrent access to next-frame state data.