source: Swollen/swollen/animation.h @ 317

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

Last release version changes

File size: 582 bytes
Line 
1/*
2    Animation Class
3
4    An OpenSceneGraph viewer for pyVolution .sww files.
5    copyright (C) 2004-2005 Geoscience Australia
6*/
7
8
9#ifndef ANIMATION_H
10#define ANIMATION_H
11
12
13#include <osg/Image>
14#include <customviewer.h>
15#include <string>
16
17
18class Animation
19{
20
21public:
22
23   Animation();
24   void setDirectory( std::string dirname );
25   void setViewer( CustomViewer viewer );
26   bool saveImage( unsigned int index );
27
28
29protected:
30
31   std::string _dirname;
32   int _x, _y;
33   unsigned int _width, _height;
34   osg::ref_ptr<osg::Image> _image;
35   bool _valid;
36};
37
38
39#endif  // ANIMATION_H
Note: See TracBrowser for help on using the repository browser.