VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthLayerVisibilityManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
16 
17 #include <osgEarth/VisibleLayer>
18 
19 #include <osg/observer_ptr>
20 
21 #include <map>
22 
23 namespace makVrv
24 {
25  class DtTerrainPatchObject;
26 
29  {
30  public:
31 
34 
35  protected:
38 
39  private:
42 
45 
48 
49  public:
50 
53  virtual void slot_osgEarthMapNodeFound(DtTerrainPatchObject& tpo);
54 
56  virtual void slot_postInit();
57 
59  virtual void updateLayerVisibleState();
60 
61  public:
62 
64  static DtOsgEarthLayerVisibilityManager& instance(DtDe& de);
65 
67  static const std::string& theClassName();
68 
69  protected:
70 
72 
73  typedef osg::observer_ptr<osgEarth::VisibleLayer> VisibleLayerObs;
74  typedef std::map<VisibleLayerObs, osg::Vec2i> LayerDateMap;
76 
78 
79  vrvSignalsLib::connection myPostInitializeConnection;
80  };
81 }
std::map< VisibleLayerObs, osg::Vec2i > LayerDateMap
Definition: DtOsgEarthLayerVisibilityManager.h:74
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
DtSignalConnectionManager myConnections
Definition: DtOsgEarthLayerVisibilityManager.h:77
DtDe & myDe
Definition: DtOsgEarthLayerVisibilityManager.h:71
A DtTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file as a...
Definition: DtTerrainPatchObject.h:35
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Base class to provide boost signal/slot management.
vrvSignalsLib::connection myPostInitializeConnection
Definition: DtOsgEarthLayerVisibilityManager.h:79
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: DtOsgEarthLayerVisibilityManager.h:28
osg::observer_ptr< osgEarth::VisibleLayer > VisibleLayerObs
Definition: DtOsgEarthLayerVisibilityManager.h:73
LayerDateMap myDateSpecificLayers
Definition: DtOsgEarthLayerVisibilityManager.h:75
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)