VR-Forces 4.8 Class Documentation
 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) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 #include <vrvCore/DtWidget.h>
13 #include <osg/ref_ptr>
14 #include <osg/Texture>
15 
16 namespace osg
17 {
18  class Texture;
19 }
20 
21 namespace makVrv
22 {
23  class DtSprite;
24 
28  {
29  public:
30 
32  DtOsgWidget(DtDe& de, DtUniqueID id);
33 
35  virtual ~DtOsgWidget();
36 
38  virtual void setParentId( DtUniqueID id);
39 
41  virtual void setOverlay(unsigned int layer);
42 
44  virtual void setRotation( float );
45 
47  virtual float getRotation() const;
48 
50  unsigned int overlay() const;
51 
53  virtual void setOrderGroup(unsigned int group);
54 
56  virtual unsigned int orderGroup() const;
57 
59  virtual void setPosition(float x,float y,float z,float w = 0);
60 
63  virtual void setBackgroundImage(const std::string& filename);
64 
67  virtual void setBackgroundImage(const std::string& filename,
68  float left,float right,float bottom,float top);
69 
73  virtual void setColor(float r,float g,float b, float a);
74 
77  virtual void setOrigin(float originX, float originY);
78 
80  virtual void setSize(float w, float h);
81 
83  virtual void setPadding(float paddingX, float paddingY);
84 
86  virtual void setModelDefinition(const std::string& str);
87 
89  virtual void setEventsEnabled(bool enabled);
90 
92  virtual void setVisible(bool visible);
93 
94  protected:
95 
98  unsigned int myLayer;
99  unsigned int myGroup;
100  float myRotation;
101  };
102 }
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:100
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Texture > myTexture
Definition: DtOsgWidget.h:96
Contains makVrv::DtWidget class.
The abstract base class for widgets.
Definition: DtWidget.h:23
unsigned int myGroup
Definition: DtOsgWidget.h:99
unsigned int myLayer
Definition: DtOsgWidget.h:98
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
The osg widget class is a distributed osg based widget.
Definition: DtOsgWidget.h:27
DtSprite * mySprite
Definition: DtOsgWidget.h:97

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)