VR-Forces 4.8 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) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgWindowManager.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsg/vrvOsg.h>
17 
18 #include <osg/Timer>
19 #include <osg/Vec3>
20 
21 namespace osg
22 {
23  class FrameStamp;
24 }
25 
26 namespace osgViewer
27 {
28  class CompositeViewer;
29 }
30 
31 namespace makVrv
32 {
36  {
37  public:
38 
41 
43  virtual ~DtOsgWindowManager();
44 
47  virtual bool tick();
48 
51  virtual void destroyWindow( DtWindow* window );
52 
54  osgViewer::CompositeViewer& getOrCreateViewer();
55 
58  virtual bool isVisibleAndCloseToCamera(
59  float sphereRadius,
60  float sphereCenterX, float sphereCenterY, float sphereCenterZ,
61  float distance, float upX, float upY, float upZ) const;
62 
65  bool makeContextCurrent();
66 
68  int maxTextureUnits() const;
69 
71  void setIncrementalCompileOption(bool enable);
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:32
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:35
Creator for a DtWindowManager.
Definition: DtWindowManager.h:167
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)