VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

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)