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) 2024 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 void setVisible(bool visible);
68 
71  virtual void setIsSupportModel(bool isSupport);
72 
75  virtual void setPinned(bool pinned);
76  virtual bool isPinned() const;
78 
79  protected:
80 
82  virtual DtVector getPositionWithTopographicXAndYOffset();
83 
85  virtual void slot_onCoordinateSystemChanged();
86 
87  protected:
91  bool myPinned;
92 
93  };
94 }
bool myPinned
Definition: DtPinnableProjectedWidgetModel.h:91
DtVector2< double > myTopographicOffset
Definition: DtPinnableProjectedWidgetModel.h:88
The osg implementation of the widget layout.
Definition: DtPinnableProjectedWidgetModel.h:26
DtSignalConnectionManager myConnections
Definition: DtPinnableProjectedWidgetModel.h:89
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
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:90
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
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)