VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtImageAttribute.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 #include <vrvCore/DtWidget.h>
16 
17 #include <osg/ref_ptr>
18 #include <osg/Texture>
19 
20 namespace makVrv
21 {
22 
23  class DtDe;
24  class DtQuad;
25 
29  {
30  public:
31 
33  DtImageAttribute( DtDe& de );
34 
36  virtual ~DtImageAttribute();
37 
39  virtual void setImageFilePath( const std::string& imageFilePath );
40 
43  virtual void setPosition( float x, float y, float z, float w );
44 
46  virtual void setOffset( double x, double y );
47 
49  virtual void getMinSize( double& xOut, double& yOut );
50 
52  virtual void setColor( float r, float g, float b, float a );
53 
55  virtual void setSize( double x, double y );
56 
58  virtual void setShadowText( bool enabled );
59 
61  virtual void setVisible( bool visible );
62 
64  virtual bool visible() const;
65 
68  virtual void setOverlay( unsigned int overlayId );
69 
72  virtual void setGroup( unsigned int group );
73 
74  protected:
75 
77  virtual void updateImageBox();
78 
79  protected:
80 
84  std::string myImageFilePath;
85  osg::ref_ptr<osg::Texture> myQuadTexture;
86 
87  };
88 
89 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)