VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 
13 #include <vrvCore/DtWidget.h>
14 
15 #include <osg/ref_ptr>
16 #include <osg/Texture>
17 
18 namespace osg
19 {
20  class Texture;
21 }
22 
23 namespace makVrv
24 {
25  class DtSprite;
26 
30  {
31  public:
32 
34  DtOsgWidget(DtDe& de, DtUniqueID id);
35 
37  virtual ~DtOsgWidget();
38 
40  virtual void setParentId( DtUniqueID id);
41 
43  virtual void setOverlay(unsigned int layer);
44 
46  virtual void setRotation( float );
47 
49  virtual float getRotation() const;
50 
52  unsigned int overlay() const;
53 
55  virtual void setOrderGroup(unsigned int group);
56 
58  virtual unsigned int orderGroup() const;
59 
61  virtual void setPosition(float x,float y,float z,float w = 0);
62 
65  virtual void setBackgroundImage(const std::string& filename);
66 
69  virtual void setBackgroundImage(const std::string& filename,
70  float left,float right,float bottom,float top);
71 
75  virtual void setColor(float r,float g,float b, float a);
76 
79  virtual void setOrigin(float originX, float originY);
80 
82  virtual void setSize(float w, float h);
83 
87  virtual void setAltitudeSpecificSizes(
89 
93  virtual void clearAltitudeSpecificSizes();
94 
100  virtual void setIsForcedSizeByAltitudeEnabled(bool enabled);
101 
104  virtual void setAltitudeForForcedSize(double minimumAltitudeForUse);
105 
107  virtual void setPadding(float paddingX, float paddingY);
108 
110  virtual void setModelDefinition(const std::string& str);
111 
113  virtual void setEventsEnabled(bool enabled);
114 
116  virtual void setVisible(bool visible);
117 
118  protected:
119 
122  unsigned int myLayer;
123  unsigned int myGroup;
124  float myRotation;
125 
127  };
128 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
A synchronized Quad and Widget for a interactive visible 2D graphic.
Definition: DtSprite.h:25
float myRotation
Definition: DtOsgWidget.h:124
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Texture > myTexture
Definition: DtOsgWidget.h:120
Contains makVrv::DtWidget class.
std::vector< DtDynamicSizeConfiguration > DtDynamicSizeConfigurationCollection
Definition: DtWidget.h:55
The abstract base class for widgets.
Definition: DtWidget.h:26
unsigned int myGroup
Definition: DtOsgWidget.h:123
unsigned int myLayer
Definition: DtOsgWidget.h:122
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
The osg widget class is a distributed osg based widget.
Definition: DtOsgWidget.h:29
DtWidget::DtDynamicSizeConfigurationCollection myAltitudeSpecificSizes
Definition: DtOsgWidget.h:126
DtSprite * mySprite
Definition: DtOsgWidget.h:121

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)