VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgPinnableProjectedWidgetModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
14 #include <vector>
15 
16 namespace makVrv
17 {
18  class DtOsgWidgetUpdater;
19 
20 
24  {
25  public:
26 
29 
32 
34  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
35  int visualizerType );
36 
38  virtual void removeFromScene();
39 
42  virtual void addWidget(DtWidget* aWidget);
43 
45  virtual void removeWidget(DtWidget* aWidget);
46 
48  virtual void setModelDefinition(const std::string& str);
49 
51  virtual void setPosition( int vtx, const DtVector& position );
52 
53  DtOsgWidgetUpdater& widgetUpdater();
54  const DtOsgWidgetUpdater& widgetUpdater() const;
55 
56  virtual std::vector<DtWidget*>& widgets();
57 
58  virtual void setVisible(bool visible);
59 
62  virtual void setIsSupportModel(bool isSupport);
63 
66  virtual void setPinned(bool pinned);
67  virtual bool isPinned() const;
69 
70  protected:
71 
73 
74  bool myPinned;
75 
76  };
77 }
Contains makVrv::DtOsgPinnableProjectedWidgetModel class declaration.
bool myPinned
Definition: DtOsgPinnableProjectedWidgetModel.h:74
The osg implementation of the widget layout.
Definition: DtOsgPinnableProjectedWidgetModel.h:23
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A Model which can be added to objects for displaying overlay widgets.
Definition: DtPinnableProjectedWidgetModel.h:21
The osg widget updater updates the position of the widgets based upon the 3D location of the model...
Definition: DtOsgWidgetUpdater.h:37
DtUniqueID myParentId
Definition: DtOsgPinnableProjectedWidgetModel.h:72
The abstract base class for widgets.
Definition: DtWidget.h:26
Contains DLL export macros.
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:70

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)