VR-Forces 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) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 
16 #include <osg/Timer>
17 #include <osg/Vec3>
18 #include <osgViewer/ViewerBase>
19 
20 namespace osg
21 {
22  class FrameStamp;
23 }
24 
25 namespace osgViewer
26 {
27  class CompositeViewer;
28 }
29 
30 namespace makVrv
31 {
35  {
36  public:
37 
40 
42  virtual ~DtOsgWindowManager();
43 
46  virtual bool tick();
47 
50  virtual void destroyWindow( DtWindow* window);
51 
53  osgViewer::CompositeViewer& getOrCreateViewer();
54 
56  virtual void preChannelManagersTick();
57 
60  virtual bool isVisibleAndCloseToCamera(
61  float sphereRadius,
62  float sphereCenterX, float sphereCenterY, float sphereCenterZ,
63  float distance, float upX, float upY, float upZ) const;
64 
67  bool makeContextCurrent();
68 
70  int maxTextureUnits() const;
71 
73  void setIncrementalCompileOption(bool enable);
74 
76  virtual void setMaxPagedLOD(unsigned int lod);
77 
78  protected:
79 
86  virtual void flush(DtWindow* window, bool lastWindow) override;
87 
89  virtual osgViewer::ViewerBase::ThreadingModel toOsgThreadingModel(DtRendererThreadingModel vrvThreadingModel) const;
90 
92  virtual std::string toString(osgViewer::ViewerBase::ThreadingModel threadingModel) const;
93 
94  protected:
95 
96  osgViewer::CompositeViewer* myViewer;
97  osg::Timer_t myStartTime;
99  };
100 
105  {
106  public:
108  virtual DtWindowManager* create(DtDe& anIG,DtWindowConfigurations&
109  viewConfigs);
110  };
111 }
112 
bool myIcoEnabled
Definition: DtOsgWindowManager.h:98
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
DtRendererThreadingModel
Definition: DtRendererThreadingModel.h:16
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:34
Creator for a DtWindowManager.
Definition: DtWindowManager.h:181
Creator for registering the OpenSceneGraph window manager implementation.
Definition: DtOsgWindowManager.h:104
osgViewer::CompositeViewer * myViewer
Definition: DtOsgWindowManager.h:96
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:76
osg::Timer_t myStartTime
Definition: DtOsgWindowManager.h:97

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)