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

This class is shared between multiple instances of DtIndirectMetadataNode. It wraps the origional osgEarth::MetadataNode and osg::Switch book keeping data that needs to be shared beteween procedural buildings and instanced roof clutter.

Public Member Functions

 DtIndirectSharedMetadataNodeWrapper (const osg::ref_ptr< osgEarth::MetadataNode > &metadataNode)
 
virtual ~DtIndirectSharedMetadataNodeWrapper ()
 
osg::ref_ptr
< osgEarth::MetadataNode > 
getMetadataNode () const
 
bool getVisible (unsigned int index) const
 
void setVisible (unsigned int index, bool value)
 
osg::Switch * getOrCreateSwitchNode (unsigned int index)
 

Protected Member Functions

 DtIndirectSharedMetadataNodeWrapper ()
 
 DtIndirectSharedMetadataNodeWrapper (const DtIndirectSharedMetadataNodeWrapper &rhs)
 

Private Attributes

osg::ref_ptr
< osgEarth::MetadataNode > 
myMetaDataNode
 
std::map< osgEarth::ObjectID,
osg::ref_ptr< osg::Switch > > 
myObjectSwitches
 

Constructor & Destructor Documentation

makVrv::DtIndirectSharedMetadataNodeWrapper::DtIndirectSharedMetadataNodeWrapper ( const osg::ref_ptr< osgEarth::MetadataNode > &  metadataNode)

constructor

virtual makVrv::DtIndirectSharedMetadataNodeWrapper::~DtIndirectSharedMetadataNodeWrapper ( )
virtual

destructor

makVrv::DtIndirectSharedMetadataNodeWrapper::DtIndirectSharedMetadataNodeWrapper ( )
protected

constructor

makVrv::DtIndirectSharedMetadataNodeWrapper::DtIndirectSharedMetadataNodeWrapper ( const DtIndirectSharedMetadataNodeWrapper rhs)
protected

copy constructor

Member Function Documentation

osg::ref_ptr<osgEarth::MetadataNode> makVrv::DtIndirectSharedMetadataNodeWrapper::getMetadataNode ( ) const

Get the MetadataNode being managed.

Returns
the MetadataNode
bool makVrv::DtIndirectSharedMetadataNodeWrapper::getVisible ( unsigned int  index) const

Get the visible state for the given index.

Returns
whether or not the index is visible.
void makVrv::DtIndirectSharedMetadataNodeWrapper::setVisible ( unsigned int  index,
bool  value 
)

Set the visible state for the given index.

osg::Switch* makVrv::DtIndirectSharedMetadataNodeWrapper::getOrCreateSwitchNode ( unsigned int  index)

If a Switch exists for the index, return it. Otherwise create a new one, cache it, and return that.

Member Data Documentation

osg::ref_ptr<osgEarth::MetadataNode> makVrv::DtIndirectSharedMetadataNodeWrapper::myMetaDataNode
private
std::map<osgEarth::ObjectID, osg::ref_ptr<osg::Switch> > makVrv::DtIndirectSharedMetadataNodeWrapper::myObjectSwitches
private

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)