VR-Forces 4.1.1 Class Documentation
DtOsgWindowTextInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgWindowTextInstance.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgWindowTextInstance_H_
14 #define DtOsgWindowTextInstance_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 #include <vrvGraphics/DtFont.h>
19 #include <osg/Vec2>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtTextProxy;
25 
30  {
31  public:
34 
36  virtual ~DtOsgWindowTextInstance();
37 
39  virtual void setTopLeftCorner(float x, float y) ;
40 
42  virtual void setVisible(bool isVisible);
43 
45  virtual void setColor(float r,float g,float b,float a);
46 
48  virtual void setText(const std::string& textString);
49 
51  virtual void setFont(const std::string& fontFile, float sizeInPoints);
52 
54  virtual void setTextBoxWidth(unsigned int widthInPixels);
55 
57  virtual void setAlignment(DtWindowText::TextAlignment alignment);
58 
60  virtual bool visible() const;
61 
62  protected:
63 
65  void createText();
66 
68  float myColorR, myColorG, myColorB, myColorA;
69  std::string myFontFile;
70  std::string myTextString;
71  float mySize;
72  float myWidth;
73  float myTopLeftX;
74  float myTopLeftY;
77  };
78 }
79 
80 #endif

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)