VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgWidgetUpdater.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#ifndef DtOsgWidgetUpdater_H_
11
#define DtOsgWidgetUpdater_H_
12
13
#include <
vrvOsg/vrvOsg.h
>
14
#include <
vrvCore/DtModelInstance.h
>
15
#include <vector>
16
17
namespace
osg
18
{
19
class
Vec3d;
20
}
21
22
namespace
makVrv
23
{
24
25
class
DtWidget;
26
class
DtOsgWidget;
27
class
DtOverlayRenderer;
28
31
class
DT_DLL_VRVOSG
DtOsgWidgetUpdater
:
public
DtModelInstance
32
{
33
public
:
34
35
typedef
std::vector<DtWidget*>
WidgetList
;
36
38
DtOsgWidgetUpdater
(
DtDe
& de);
39
41
virtual
void
setVisible(
bool
isVisible);
42
45
void
addWidget(
DtWidget
* widget);
46
50
void
removeWidget(
DtWidget
* widget);
51
53
WidgetList
& widgets();
54
55
void
update(
const
osg::Vec3d& worldPosition);
56
void
updateGeocentric(
const
osg::Vec3d& worldPosition);
57
58
protected
:
59
60
std::vector<DtWidget*>
myWidgets
;
61
};
62
63
}
64
65
#endif
66
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)