VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <osg/Timer>
16 #include <osg/Vec3>
17 
18 namespace osg
19 {
20  class FrameStamp;
21 }
22 
23 namespace osgViewer
24 {
25  class CompositeViewer;
26 }
27 
28 namespace makVrv
29 {
33  {
34  public:
35 
38 
40  virtual ~DtOsgWindowManager();
41 
44  virtual bool tick();
45 
48  virtual void destroyWindow( DtWindow* window);
49 
51  osgViewer::CompositeViewer& getOrCreateViewer();
52 
55  virtual bool isVisibleAndCloseToCamera(
56  float sphereRadius,
57  float sphereCenterX, float sphereCenterY, float sphereCenterZ,
58  float distance, float upX, float upY, float upZ) const;
59 
62  bool makeContextCurrent();
63 
65  int maxTextureUnits() const;
66 
68  void setIncrementalCompileOption(bool enable);
69 
71  virtual void setMaxPagedLOD(unsigned int lod);
72 
73  protected:
74 
81  virtual void flush(DtWindow* window, bool lastWindow) override;
82 
83  protected:
84 
85  osgViewer::CompositeViewer* myViewer;
86  osg::Timer_t myStartTime;
88  };
89 
94  {
95  public:
97  virtual DtWindowManager* create(DtDe& anIG,DtWindowConfigurations&
98  viewConfigs);
99  };
100 }
101 
bool myIcoEnabled
Definition: DtOsgWindowManager.h:87
Abstract Base class.
Definition: DtWindow.h:25
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Component which knows how to make windows.
Definition: DtWindowManager.h:31
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Owns and manages OpenSceneGraph windows.
Definition: DtOsgWindowManager.h:32
Creator for a DtWindowManager.
Definition: DtWindowManager.h:177
Creator for registering the OpenSceneGraph window manager implementation.
Definition: DtOsgWindowManager.h:93
osgViewer::CompositeViewer * myViewer
Definition: DtOsgWindowManager.h:85
Contains makVrv::DtWindowManager class.
Contains DLL export macros.
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
osg::Timer_t myStartTime
Definition: DtOsgWindowManager.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)