VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtSubsurfaceStateComponentNextFrame Class Reference

2) Define the next frame class. This will be used for write access.

Inheritance diagram for makVrf::DtSubsurfaceStateComponentNextFrame:
Inheritance graph
[legend]

Public Member Functions

 DtSubsurfaceStateComponentNextFrame (DtStateData *sd)
 
virtual ~DtSubsurfaceStateComponentNextFrame () override
 
 NEXTFRAME_ACCESSOR_MUTATOR (double, underwaterVisibility, UnderwaterVisibility)
 
 NEXTFRAME_ACCESSOR_BY_REF_MUTATOR (DtVrfSubsurfaceLayerSet, subsurfaceLayers, SubsurfaceLayers)
 
 NEXTFRAME_ACCESSOR_MUTATOR (double, ambientWaterTemperature, AmbientWaterTemperature)
 
 NEXTFRAME_ACCESSOR_MUTATOR (int, priority, Priority)
 
 THERMOCLINE_SETTER_GETTER (1, depth, Depth)
 
 THERMOCLINE_SETTER_GETTER (1, thickness, Thickness)
 
 THERMOCLINE_SETTER_GETTER (1, permeability, Permeability)
 
 THERMOCLINE_SETTER_GETTER (2, depth, Depth)
 
 THERMOCLINE_SETTER_GETTER (2, thickness, Thickness)
 
 THERMOCLINE_SETTER_GETTER (2, permeability, Permeability)
 
 THERMOCLINE_SETTER_GETTER (3, depth, Depth)
 
 THERMOCLINE_SETTER_GETTER (3, thickness, Thickness)
 
 THERMOCLINE_SETTER_GETTER (3, permeability, Permeability)
 
 THERMOCLINE_SETTER_GETTER (4, depth, Depth)
 
 THERMOCLINE_SETTER_GETTER (4, thickness, Thickness)
 
 THERMOCLINE_SETTER_GETTER (4, permeability, Permeability)
 
 THERMOCLINE_SETTER_GETTER (5, depth, Depth)
 
 THERMOCLINE_SETTER_GETTER (5, thickness, Thickness)
 
 THERMOCLINE_SETTER_GETTER (5, permeability, Permeability)
 
virtual void addSubsurfaceLayer (const DtVrfSubsurfaceLayer &layerToAdd) override
 
virtual void removeSubsurfaceLayer (const DtVrfSubsurfaceLayer &layerToAdd) override
 
- Public Member Functions inherited from DtStateComponentNextFrameTemplate< DtSubsurfaceStateComponent, DtSubsurfaceStateComponentData >
 DtStateComponentNextFrameTemplate (makVrf::DtStateData *sd)
 
const
DtSubsurfaceStateComponentData & 
frameState () const
 
DtSubsurfaceStateComponentData & frameState ()
 

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
 

Constructor & Destructor Documentation

makVrf::DtSubsurfaceStateComponentNextFrame::DtSubsurfaceStateComponentNextFrame ( DtStateData *  sd)
inline

Constructs a next-frame state component backed by the given state data storage.

Parameters
sdPointer to the shared state data storage.
virtual makVrf::DtSubsurfaceStateComponentNextFrame::~DtSubsurfaceStateComponentNextFrame ( )
inlineoverridevirtual

Destructor.

Member Function Documentation

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   
)
virtual void makVrf::DtSubsurfaceStateComponentNextFrame::addSubsurfaceLayer ( const DtVrfSubsurfaceLayer &  layerToAdd)
overridevirtual

Adds a subsurface layer to the next-frame state, replacing any existing layer with the same priority. Thread-safe via internal mutex.

Parameters
layerToAddThe layer to add.
virtual void makVrf::DtSubsurfaceStateComponentNextFrame::removeSubsurfaceLayer ( const DtVrfSubsurfaceLayer &  layerToAdd)
overridevirtual

Removes the specified subsurface layer from the next-frame state. Thread-safe via internal mutex.

Parameters
layerToAddThe layer to remove.
bool makVrf::DtSubsurfaceStateComponentNextFrame::thermoclineLayer ( unsigned int  index,
DtVrfSubsurfaceLayer &  layer 
) const
protected

Retrieves the thermocline layer at the given 0-based priority index.

Parameters
index0-based priority index of the layer to retrieve.
layerOutput parameter populated with the found layer.
Returns
True if a layer with the given priority was found.
bool makVrf::DtSubsurfaceStateComponentNextFrame::removeThermoclineLayer ( unsigned int  index,
DtVrfSubsurfaceLayer &  layer 
)
protected

Removes the thermocline layer at the given 0-based priority index.

Parameters
index0-based priority index of the layer to remove.
layerOutput parameter populated with the removed layer.
Returns
True if a layer with the given priority was found and removed.
void makVrf::DtSubsurfaceStateComponentNextFrame::setThermoclineLayerByIndex ( DtVrfSubsurfaceLayer  layer,
unsigned int  index 
)
protected

Replaces (or inserts) the thermocline layer for the given 0-based priority index.

Parameters
layerThe layer data to set.
index0-based priority index to assign to the layer.

Member Data Documentation

tbb::spin_rw_mutex makVrf::DtSubsurfaceStateComponentNextFrame::myMutex
mutableprotected

Read-write mutex protecting concurrent access to next-frame state data.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)