VR-Forces 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) 2024 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  class DtOsgTextureWrapper;
27 
31  {
32  public:
33 
35  DtOsgWidget(DtDe& de, DtUniqueID id);
36 
38  virtual ~DtOsgWidget();
39 
41  virtual void setParentId( DtUniqueID id) override;
42 
44  virtual void setOverlay(unsigned int layer) override;
45 
47  virtual void setRotation( float ) override;
48 
50  virtual float getRotation() const;
51 
53  unsigned int overlay() const override;
54 
56  virtual void setOrderGroup(unsigned int group) override;
57 
59  virtual unsigned int orderGroup() const override;
60 
62  virtual void setPosition(float x,float y,float z,float w = 0) override;
63 
66  virtual void setBackgroundImage(const std::string& filename) override;
67 
70  virtual void setBackgroundImage(const std::string& filename,
71  float left,float right,float bottom,float top);
72 
76  virtual void setColor(float r,float g,float b, float a) override;
77 
79  virtual void setOriginOffset(int offsetX, int offsetY ) override;
80 
82  virtual void setSize(float w, float h) override;
83 
87  virtual void setAltitudeSpecificSizes(
88  const DtWidget::DtDynamicSizeConfigurationCollection& configs) override;
89 
93  virtual void clearAltitudeSpecificSizes() override;
94 
100  virtual void setIsForcedSizeByAltitudeEnabled(bool enabled) override;
101 
104  virtual void setAltitudeForForcedSize(double minimumAltitudeForUse) override;
105 
109  virtual void setLodOutAltitude(double lodOutAltitude) override;
110 
113  virtual void setIsLodOutAltitudeEnabled(bool isLodOutAltitudeEnabled) override;
114 
116  virtual void setPadding(float paddingX, float paddingY) override;
117 
119  virtual void setModelDefinition(const std::string& str) override;
120 
122  virtual void setEventsEnabled(bool enabled) override;
123 
125  virtual void setVisible(bool visible) override;
126  protected:
129  virtual void updateEventSignals() override;
130  protected:
133  unsigned int myLayer;
134  unsigned int myGroup;
137  float myRotation;
138 
140  };
141 }
A synchronized Quad and Widget for a interactive visible 2D graphic.
Definition: DtSprite.h:26
float myRotation
Definition: DtOsgWidget.h:137
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtWidget class.
DtOsgTextureWrapper * myTexture
Definition: DtOsgWidget.h:131
std::vector< DtDynamicSizeConfiguration > DtDynamicSizeConfigurationCollection
Definition: DtWidget.h:74
The abstract base class for widgets.
Definition: DtWidget.h:29
unsigned int myGroup
Definition: DtOsgWidget.h:134
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtOsgTextureWrapper.h:24
unsigned int myLayer
Definition: DtOsgWidget.h:133
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
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:76
The osg widget class is a distributed osg based widget.
Definition: DtOsgWidget.h:30
int myOriginOffsetX
Definition: DtOsgWidget.h:135
DtWidget::DtDynamicSizeConfigurationCollection myAltitudeSpecificSizes
Definition: DtOsgWidget.h:139
DtSprite * mySprite
Definition: DtOsgWidget.h:132
int myOriginOffsetY
Definition: DtOsgWidget.h:136

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)