Isis 3.0 Programmer Reference
Back | Home
CubeBsqHandler.h
Go to the documentation of this file.
1 
23 #ifndef CubeBsqHandler_h
24 #define CubeBsqHandler_h
25 
26 #include "CubeIoHandler.h"
27 
28 namespace Isis {
56  class CubeBsqHandler : public CubeIoHandler {
57  public:
58  CubeBsqHandler(QFile * dataFile, const QList<int> *virtualBandList,
59  const Pvl &label, bool alreadyOnDisk);
61 
62  void updateLabels(Pvl &labels);
63 
64  protected:
65  virtual void readRaw(RawCubeChunk &chunkToFill);
66  virtual void writeRaw(const RawCubeChunk &chunkToWrite);
67 
68  private:
74  CubeBsqHandler(const CubeBsqHandler &other);
75 
84 
85  int findGoodSize(int maxSize, int dimensionSize) const;
86  BigInt getChunkStartByte(const RawCubeChunk &chunk) const;
87  };
88 }
89 
90 #endif
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.
IO Handler for Isis Cubes using the BSQ format.
~CubeBsqHandler()
The destructor writes all cached data to disk.
Handles converting buffers to and from disk.
int findGoodSize(int maxSize, int dimensionSize) const
This method attempts to compute a good chunk line size.
A section of raw data on the disk.
Definition: RawCubeChunk.h:42
CubeBsqHandler & operator=(const CubeBsqHandler &other)
Disallow assignments of this object.
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself...
Container for cube-like labels.
Definition: Pvl.h:135
CubeBsqHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a BSQ IO handler.
BigInt getChunkStartByte(const RawCubeChunk &chunk) const
This is a helper method that goes from chunk to file position.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:16:57