VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPinnableProjectedWidgetModel.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 
12 #include <vrvCore/vrvCore.h>
14 
16 
17 #include <vector>
18 
19 namespace makVrv
20 {
21  class DtWidgetUpdater;
22  class DtCoordinateSystem;
23 
27  {
28  public:
29 
32 
35 
37  virtual void addToScene(const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
38  int visualizerType);
39 
41  virtual void removeFromScene();
42 
45  virtual void setTopographicOffset(double x, double y);
46 
49  virtual bool getTopographicOffset(double& x, double& y) const;
50 
53  virtual void addWidget(DtWidget* aWidget);
54 
56  virtual void removeWidget(DtWidget* aWidget);
57 
59  virtual void setModelDefinition(const std::string& str);
60 
62  virtual void setPosition(int vtx, const DtVector& position);
63 
64  DtWidgetUpdater& widgetUpdater();
65  const DtWidgetUpdater& widgetUpdater() const;
66 
67  virtual std::vector<DtWidget*>& widgets();
68 
69  virtual void setVisible(bool visible);
70 
73  virtual void setIsSupportModel(bool isSupport);
74 
77  virtual void setPinned(bool pinned);
78  virtual bool isPinned() const;
80 
81  protected:
82 
84  virtual DtVector getPositionWithTopographicXAndYOffset();
85 
87  virtual void slot_onCoordinateSystemChanged();
88 
89  protected:
93  bool myPinned;
94 
95  };
96 }
bool myPinned
Definition: DtPinnableProjectedWidgetModel.h:93
DtVector2< double > myTopographicOffset
Definition: DtPinnableProjectedWidgetModel.h:90
The osg implementation of the widget layout.
Definition: DtPinnableProjectedWidgetModel.h:26
DtSignalConnectionManager myConnections
Definition: DtPinnableProjectedWidgetModel.h:91
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
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Contains makVrv::DtProjectedWidgetModel class declaration.
Base class to provide boost signal/slot management.
DtCoordinateSystem * myCoordinateSystem
Definition: DtPinnableProjectedWidgetModel.h:92
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
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)