source: Swollen/swollen/hud.h @ 2197

Last change on this file since 2197 was 116, checked in by darran, 19 years ago
  • distro20050627
  • functioning record/playback/save. Can't yet replay from movie.swm
  • image capture not yet implemented.
File size: 826 bytes
Line 
1
2/*
3    Head's up viewer class
4
5    An OpenSceneGraph viewer for pyVolution SWW files.
6    copyright (C) 2004 Geoscience Australia
7*/
8
9
10#ifndef HUD_H
11#define HUD_H
12
13#include <project.h>
14#include <osg/Projection>
15#include <osgText/Font>
16#include <osgText/Text>
17
18
19class HeadsUpDisplay
20{
21
22public:
23
24    HeadsUpDisplay();
25    virtual void setTime(float t);
26    virtual void setTitle(char* s);
27    virtual void setMode(char* s);
28    virtual void update();
29    virtual osg::Projection* get(){ return _projection; }
30
31protected:
32
33    osg::Projection* _projection;
34    osgText::Text* _titletext;
35    osgText::Text* _timetext;
36    osgText::Text* _modetext;
37    float _timevalue;
38    std::string _modestring;
39    std::string _titlestring;
40    bool _dirtytime, _dirtymode, _dirtytitle;
41    virtual ~HeadsUpDisplay();
42
43};
44
45#endif  // HUD_H
Note: See TracBrowser for help on using the repository browser.