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/Material> |
---|
18 | #include <osg/StateAttribute> |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | class WaterSurface |
---|
23 | { |
---|
24 | |
---|
25 | public: |
---|
26 | |
---|
27 | WaterSurface(SWWReader *sww); |
---|
28 | virtual osg::Geode* get(){ return _node; } |
---|
29 | virtual void setTimeStep( unsigned int ts ); |
---|
30 | virtual void toggleWireframe(); |
---|
31 | |
---|
32 | protected: |
---|
33 | |
---|
34 | SWWReader* _sww; |
---|
35 | osg::Geode* _node; |
---|
36 | osg::Geometry* _geom; |
---|
37 | osg::StateSet* _stateset; |
---|
38 | osg::Material* _material; |
---|
39 | virtual ~WaterSurface(); |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | |
---|
44 | #endif // WATERSURFACE_H |
---|
Note: See
TracBrowser
for help on using the repository browser.