Isis 3 Programmer Reference
CubeTileHandler.h
Go to the documentation of this file.
1 
24 #ifndef CubeTileHandler_h
25 #define CubeTileHandler_h
26 
27 #include "CubeIoHandler.h"
28 
29 namespace Isis {
30 
52  class CubeTileHandler : public CubeIoHandler {
53  public:
54  CubeTileHandler(QFile * dataFile, const QList<int> *virtualBandList,
55  const Pvl &label, bool alreadyOnDisk);
57 
58  void updateLabels(Pvl &label);
59 
60  protected:
61  virtual void readRaw(RawCubeChunk &chunkToFill);
62  virtual void writeRaw(const RawCubeChunk &chunkToWrite);
63 
64  private:
70  CubeTileHandler(const CubeTileHandler &other);
71 
80 
81  int findGoodSize(int maxSize, int dimensionSize) const;
82  BigInt getTileStartByte(const RawCubeChunk &chunk) const;
83  };
84 }
85 
86 #endif
long long int BigInt
Big int.
Definition: Constants.h:65
CubeTileHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a tile handler.
int findGoodSize(int maxSize, int dimensionSize) const
This is a helper method that tries to compute a good tile size for one of the cube&#39;s dimensions (samp...
CubeTileHandler & operator=(const CubeTileHandler &other)
Disallow assignments of this object.
Handles converting buffers to and from disk.
~CubeTileHandler()
Writes all data from memory to disk.
A section of raw data on the disk.
Definition: RawCubeChunk.h:42
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself...
IO Handler for Isis Cubes using the tile format.
Container for cube-like labels.
Definition: Pvl.h:135
BigInt getTileStartByte(const RawCubeChunk &chunk) const
This is a helper method that goes from chunk to file position.
void updateLabels(Pvl &label)
Update the cube labels so that this cube indicates what tile size it used.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.