1 #ifndef BufferManager_h
2 #define BufferManager_h
73 int bufsamps,
int buflines,
int bufbands,
114 return (
setpos(p_currentMap + 1));
123 return (p_currentMap >= p_nmaps);
173 void SetIncrements(
const int sinc,
const int linc,
const int binc);
174 void SetOffsets(
const int soff,
const int loff,
const int boff);
Buffer for reading and writing cube data.
Definition: Buffer.h:68
long long int BigInt
Definition: Constants.h:63
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
Definition: BufferManager.cpp:176
BufferManager & operator+=(int i)
Definition: BufferManager.h:93
bool end() const
Returns true if the shape buffer has accessed the end of the cube.
Definition: BufferManager.h:122
int MaxSamples() const
Returns the number of samples in the cube.
Definition: BufferManager.h:141
~BufferManager()
Destroys the BufferManager object.
Definition: BufferManager.h:78
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:43
void swap(BufferManager &other)
Definition: BufferManager.cpp:85
bool begin()
Moves the shape buffer to the first position.
Definition: BufferManager.h:103
int MaxLines() const
Returns the number of lines in the cube.
Definition: BufferManager.h:150
BigInt MaxMaps() const
Returns the maximum number of positions the shape buffer needs to cover the entire image (see setpos ...
Definition: BufferManager.h:169
Manages a Buffer over a cube.
Definition: BufferManager.h:67
bool next()
Moves the shape buffer to the next position.
Definition: BufferManager.h:113
BufferManager()
Definition: BufferManager.cpp:34
BufferManager & operator=(const BufferManager &rhs)
Definition: BufferManager.cpp:104
int MaxBands() const
Returns the number of bands in the cube.
Definition: BufferManager.h:159
bool setpos(BigInt map)
Sets the position of the shape in the cube.
Definition: BufferManager.cpp:216
bool operator++(int)
Moves the shape buffer to the next position.
Definition: BufferManager.h:88
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
Definition: BufferManager.cpp:137