VR-Forces 4.10 Class Documentation
 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 
22 
25 
28 
30  template <>
31  inline const char* creatorTypeName<DtOsgEarthEffectTextureInstaller>(void) { return "DtOsgEarthEffectTextureInstallerCreator"; }
32 
38  {
39  protected:
40  // Constructor
42 
45 
48 
49  private:
54 
55  public: // DtOsgEarthFeatureDataBroker::Callback interface
56 
57  // Invoked by the broker when the layer is first loaded.
58  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode,
59  osgEarth::Layer* layer) override;
60 
63  virtual void onDataPreMerge(const osgEarth::Layer* layer,
64  osg::Node* newNode) override;
65 
66  // Invoked by the broker when new data arrives.
67  virtual void onDataLoaded(const osgEarth::Layer* layer,
68  const osg::Node* newNode) override;
69 
72  virtual float callbackOrder() override;
73 
75  virtual const std::string& instanceClassName() const override;
76 
77  public:
80  static const std::string& className();
81 
82  protected:
83  static const std::string theClassName;
84 
85  protected:
87  };
88 }
#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:44
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
DtDe & myDe
Definition: DtOsgEarthEffectTextureInstaller.h:86
DtOsgEarthEffectTextureInstaller is a data broker callback that will install effect textures on an os...
Definition: DtOsgEarthEffectTextureInstaller.h:37
DtVirtualBaseClassCreator< DtOsgEarthEffectTextureInstaller > DtOsgEarthEffectTextureInstallerCreator
creator
Definition: DtOsgEarthEffectTextureInstaller.h:24
Definition: DtOsgEarthFeatureDataBroker.h:65
Contains DLL export macros.
Contains makVrv::DtOsgEarthFeatureDataBroker class.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
static const std::string theClassName
Definition: DtOsgEarthEffectTextureInstaller.h:83
const char * creatorTypeName< DtOsgEarthEffectTextureInstaller >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtOsgEarthEffectTextureInstaller.h:31

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)