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 
29  {
30  public:
31 
34 
36  virtual ~DtProjectedWidgetModel();
37 
39  virtual void addToScene(const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
40  int visualizerType);
41 
43  virtual void removeFromScene();
44 
47  virtual void setTopographicOffset(double x, double y);
48 
51  virtual bool getTopographicOffset(double& x, double& y) const;
52 
55  virtual void addWidget(DtWidget* aWidget);
56 
58  virtual void removeWidget(DtWidget* aWidget);
59 
61  virtual void setModelDefinition(const std::string& str);
62 
64  virtual void setPosition(int vtx, const DtVector& position);
65 
66  DtWidgetUpdater& widgetUpdater();
67  const DtWidgetUpdater& widgetUpdater() const;
68 
69  virtual std::vector<DtWidget*>& widgets();
70 
71  virtual void setVisible(bool visible);
72 
75  virtual void setIsSupportModel(bool isSupport);
76 
77  protected:
78 
80  virtual DtVector getPositionWithTopographicXAndYOffset();
81 
83  virtual void slot_onCoordinateSystemChanged();
84 
85  protected:
89 
90  };
91 }
2 dimensional vector
The osg implementation of the widget layout.
Definition: DtProjectedWidgetModel.h:28
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The abstract base class for widgets.
Definition: DtWidget.h:28
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtSignalConnectionManager myConnections
Definition: DtProjectedWidgetModel.h:87
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:72
DtCoordinateSystem * myCoordinateSystem
Definition: DtProjectedWidgetModel.h:86
DtVector2< double > myTopographicOffset
Definition: DtProjectedWidgetModel.h:88
DtModelSetId
Definition: DtModelSetEnums.h:19
The osg widget updater updates the position of the widgets based upon the 3D location of the model...
Definition: DtWidgetUpdater.h:32
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)