Last change
on this file since 71 was
48,
checked in by darran, 20 years ago
|
- added alpha-related command line params
- added -nosky flag
|
File size:
649 bytes
|
Line | |
---|
1 | |
---|
2 | /* |
---|
3 | WaterSurface class |
---|
4 | |
---|
5 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
6 | copyright (C) 2004 Geoscience Australia |
---|
7 | */ |
---|
8 | |
---|
9 | |
---|
10 | #ifndef WATERSURFACE_H |
---|
11 | #define WATERSURFACE_H |
---|
12 | |
---|
13 | |
---|
14 | #include <project.h> |
---|
15 | #include <SWWReader.h> |
---|
16 | #include <osg/Geode> |
---|
17 | #include <osg/StateAttribute> |
---|
18 | |
---|
19 | |
---|
20 | class WaterSurface |
---|
21 | { |
---|
22 | |
---|
23 | public: |
---|
24 | |
---|
25 | WaterSurface(SWWReader *sww); |
---|
26 | virtual osg::Geode* get(){ return _node; } |
---|
27 | virtual void setTimeStep( unsigned int ts ); |
---|
28 | virtual void toggleWireframe(); |
---|
29 | |
---|
30 | protected: |
---|
31 | |
---|
32 | SWWReader* _sww; |
---|
33 | osg::Geode* _node; |
---|
34 | osg::Geometry* _geom; |
---|
35 | osg::StateSet* _stateset; |
---|
36 | virtual ~WaterSurface(); |
---|
37 | |
---|
38 | }; |
---|
39 | |
---|
40 | |
---|
41 | #endif // WATERSURFACE_H |
---|
Note: See
TracBrowser
for help on using the repository browser.