File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
CubeBsqHandler.h
1 #ifndef CubeBsqHandler_h
2 #define CubeBsqHandler_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "CubeIoHandler.h"
11 
12 namespace Isis {
41  class CubeBsqHandler : public CubeIoHandler {
42  public:
43  CubeBsqHandler(QFile * dataFile, const QList<int> *virtualBandList,
44  const Pvl &label, bool alreadyOnDisk);
46 
47  void updateLabels(Pvl &labels);
48 
49  protected:
50  virtual void readRaw(RawCubeChunk &chunkToFill);
51  virtual void writeRaw(const RawCubeChunk &chunkToWrite);
52 
53  private:
60 
69 
70  int findGoodSize(int maxSize, int dimensionSize) const;
71  BigInt getChunkStartByte(const RawCubeChunk &chunk) const;
72  };
73 }
74 
75 #endif
Isis::RawCubeChunk
A section of raw data on the disk.
Definition: RawCubeChunk.h:27
Isis::CubeBsqHandler::findGoodSize
int findGoodSize(int maxSize, int dimensionSize) const
This method attempts to compute a good chunk line size.
Definition: CubeBsqHandler.cpp:133
QList< int >
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::CubeBsqHandler::getChunkStartByte
BigInt getChunkStartByte(const RawCubeChunk &chunk) const
This is a helper method that goes from chunk to file position.
Definition: CubeBsqHandler.cpp:157
Isis::CubeBsqHandler::updateLabels
void updateLabels(Pvl &labels)
Function to update the labels with a Pvl object.
Definition: CubeBsqHandler.cpp:68
Isis::CubeBsqHandler::writeRaw
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself.
Definition: CubeBsqHandler.cpp:100
Isis::CubeBsqHandler::operator=
CubeBsqHandler & operator=(const CubeBsqHandler &other)
Disallow assignments of this object.
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::CubeBsqHandler::readRaw
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.
Definition: CubeBsqHandler.cpp:75
Isis::CubeBsqHandler::CubeBsqHandler
CubeBsqHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a BSQ IO handler.
Definition: CubeBsqHandler.cpp:34
Isis::CubeBsqHandler
IO Handler for Isis Cubes using the BSQ format.
Definition: CubeBsqHandler.h:41
Isis::CubeBsqHandler::CubeBsqHandler
CubeBsqHandler(const CubeBsqHandler &other)
Disallow copying of this object.
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CubeBsqHandler::~CubeBsqHandler
~CubeBsqHandler()
The destructor writes all cached data to disk.
Definition: CubeBsqHandler.cpp:58

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:21