VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSilverLiningContextManager.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 
15 #include <unordered_map>
16 
17 namespace osg
18 {
19  class Camera;
20  class GraphicsContext;
21 }
22 namespace SilverLining
23 {
24  class Atmosphere;
25 }
26 
27 namespace makVrv
28 {
29  class DtWindow;
30 
33 
36 
38  template <>
39  inline const char* creatorTypeName<DtSilverLiningContextManager>(void) { return "DtSilverLiningContextManagerCreator"; }
40 
42  {
43  public:
46 
49  protected:
52 
53  private:
58 
59  public:
61  virtual void addGraphicsContextIfNecessary(const osg::Camera* osgCamera);
62 
64  virtual void windowToBeDestroyed(DtWindow* window, SilverLining::Atmosphere* atmosphere);
65  protected:
66 
67  typedef std::unordered_map<const osg::GraphicsContext*, void* > ContextToHandleMap;
69 
71  };
72 
73 }
Abstract Base class.
Definition: DtWindow.h:25
const char * creatorTypeName< DtSilverLiningContextManager >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtSilverLiningContextManager.h:39
friend DtSilverLiningContextManagerCreator
only creator can create
Definition: DtSilverLiningContextManager.h:45
DtDe & myDe
Definition: DtSilverLiningContextManager.h:70
DtSilverLiningContextManager & operator=(const DtSilverLiningContextManager &rhs)=delete
not allowed
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
virtual ~DtSilverLiningContextManager()
destructor
DtSilverLiningContextManager(DtDe &de)
constructor
std::unordered_map< const osg::GraphicsContext *, void * > ContextToHandleMap
Definition: DtSilverLiningContextManager.h:67
Definition: DtSilverLiningContextManager.h:41
virtual void addGraphicsContextIfNecessary(const osg::Camera *osgCamera)
add gc to track
virtual void windowToBeDestroyed(DtWindow *window, SilverLining::Atmosphere *atmosphere)
remove a gc being track and communicate that to sl
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
ContextToHandleMap myOsgGcToOsGc
Definition: DtSilverLiningContextManager.h:68
DtVirtualBaseClassCreator< DtSilverLiningContextManager > DtSilverLiningContextManagerCreator
creator
Definition: DtSilverLiningContextManager.h:32

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)