23 #include "IsisDebug.h" 34 BufferManager::BufferManager() {
61 BufferManager::BufferManager(
int maxsamps,
int maxlines,
62 int maxbands,
int bufsamps,
63 int buflines,
int bufbands,
65 Isis::
Buffer(bufsamps, buflines, bufbands, type),
66 p_maxSamps(maxsamps), p_maxLines(maxlines),
67 p_maxBands(maxbands) {
81 p_maxSamps(other.p_maxSamps), p_maxLines(other.p_maxLines),
82 p_maxBands(other.p_maxBands), p_sinc(other.p_sinc), p_linc(other.p_linc),
83 p_binc(other.p_binc), p_soff(other.p_soff), p_loff(other.p_loff),
84 p_boff(other.p_boff), p_currentSample(other.p_currentSample),
85 p_currentLine(other.p_currentLine), p_currentBand(other.p_currentBand),
86 p_nmaps(other.p_nmaps), p_currentMap(other.p_currentMap),
87 p_reverse(other.p_reverse) {
245 map /= sampDimension;
252 map /= lineDimension;
262 map /= bandDimension;
269 map /= lineDimension;
279 string message =
"Invalid value for argument [map]";
Buffer for reading and writing cube data.
long long int BigInt
Big int.
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
bool p_reverse
If true the axies are processed in Band, Line, Sample order (e.g., BIL).
int p_sinc
Sample increment.
int p_maxLines
Maximum lines to map.
void SetBasePosition(const int start_sample, const int start_line, const int start_band)
This method is used to set the base position of the shape buffer.
Namespace for the standard library.
int p_binc
Band increment.
This error is for when a programmer made an API call that was illegal.
int p_maxSamps
Maximum samples to map.
PixelType
Enumerations for Isis Pixel Types.
void swap(BufferManager &other)
Swaps the values of this BufferManager with that of another.
int p_currentSample
Current sample.
Manages a Buffer over a cube.
#define _FILEINFO_
Macro for the filename and line number.
bool end() const
Returns true if the shape buffer has accessed the end of the cube.
BufferManager & operator=(const BufferManager &rhs)
Creates a new BufferManager with the same values as another.
bool setpos(BigInt map)
Sets the position of the shape in the cube.
int p_linc
Line increment.
BigInt p_currentMap
Current buffer map position.
int p_currentBand
Current band.
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
Namespace for ISIS/Bullet specific routines.
int p_maxBands
Maximum bands to map.
int p_currentLine
Current line.
BigInt p_nmaps
Total number of objects to map.