Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
CubeTileHandler.h
1 #ifndef CubeTileHandler_h
2 #define CubeTileHandler_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "CubeIoHandler.h"
11 
12 namespace Isis {
13 
35  class CubeTileHandler : public CubeIoHandler {
36  public:
37  CubeTileHandler(QFile * dataFile, const QList<int> *virtualBandList,
38  const Pvl &label, bool alreadyOnDisk);
40 
41  void updateLabels(Pvl &label);
42 
43  protected:
44  virtual void readRaw(RawCubeChunk &chunkToFill);
45  virtual void writeRaw(const RawCubeChunk &chunkToWrite);
46 
47  private:
54 
63 
64  int findGoodSize(int maxSize, int dimensionSize) const;
65  BigInt getTileStartByte(const RawCubeChunk &chunk) const;
66  };
67 }
68 
69 #endif
Isis::RawCubeChunk
A section of raw data on the disk.
Definition: RawCubeChunk.h:27
Isis::CubeTileHandler::CubeTileHandler
CubeTileHandler(const CubeTileHandler &other)
Disallow copying of this object.
QList< int >
Isis::CubeTileHandler::operator=
CubeTileHandler & operator=(const CubeTileHandler &other)
Disallow assignments of this object.
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::CubeTileHandler::~CubeTileHandler
~CubeTileHandler()
Writes all data from memory to disk.
Definition: CubeTileHandler.cpp:56
Isis::CubeTileHandler::getTileStartByte
BigInt getTileStartByte(const RawCubeChunk &chunk) const
This is a helper method that goes from chunk to file position.
Definition: CubeTileHandler.cpp:163
Isis::CubeIoHandler
Handles converting buffers to and from disk.
Definition: CubeIoHandler.h:109
Isis::BigInt
long long int BigInt
Big int.
Definition: Constants.h:49
Isis::CubeTileHandler::updateLabels
void updateLabels(Pvl &label)
Update the cube labels so that this cube indicates what tile size it used.
Definition: CubeTileHandler.cpp:66
Isis::CubeTileHandler
IO Handler for Isis Cubes using the tile format.
Definition: CubeTileHandler.h:35
Isis::CubeTileHandler::readRaw
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.
Definition: CubeTileHandler.cpp:77
Isis::CubeTileHandler::CubeTileHandler
CubeTileHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a tile handler.
Definition: CubeTileHandler.cpp:32
Isis::CubeTileHandler::writeRaw
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself.
Definition: CubeTileHandler.cpp:102
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CubeTileHandler::findGoodSize
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's dimensions (samp...
Definition: CubeTileHandler.cpp:135

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 USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:22