Last change
on this file since 865 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:
716 bytes
|
Rev | Line | |
---|
[45] | 1 | |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | BedSlope class |
---|
| 5 | |
---|
| 6 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
[116] | 7 | copyright (C) 2004-2005 Geoscience Australia |
---|
[45] | 8 | */ |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | #ifndef BEDSLOPE_H |
---|
| 12 | #define BEDSLOPE_H |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | #include <project.h> |
---|
[6] | 16 | #include <SWWReader.h> |
---|
| 17 | #include <osg/Geode> |
---|
[65] | 18 | #include <osg/Material> |
---|
[6] | 19 | #include <osg/StateAttribute> |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | class BedSlope |
---|
| 24 | { |
---|
| 25 | |
---|
| 26 | public: |
---|
| 27 | |
---|
| 28 | BedSlope(SWWReader *sww); |
---|
| 29 | virtual osg::Geode* get(){ return _node; } |
---|
| 30 | virtual osg::BoundingBox getBound(){ return _geom->getBound(); } |
---|
[116] | 31 | virtual void update(){} |
---|
[6] | 32 | |
---|
[72] | 33 | |
---|
[6] | 34 | protected: |
---|
| 35 | |
---|
| 36 | SWWReader* _sww; |
---|
| 37 | osg::Geode* _node; |
---|
| 38 | osg::Geometry* _geom; |
---|
| 39 | osg::StateSet* _stateset; |
---|
[65] | 40 | osg::Material* _material; |
---|
[6] | 41 | virtual ~BedSlope(){;} |
---|
[72] | 42 | bool _texture; |
---|
[6] | 43 | |
---|
| 44 | }; |
---|
[45] | 45 | |
---|
| 46 | |
---|
| 47 | #endif // BEDSLOPE_H |
---|
Note: See
TracBrowser
for help on using the repository browser.