VR-Forces 4.10 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;
86 
87  };
88 
89 }
DtBaseOutlineAttribute myOutlineAttribute
Definition: DtImageAttribute.h:82
Declares the DtBaseOutlineAttribute class declaration.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::string myImageFilePath
Definition: DtImageAttribute.h:84
The attribute layout tells DtAttributes where to draw.
Definition: DtBaseOutlineAttribute.h:25
The attribute layout tells DtAttributes where to draw.
Definition: DtAttribute.h:21
Attribute that generates a colored quad.
Definition: DtBaseQuadAttribute.h:25
Contains makVrv::DtWidget class.
The attribute layout tells DtAttributes where to draw.
Definition: DtImageAttribute.h:28
Declares the DtBaseQuadAttribute class declaration.
DtBaseQuadAttribute myQuadAttribute
Definition: DtImageAttribute.h:81
osg::ref_ptr< osg::Texture > myQuadTexture
Definition: DtImageAttribute.h:85
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtImageAttribute.h:83

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)