VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEmptySceneLogo.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2023 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
18 
19 #include <osg/Geode>
20 #include <osg/Texture>
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtOsgChannel;
26  class DtOverlayRenderer;
27  class DtQuadProxyInterface;
28  class DtTextProxyInterface;
29  class DtOsgTextureWrapper;
30 
33 
36 
38  template <>
39  inline const char* creatorTypeName<DtOsgEmptySceneLogo>(void) { return "DtOsgEmptySceneLogo"; }
40 
41 
47  {
48  public:
49 
51 
52  virtual ~DtOsgEmptySceneLogo();
53 
54  private:
55 
57  DtOsgEmptySceneLogo() = delete;
61  DtOsgEmptySceneLogo& operator=(const DtOsgEmptySceneLogo&) = delete;
62 
63  public:
64 
68  virtual void update(DtOsgChannel& osgChannel);
69 
74  static void setEnabled(bool enabled);
75 
78  static bool enabled();
79 
80  protected:
81 
84  virtual void createOverlay(DtOsgChannel& osgChannel);
85 
88  virtual void destroyOverlay(DtOsgChannel& osgChannel);
89 
95  virtual void updateLayout(int x, int y, int w, int h);
96 
102  virtual void slot_viewportChanged(int x, int y, int w, int h);
103 
104  protected:
105 
108 
114 
115  static bool theEnabled;
116  };
117 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
const char * creatorTypeName< DtOsgEmptySceneLogo >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtOsgEmptySceneLogo.h:39
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtSignalConnectionManager mySignalManager
Definition: DtOsgEmptySceneLogo.h:107
This class provides the OSG-specific implementation of a DtChannel.
Definition: DtOsgChannel.h:58
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Contains makVrv::DtVirtualBaseClass class.
This class handles displaying a logo for a channel when the channel scene is empty. An empty scene means that no terrain is loaded. On overlay is used to hide the scene until the terrain loads.
Definition: DtOsgEmptySceneLogo.h:46
DtDe & myDe
Definition: DtOsgEmptySceneLogo.h:106
A class for controlling text owned by the TextRenderer.
Definition: DtTextProxyInterface.h:30
A single 2D quadrilateral.
Definition: DtQuadProxyInterface.h:21
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtQuadProxyInterface * myBackgroundQuad
Definition: DtOsgEmptySceneLogo.h:110
DtTextProxyInterface * myWarnText
Definition: DtOsgEmptySceneLogo.h:113
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtOsgTextureWrapper.h:24
Base class to provide boost signal/slot management.
DtQuadProxyInterface * myLogoQuad
Definition: DtOsgEmptySceneLogo.h:111
static bool theEnabled
Definition: DtOsgEmptySceneLogo.h:115
DtOsgTextureWrapper * myLogoTexture
Definition: DtOsgEmptySceneLogo.h:112
Contains DLL export macros.
osg::ref_ptr< osg::Geode > myGeode
Definition: DtOsgEmptySceneLogo.h:109
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
DtVirtualBaseClassCreator< DtOsgEmptySceneLogo > DtOsgEmptySceneLogoCreator
creator
Definition: DtOsgEmptySceneLogo.h:32

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)