/*****************************************************************************/ /* pixelArray.h /* /* pixelArray represents a base class for supporting the storage, management, /* and manipulation raster images. This class implements only the most common /* functionality: management of the image geometry, the title, and possibly /* other ancillary information (author, creator, filename, etc.) /* /* Robert R. Snapp Copyright (C) 2006. /*****************************************************************************/ #ifndef __PIXELARRAY_H__ #define __PIXELARRAY_H__ #include #include typedef unsigned long int uint32; class pixelArray { public: pixelArray() : rows_(0), cols_(0), bands_(0) {} pixelArray(uint32 r, uint32 c, uint32 d) : rows_(r), cols_(c), bands_(d) {}; ~pixelArray() {}; pixelArray(pixelArray &p) {}; pixelArray operator=(pixelArray &p) { rows_ = p.rows_; cols_ = p.cols_; bands_ = p.bands_; title_ = p.title_; } uint32 rows() {return rows_;} uint32 cols() {return cols_;} uint32 bands() {return bands_;} uint32 bytesPerRow() {return bytesPerRow_;} std::string title() const { return title_; } void setTitle(std::string s) { title_ = s; } void clear() { rows_ = 0; cols_ = 0; bands_ = 0; bytesPerRow_ = 0; title_.clear(); } protected: uint32 rows_; uint32 cols_; uint32 bands_; uint32 bytesPerRow_; std::string title_; }; #endif /* __PIXELARRAY_H__ */