source: Swollen/swollen/bedslope.h @ 126

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