VR-Forces 4.1.1 Class Documentation
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 
62  virtual void setBackgroundImage(const std::string& filename);
63 
65  virtual void setBackgroundImage(const std::string& filename,
66  float left,float right,float bottom,float top);
67 
69  virtual void setColor(float r,float g,float b, float a);
70 
73  virtual void setOrigin(float originX, float originY);
74 
76  virtual void setSize(float w, float h);
77 
79  virtual void setPadding(float paddingX, float paddingY);
80 
82  virtual void setModelDefinition(const std::string& str);
83 
85  virtual void setEventsEnabled(bool enabled);
86 
88  virtual void setVisible(bool visible);
89 
90  protected:
91 
92  osg::ref_ptr<osg::Texture> myTexture;
94  unsigned int myLayer;
95  unsigned int myGroup;
96  float myRotation;
97  };
98 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)