![]() |
VR-Forces Developer's Guide
|
The DtOsgWaterRipplesManager class provides a manager for managing water ripple effects for water bodies.
Although this class is a singleton, it is always initialized by the DtOsgRenderer when using an opengl API.
This manager tracks terrain patches that have water ripple presets and applies water ripple textures to them. Generally there will be only one terrain patch (for example an osgEarth terrain patch).

Classes | |
| struct | PerChannelData |
| struct | TerrainPatchInfo |
| class | TextureAddressOp |
Static Public Member Functions | |
| static DtOsgWaterRipplesManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de) |
Static Public Member Functions inherited from makVrv::DtWaterRipplesManager | |
| static const std::string & | theClassName () |
| static DtWaterRipplesManager & | instance (DtDe &de) |
Protected Types | |
| typedef std::map < osg::observer_ptr < osg::Camera > , DtOsgWaterRipplesManager::PerChannelData * > | PerChannelDataMap |
Static Protected Member Functions | |
| static bool | presetsDiffer (const DtWaterRipplesManager::PresetInfo &a, const DtWaterRipplesManager::PresetInfo &b, bool &outProceduralChange, bool &outRuntimeChange) |
Protected Attributes | |
| DtSignalConnectionManager | myConnections |
| TextureAddressOp * | myTextureAddressOp |
| DtOsgWaterRipplesManager::PerChannelDataMap | myPerChannelDataMap |
| std::map< DtTerrainPatchObject *, DtOsgWaterRipplesManager::TerrainPatchInfo * > | myTerrainPatchMap |
| std::vector < DtWaterRipplesManager::PresetInfo > | myPresets |
| std::vector< int > | myTextureSizes |
Protected Attributes inherited from makVrv::DtWaterRipplesManager | |
| DtDe & | myDe |
|
protected |
|
virtual |
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Move Constructor not implemented - Move not allowed.
|
protected |
Protected CTOR Use DtOsgWaterRipplesManager::instance(DtDe&).
|
static |
Get/Create the DtOsgWaterRipplesManager instance. Use DtOsgWaterRipplesManager::registerInstance(...) to override the class instance.
|
static |
Register the provided instance of a DtOsgWaterRipplesManager.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
delete |
Move Assignment Operator not implemented - Move Assignment not allowed.
|
virtual |
release the gl objects for this class.
|
virtual |
Free all per channel data.
|
virtual |
Ensures that perChannelData is associated with the given channel when there are water ripples active for a terrain patch.
|
virtual |
Initialize water ripples for all tracked channels.
|
virtual |
called by the GPU arena per frame, per context to check if the texture has been assigned an address.
|
virtual |
called by DtOsgRenderer::update(). Updates/maintains PerChannelData objects. Updates ImGui interface.
|
protectedvirtual |
Determines if water ripples should show for the given channel.
|
protectedvirtual |
Create the texture address operation that is needed to update the bindless texture addresses that are passed to the shader. The operation is called from the GPU arena at the appropriate time.
|
protected |
Get or create the per channel data for the provided camera.
|
protectedvirtual |
Check if the channel still is valid. If not then destroy the associated channel data.
|
protectedvirtual |
Called to see if any existing PerChannelData objects need to be initialized. Each PerChannelData object contains a water ripples object that may need initialized.
|
protectedvirtual |
Update the ImGui interface for water ripples.
|
protectedvirtual |
Update the ImGui interface for the provided preset.
|
protectedvirtual |
Updates the myPerChannelDataMap presets from the current settings.
|
protectedvirtual |
Update any shader uniforms that need updating for water ripples.
|
protectedvirtual |
Internal helper to get a texture size for the provided GUI index. There are a preset set of texture sizes available for water ripple textures.
|
protectedvirtual |
Internal helper to get a GUI index for the provided texture size. There are a preset set of texture sizes available for water ripple textures.
|
protectedvirtual |
Get the StateSet for the map node of the terrain patch.
|
staticprotected |
Compare if two PresetInfo objects are not equal. outProceduralChange is set to true if there is a change in procedural settings. outRuntimeChange is set to true if there is a change in runtime settings. Does not compare the preset name.
|
protectedvirtual |
Slot called when a water ripple preset has changed.
|
protectedvirtual |
Used to determine if a osgEarth terrain patch has been added to the terrain. This manager will track terrain patches that have water ripple presets.
|
protectedvirtual |
Used to determine if a osgEarth terrain patch has been removed from the terrain. Removes any tracking of the terrain patch from this manager.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |