VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthEffectTextureInstaller.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 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/NodeCallback>
17 
18 namespace makVrv
19 {
20  class DtOsgEffectTextureVisitor;
21  class DtTerrainPatchObjectManager;
22 
23 
26 
29 
31  template <>
32  inline const char* creatorTypeName<DtOsgEarthEffectTextureInstaller>(void) { return "DtOsgEarthEffectTextureInstallerCreator"; }
33 
39  {
40  protected:
41  // Constructor
43 
46 
49 
50  private:
55 
56  public: // DtOsgEarthFeatureDataBroker::Callback interface
57 
58  // Invoked by the broker when the layer is first loaded.
59  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode,
60  osgEarth::Layer* layer) override;
61 
64  virtual void onDataPreMerge(const osgEarth::Layer* layer,
65  osg::Node* newNode) override;
66 
67  // Invoked by the broker when new data arrives.
68  virtual void onDataLoaded(const osgEarth::Layer* layer,
69  const osg::Node* newNode) override;
70 
73  virtual float callbackOrder() override;
74 
76  virtual const std::string& instanceClassName() const override;
77 
78  public:
81  static const std::string& className();
82 
83  protected:
84  static const std::string theClassName;
85 
86  protected:
88 
90  };
91 }
Manager that provides direct access to the terrain patch objects in use in a display engine also hand...
Definition: DtTerrainPatchObjectManager.h:38
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
friend DtOsgEarthEffectTextureInstallerCreator
friend creator since it is the only thing that should create a DtOsgEarthEffectTextureInstaller ...
Definition: DtOsgEarthEffectTextureInstaller.h:45
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
DtDe & myDe
Definition: DtOsgEarthEffectTextureInstaller.h:87
DtOsgEarthEffectTextureInstaller is a data broker callback that will install effect textures on an os...
Definition: DtOsgEarthEffectTextureInstaller.h:38
DtVirtualBaseClassCreator< DtOsgEarthEffectTextureInstaller > DtOsgEarthEffectTextureInstallerCreator
creator
Definition: DtOsgEarthEffectTextureInstaller.h:25
DtTerrainPatchObjectManager & myTerrainPatchObjectManager
Definition: DtOsgEarthEffectTextureInstaller.h:89
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
static const std::string theClassName
Definition: DtOsgEarthEffectTextureInstaller.h:84
const char * creatorTypeName< DtOsgEarthEffectTextureInstaller >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtOsgEarthEffectTextureInstaller.h:32

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)