Line | |
---|
1 | /* |
---|
2 | Surface class |
---|
3 | |
---|
4 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
5 | copyright (C) 2004 Geoscience Australia |
---|
6 | */ |
---|
7 | |
---|
8 | |
---|
9 | #ifndef SURFACE_H |
---|
10 | #define SURFACE_H |
---|
11 | |
---|
12 | |
---|
13 | #include <project.h> |
---|
14 | #include <osg/Geode> |
---|
15 | #include <osg/Material> |
---|
16 | #include <osg/StateAttribute> |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | class Surface |
---|
21 | { |
---|
22 | |
---|
23 | public: |
---|
24 | |
---|
25 | Surface(); |
---|
26 | virtual osg::Geode* get(){ return _node; } |
---|
27 | |
---|
28 | protected: |
---|
29 | |
---|
30 | osg::Geode* _node; |
---|
31 | osg::Geometry* _geom; |
---|
32 | osg::StateSet* _stateset; |
---|
33 | osg::Material* _material; |
---|
34 | virtual ~Surface(); |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | |
---|
39 | #endif // SURFACE_H |
---|
Note: See
TracBrowser
for help on using the repository browser.