21 #ifndef RawCubeChunk_h 22 #define RawCubeChunk_h 45 RawCubeChunk(
int startSample,
int startLine,
int startBand,
46 int endSample,
int endLine,
int endBand,
int numBytes);
59 unsigned char getChar(
int offset)
const;
109 void setData(
unsigned char value,
int offset);
110 void setData(
short value,
int offset);
111 void setData(
const float &value,
const int &offset);
void setRawData(QByteArray rawData)
Sets the chunk's raw data.
float getFloat(int offset) const
char * m_rawBufferInternalPtr
This is the internal pointer to the raw buffer for performance.
Represents a 3D area (a 3D "cube")
int m_bandCount
The number of bands in the cube chunk.
QByteArray * m_rawBuffer
This is the raw data to be put on disk.
int m_sampleCount
The number of samples in the cube chunk.
RawCubeChunk(const Area3D &placement, int numBytes)
This constructor creates a new cube chunk based on the provided placement and data size...
int getStartSample() const
void setDirty(bool dirty)
Sets the chunk's dirty flag, indicating whether or not the chunk's data matches the data that is on d...
void setData(unsigned char value, int offset)
Sets the char at the given offset in the raw data buffer of this chunk.
RawCubeChunk & operator=(const RawCubeChunk &other)
The assignment operator is disabled.
virtual ~RawCubeChunk()
The destructor.
int m_lineCount
The number of lines in the cube chunk.
int m_startSample
The one-based (inclusive) start sample of the cube chunk.
A section of raw data on the disk.
unsigned char getChar(int offset) const
This method is currently not in use due to a faster way of getting data from the buffer (through the ...
Namespace for ISIS/Bullet specific routines.
int m_startBand
The one-based (inclusive) start band of the cube chunk.
QByteArray & getRawData() const
short getShort(int offset) const
int m_startLine
The one-based (inclusive) start line of the cube chunk.
bool m_dirty
True if the data does not match what is on disk.