VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>
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 
32  {
33  public:
34 
35  typedef std::vector<DtWidget*> WidgetList;
36 
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 
The base class for all model instances.
Definition: DtModelInstance.h:39
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::vector< DtWidget * > WidgetList
Definition: DtOsgWidgetUpdater.h:35
The osg widget updater updates the position of the widgets based upon the 3D location of the model...
Definition: DtOsgWidgetUpdater.h:31
std::vector< DtWidget * > myWidgets
Definition: DtOsgWidgetUpdater.h:60
The abstract base class for widgets.
Definition: DtWidget.h:23
Contains makVrv::DtModelInstance class.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)