VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWidgetUpdater.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 #include <vrvCore/DtUniqueID.h>
16 
17 #include <vector>
18 
19 namespace makVrv
20 {
21  class DtWidget;
22  class DtOsgWidget;
23  class DtUnicode;
24 
32  {
33 
34  public:
36  DtWidgetUpdater(DtDe& de);
37 
39  ~DtWidgetUpdater();
40 
42  DtWidgetUpdater() = delete;
43 
45  DtWidgetUpdater(const DtWidgetUpdater& other) = delete;
46 
48  DtWidgetUpdater(const DtWidgetUpdater&& other) = delete;
49 
51  DtWidgetUpdater& operator=(const DtWidgetUpdater& other) = delete;
52 
54  DtWidgetUpdater& operator=(const DtWidgetUpdater&& other) = delete;
55 
56  public:
57 
60  virtual void addWidget(DtWidget* widget);
61 
65  virtual void removeWidget(DtWidget* widget);
66 
68  virtual void setVisible(bool isVisible);
69 
71  virtual void update(const DtVector& worldPosition);
72 
74  virtual void updateGeocentric(const DtVector& worldPosition);
75 
77  virtual void setOrderGroup(int orderGroup);
78 
80  virtual void setParentId(const DtUniqueID& parentId);
81 
83  virtual void setWidgetLabelText(const DtUnicode& text);
84 
85  protected:
86 
87  std::vector<DtWidget*> myWidgets;
88 
89  };
90 
91 }
The base class for all model instances.
Definition: DtModelInstance.h:41
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The abstract base class for widgets.
Definition: DtWidget.h:29
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtModelInstance class.
Contains makVrv::DtUniqueID type.
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:76
This updater provides a way to modifiy a set of widgets that are added to it. Typically a set of widg...
Definition: DtWidgetUpdater.h:31
std::vector< DtWidget * > myWidgets
Definition: DtWidgetUpdater.h:87
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)