AnimatLab  2
Test
HudText.h
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11 
12  class ANIMAT_PORT HudText : public HudItem
13  {
14  protected:
15  std::string m_strDisplayTargetID;
16  std::string m_strDisplayDataType;
17  std::string m_strUpdateTargetID;
18  std::string m_strUpdateDataType;
19 
20  float m_fltUpdateInterval;
21 
22  CStdColor m_aryColor;
23  CStdFPoint m_ptPosition;
24  std::string m_strFont;
25  int m_iCharSize;
26  std::string m_strText;
27  float *m_lpDisplayData;
28  float *m_lpUpdateData;
29 
30  public:
31  HudText();
32  HudText(float *aryColor, CStdFPoint &ptPosition, std::string strFont, int iCharSize, std::string strText, std::string strDisplayTargetID, std::string strDisplayDataType, std::string strUpdateTargetID, std::string strUpdateDataType, float fltUpdateInterval);
33  virtual ~HudText();
34 
35  static HudText *CastToDerived(AnimatBase *lpBase) {return static_cast<HudText*>(lpBase);}
36 
37  virtual void Initialize(void *lpVoidProjection);
38  virtual void Load(CStdXml &oXml);
39  };
40 
41 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
Animat base class.
Definition: AnimatBase.h:36