VR-Forces 4.10 Class Documentation
 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) 2020 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 
75  osgViewer::CompositeViewer* myViewer;
76  osg::Timer_t myStartTime;
78  };
79 
84  {
85  public:
87  virtual DtWindowManager* create(DtDe& anIG,DtWindowConfigurations&
88  viewConfigs);
89  };
90 }
91 
bool myIcoEnabled
Definition: DtOsgWindowManager.h:77
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.
Owns and manages OpenSceneGraph windows.
Definition: DtOsgWindowManager.h:32
Creator for a DtWindowManager.
Definition: DtWindowManager.h:169
Creator for registering the OpenSceneGraph window manager implementation.
Definition: DtOsgWindowManager.h:83
osgViewer::CompositeViewer * myViewer
Definition: DtOsgWindowManager.h:75
Contains makVrv::DtWindowManager class.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::Timer_t myStartTime
Definition: DtOsgWindowManager.h:76

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)