VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
>
16
#include <
vrvCore/DtWindowManager.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
{
35
class
DT_DLL_VRVOSG
DtOsgWindowManager
:
public
DtWindowManager
36
{
37
public
:
38
40
DtOsgWindowManager
(
DtDe
& de,
DtWindowConfigurations
& configs);
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
;
77
};
78
82
class
DT_DLL_VRVOSG
DtOsgWindowManagerCreator
:
public
DtWindowManagerCreator
83
{
84
public
:
86
virtual
DtWindowManager
* create(
DtDe
& anIG,
DtWindowConfigurations
&
87
viewConfigs);
88
};
89
}
90
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)