7#include "LineManager.h"
28 Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
29 cube.bandCount(), cube.sampleCount(), 1, 1,
30 cube.pixelType(), reverse) {
46 QString message =
"LineManager is unable to set the line to ["
47 +
toString(line) +
"]. Minimum line value is 1.";
48 throw IException(IException::Programmer, message, _FILEINFO_);
52 string message =
"LineManager is unable to set the line for band ["
53 + IString(band) +
"]. Minimum band value is 1.";
54 throw IException(IException::Programmer, message, _FILEINFO_);
57 int map = (band - 1) *
MaxLines() + line - 1;
int MaxLines() const
Returns the number of lines in the cube.
bool setpos(BigInt map)
Sets the position of the shape in the cube.
IO Handler for Isis Cubes.
bool SetLine(const int line, const int band=1)
Positions the buffer at the requested line and returns a status indicator if the set was succesful or...
LineManager(const Isis::Cube &cube, const bool reverse=false)
Constructs a LineManager object.
This is free and unencumbered software released into the public domain.
QString toString(const LinearAlgebra::Vector &vector, int precision)
A global function to format LinearAlgebra::Vector as a QString with the given precision.
Namespace for the standard library.