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 Attributes
makVrv::DtBuildingMetadataNodeHandler Class Reference

Handles the discover of MetadataNode nodes and the sharing of DtIndirectSharedMetadataNodeWrapper objects. This allows procedural geometry and instanced building clutter belonging to the same feature id to be controlled using a single visbile flag regardless of how the indirecting system batches the geometry.

Public Member Functions

 DtBuildingMetadataNodeHandler ()
 
void findMetadataNodes (osg::Node *node)
 
DtIndirectMetadataNodecreateIndirectMetadataNode (const osgEarth::MetadataNode *node)
 

Protected Attributes

std::map< const
osgEarth::MetadataNode
*, std::shared_ptr
< DtIndirectSharedMetadataNodeWrapper > > 
myMetadataNodes
 

Constructor & Destructor Documentation

makVrv::DtBuildingMetadataNodeHandler::DtBuildingMetadataNodeHandler ( )

Member Function Documentation

void makVrv::DtBuildingMetadataNodeHandler::findMetadataNodes ( osg::Node *  node)

Walks the given node and it's children to find all MetadataNode nodes. One instance of DtIndirectSharedMetadataNodeWrapper is created for each MetadataNode that is found.

DtIndirectMetadataNode* makVrv::DtBuildingMetadataNodeHandler::createIndirectMetadataNode ( const osgEarth::MetadataNode *  node)

Creates a new instance of DtIndirectMetadataNode linked to the given MetadataNode via the DtIndirectSharedMetadataNodeWrapper which is sharable between multiple DtIndirectMetadataNode objects.

Member Data Documentation

std::map<const osgEarth::MetadataNode*, std::shared_ptr<DtIndirectSharedMetadataNodeWrapper> > makVrv::DtBuildingMetadataNodeHandler::myMetadataNodes
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)