VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectSharedMetadataNodeWrapper.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <osgEarth/ObjectIndex>
14 #include <osgEarth/MetadataNode>
15 #include <osg/Switch>
16 #include <map>
17 
18 namespace makVrv
19 {
23  {
24  public:
27 
30 
31  protected:
34 
37 
38  public:
39 
42  osg::ref_ptr<osgEarth::MetadataNode> getMetadataNode() const;
43 
46  bool getVisible(unsigned int index) const;
47 
49  void setVisible(unsigned int index, bool value);
50 
53  osg::Switch* getOrCreateSwitchNode(unsigned int index);
54 
55  private:
57  std::map<osgEarth::ObjectID, osg::ref_ptr<osg::Switch>> myObjectSwitches;
58  };
59 }
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
This class is shared between multiple instances of DtIndirectMetadataNode. It wraps the origional osg...
Definition: DtIndirectSharedMetadataNodeWrapper.h:22
osg::ref_ptr< osgEarth::MetadataNode > myMetaDataNode
Definition: DtIndirectSharedMetadataNodeWrapper.h:56
std::map< osgEarth::ObjectID, osg::ref_ptr< osg::Switch > > myObjectSwitches
Definition: DtIndirectSharedMetadataNodeWrapper.h:57
Contains DLL export macros.

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)