volmetrics
diff src/volume.h @ 3:927c29b93009
added image.cc
author | Eleni Maria Stea <elene.mst@gmail.com> |
---|---|
date | Sat, 11 Jan 2014 22:55:27 +0200 |
parents | cca2e05dbabe |
children | 1fbbe10c8e08 |
line diff
1.1 --- a/src/volume.h Sat Jan 11 18:00:02 2014 +0200 1.2 +++ b/src/volume.h Sat Jan 11 22:55:27 2014 +0200 1.3 @@ -1,9 +1,24 @@ 1.4 #ifndef VOLUME_H_ 1.5 #define VOLUME_H_ 1.6 1.7 +#include <vector> 1.8 +#include "image.h" 1.9 + 1.10 class Volume { 1.11 private: 1.12 + std::vector<Image> slices; 1.13 1.14 +public: 1.15 + Volume(); 1.16 + ~Volume(); 1.17 + 1.18 + bool load_volume(const char *fname); 1.19 + void push_slice(Image *slice); 1.20 + 1.21 + Image *get_slice(); 1.22 + const Image *get_slice() const; 1.23 + 1.24 + void draw(); 1.25 }; 1.26 1.27 #endif // VOLUME_H_