8#include "SampleManager.h"
10#include "IException.h"
29 Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
30 cube.bandCount(), 1, cube.lineCount(), 1,
31 cube.pixelType(), reverse) {
46 string message =
"Invalid value for argument [sample]";
47 throw IException(IException::Programmer, message, _FILEINFO_);
51 string message =
"Invalid value for argument [band]";
52 throw IException(IException::Programmer, message, _FILEINFO_);
55 int map = (band - 1) *
MaxSamples() + sample - 1;
int MaxSamples() const
Returns the number of samples in the cube.
bool setpos(BigInt map)
Sets the position of the shape in the cube.
IO Handler for Isis Cubes.
bool SetSample(const int sample, const int band=1)
Positions the buffer at the requested line and returns a status indicator if the set was succesful or...
SampleManager(const Isis::Cube &cube, const bool reverse=false)
Constructs a SampleManager object.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.