AnimatLab  2
Test
OsgHudText.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace OsgAnimatSim
10 {
11  namespace Visualization
12  {
13 
14  class ANIMAT_OSG_PORT OsgHudText : 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  OsgHudText();
23  OsgHudText(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 ~OsgHudText();
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 } //OsgAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.