AnimatLab  2
Test
VsHudText.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace VortexAnimatSim
10 {
11  namespace Visualization
12  {
13 
14  class VORTEX_PORT VsHudText : public AnimatSim::HudText
15  {
16  protected:
17  float m_fltPrevious;
18  osg::ref_ptr<osgText::Text> m_osgText;
19  osg::ref_ptr<osg::Geode> m_osgGeode;
20 
21  public:
22  VsHudText();
23  VsHudText(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);
24  virtual ~VsHudText();
25 
26  virtual void ResetSimulation();
27 
28  osgText::Text *OsgText() {return m_osgText.get();};
29  osg::Geode *Geode() {return m_osgGeode.get();};
30 
31  virtual void Initialize(void *lpVoidProjection);
32  virtual void Update();
33  };
34 
35  } // Visualization
36 } //VortexAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.