VR-Forces 5.0.1 Developer's Guide
 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <vector>
19 
20 namespace osg
21 {
22  class Vec3d;
23 }
24 
25 namespace makVrv
26 {
27  class DtWidget;
28  class DtOsgWidget;
29  class DtOverlayRenderer;
30  class DtWidgetInstanceSignaler;
31 
38  {
39  public:
40 
41  typedef std::vector<DtWidget*> WidgetList;
42 
43  public:
46 
49 
50  public:
51 
53  virtual void setVisible(bool isVisible);
54 
57  void addWidget(DtWidget* widget);
58 
62  void removeWidget(DtWidget* widget);
63 
65  WidgetList& widgets();
66 
67  void update(const osg::Vec3d& worldPosition);
68  void updateGeocentric(const osg::Vec3d& worldPosition);
69 
70  protected:
71 
72  std::vector<DtWidget*> myWidgets;
73 
74  std::map<DtWidget*, DtWidgetInstanceSignaler*> myWidgetInstanceSignalersMap;
75  };
76 
77 }
The base class for all model instances.
Definition: DtModelInstance.h:39
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv:DtSelectionManager class.
std::vector< DtWidget * > WidgetList
Definition: DtOsgWidgetUpdater.h:41
The osg widget updater updates the position of the widgets based upon the 3D location of the model...
Definition: DtOsgWidgetUpdater.h:37
std::vector< DtWidget * > myWidgets
Definition: DtOsgWidgetUpdater.h:72
The abstract base class for widgets.
Definition: DtWidget.h:26
Contains makVrv::DtModelInstance class.
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
std::map< DtWidget *, DtWidgetInstanceSignaler * > myWidgetInstanceSignalersMap
Definition: DtOsgWidgetUpdater.h:74

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)