VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgWindowManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 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
70
protected
:
71
72
osgViewer::CompositeViewer*
myViewer
;
73
osg::Timer_t
myStartTime
;
74
};
75
79
class
DT_DLL_VRVOSG
DtOsgWindowManagerCreator
:
public
DtWindowManagerCreator
80
{
81
public
:
83
virtual
DtWindowManager
* create(
DtDe
& anIG,
DtWindowConfigurations
&
84
viewConfigs);
85
};
86
}
87
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)