VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthLightPointInstaller.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
16 
17 #include <osg/NodeCallback>
18 
19 namespace makVrv
20 {
21  class DtOsgLightPointManager;
28  {
29  protected:
32 
35 
38 
39  private:
42 
44  DtOsgEarthLightPointInstaller &operator=(const DtOsgEarthLightPointInstaller &other) = delete;
45 
46  public: // DtOsgEarthFeatureDataBroker::Callback interface
47 
49  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode, osgEarth::Layer* layer) override;
50 
53  virtual void onDataPreMerge(const osgEarth::Layer* layer, osg::Node* data) override;
54 
56  virtual void onDataLoaded(const osgEarth::Layer* layer, const osg::Node* data) override;
57 
59  virtual float callbackOrder() override;
60 
62  virtual const std::string& instanceClassName() const override;
63 
65  static bool checkForIndirectRenderingParameter(const osgEarth::Layer* layer);
66 
67  public:
70  static const std::string& className();
71 
72  protected:
73  static const std::string theClassName;
74 
76  typedef std::map<const osgEarth::Layer*, DtIndirectFadeParameters> LayerFadeParametersMap;
78 
79  protected:
81  };
82 
87  {
88 
89  public:
92 
95  static DtOsgEarthLightPointInstallerCreator& instance(DtDe& de);
96 
98  static void registerInstance(DtDe& de,
100 
102  virtual DtOsgEarthLightPointInstaller* create(DtDe& de);
103 
104  private:
107 
110  };
111 }
LayerFadeParametersMap myFadeParamtersMap
Definition: DtOsgEarthLightPointInstaller.h:77
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< const osgEarth::Layer *, DtIndirectFadeParameters > LayerFadeParametersMap
Definition: DtOsgEarthLightPointInstaller.h:76
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The DtOsgEarthLightPointInstaller creator for the DtOsgEarthLightPointInstallerCreator class...
Definition: DtOsgEarthLightPointInstaller.h:86
DtOsgLightPointManager registers LightPoint nodes so their TBO can be created and updated in a single...
Definition: DtOsgLightPointManager.h:106
DtOsgLightPointInstaller is a data broker callback that will add light points to terrain patches as t...
Definition: DtOsgEarthLightPointInstaller.h:27
Contains makVrv::DtVirtualBaseClass class.
static const std::string theClassName
Definition: DtOsgEarthLightPointInstaller.h:73
DtOsgLightPointManager & myLightPointManager
Definition: DtOsgEarthLightPointInstaller.h:75
Definition: DtOsgEarthFeatureDataBroker.h:65
Contains DLL export macros.
Contains makVrv::DtOsgEarthFeatureDataBroker class.
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:70
DtDe & myDe
Definition: DtOsgEarthLightPointInstaller.h:80

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)