Changeset 5488
- Timestamp:
- Jul 11, 2008, 1:12:37 PM (16 years ago)
- Location:
- anuga_work/development/anugavis/src
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anugavis/src/Makefile.am
r5487 r5488 25 25 libanugavis_cxx_a_SOURCES = anugavis.cc \ 26 26 anugavis.hh \ 27 netcdf_file.cc \28 netcdf_file.hh \29 27 output.cc \ 30 output.hh 28 output.hh \ 29 sww_file.cc \ 30 sww_file.hh 31 31 libanugavis_cxx_a_LIBADD = $(LIBOBJS) 32 32 -
anuga_work/development/anugavis/src/anugavis.cc
r5487 r5488 20 20 using std::string; 21 21 22 AnugaVis::AnugaVis(const string & sww_file, int width, int height):23 screen(NULL), netcdf(sww_file){22 AnugaVis::AnugaVis(const string &file_name, int width, int height): 23 screen(NULL), sww_file(file_name){ 24 24 init_SDL(width, height); 25 25 init_OpenGL(width, height); -
anuga_work/development/anugavis/src/anugavis.hh
r5487 r5488 6 6 #include <string> 7 7 #include <SDL.h> 8 #include " netcdf_file.hh"8 #include "sww_file.hh" 9 9 10 10 using std::string; … … 18 18 void init_OpenGL(int width, int height); 19 19 SDL_Surface *screen; 20 NetCDFFile netcdf;20 SWWFile sww_file; 21 21 }; 22 22 -
anuga_work/development/anugavis/src/sww_file.cc
r5487 r5488 1 1 #include <string> 2 2 #include <netcdf.h> 3 #include " netcdf_file.hh"3 #include "sww_file.hh" 4 4 5 5 using std::string; 6 6 7 NetCDFFile::NetCDFFile(const string &file_name){7 SWWFile::SWWFile(const string &file_name){ 8 8 int ncstatus; 9 9 if((ncstatus = nc_open(file_name.c_str(), … … 12 12 } 13 13 14 NetCDFFile::~NetCDFFile(void){14 SWWFile::~SWWFile(void){ 15 15 nc_close(this->netcdf_id); 16 16 } -
anuga_work/development/anugavis/src/sww_file.hh
r5487 r5488 1 #ifndef NETCDF_FILE_HH2 #define NETCDF_FILE_HH1 #ifndef SWW_FILE_HH 2 #define SWW_FILE_HH 3 3 4 4 /* A simple read-only wrapper around the NetCDF C calls, since it's … … 9 9 using std::string; 10 10 11 class NetCDFFile{11 class SWWFile{ 12 12 public: 13 NetCDFFile(const string &file_name);14 ~ NetCDFFile(void);13 SWWFile(const string &file_name); 14 ~SWWFile(void); 15 15 private: 16 16 int netcdf_id;
Note: See TracChangeset
for help on using the changeset viewer.