Rev | Line | |
---|
[6] | 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 | |
---|
| 19 | class HeadsUpDisplay |
---|
| 20 | { |
---|
| 21 | |
---|
| 22 | public: |
---|
| 23 | |
---|
| 24 | HeadsUpDisplay(); |
---|
| 25 | virtual void setTime(float t); |
---|
| 26 | virtual void setTitle(char *s); |
---|
| 27 | virtual osg::Projection* get(){ return _projection; } |
---|
| 28 | |
---|
| 29 | protected: |
---|
| 30 | |
---|
| 31 | osg::Projection* _projection; |
---|
| 32 | osgText::Text* _title; |
---|
| 33 | osgText::Text* _time; |
---|
| 34 | virtual ~HeadsUpDisplay(); |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | #endif // HUD_H |
---|
Note: See
TracBrowser
for help on using the repository browser.