source: Swollen/swollen/watersurface.h @ 6

Last change on this file since 6 was 6, checked in by darran, 19 years ago

new import

File size: 719 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/Material>
18#include <osg/StateAttribute>
19
20
21
22class WaterSurface
23{
24
25public:
26
27    WaterSurface(SWWReader *sww);
28    virtual osg::Geode* get(){ return _node; }
29    virtual void setTimeStep( unsigned int ts );
30    virtual void toggleWireframe();
31
32protected:
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.