VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProjectedWidgetModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 #include <vrvCore/DtModel.h>
13 
15 
16 #include <vrvMath/DtVector2.h>
17 
18 #include <vector>
19 
20 namespace makVrv
21 {
22  class DtWidget;
23  class DtWidgetUpdater;
24  class DtCoordinateSystem;
25  class DtUnicode;
26 
30  {
31  public:
32 
35 
37  virtual ~DtProjectedWidgetModel();
38 
40  virtual void addToScene(const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
41  int visualizerType);
42 
44  virtual void removeFromScene();
45 
48  virtual void setTopographicOffset(double x, double y);
49 
52  virtual bool getTopographicOffset(double& x, double& y) const;
53 
56  virtual void addWidget(DtWidget* aWidget);
57 
59  virtual void removeWidget(DtWidget* aWidget);
60 
62  virtual void setModelDefinition(const std::string& str);
63 
65  virtual void setPosition(int vtx, const DtVector& position);
66 
67  DtWidgetUpdater& widgetUpdater();
68  const DtWidgetUpdater& widgetUpdater() const;
69 
70  virtual void setVisible(bool visible);
71 
74  virtual void setIsSupportModel(bool isSupport);
75 
77  virtual void setWidgetOrderGroup(int orderGroup);
78 
80  virtual void setWidgetLabelText(const DtUnicode& text);
81 
82  protected:
83 
85  virtual DtVector getPositionWithTopographicXAndYOffset();
86 
88  virtual void slot_onCoordinateSystemChanged();
89 
90  protected:
94 
95  };
96 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
2 dimensional vector
The osg implementation of the widget layout.
Definition: DtProjectedWidgetModel.h:29
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The abstract base class for widgets.
Definition: DtWidget.h:29
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtSignalConnectionManager myConnections
Definition: DtProjectedWidgetModel.h:92
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtModel class.
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Base class to provide boost signal/slot management.
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:56
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
DtCoordinateSystem * myCoordinateSystem
Definition: DtProjectedWidgetModel.h:91
DtVector2< double > myTopographicOffset
Definition: DtProjectedWidgetModel.h:93
DtModelSetId
Definition: DtModelSetEnums.h:19
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
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)