cctw  0.2.1
cctwinputdatah5.h
Go to the documentation of this file.
1 #ifndef CCTWINPUTDATAH5_H
2 #define CCTWINPUTDATAH5_H
3 
4 #include "cctwobject.h"
5 #include "hdf5.h"
6 #include "cctwvector3d.h"
7 
8 class CctwInputDataH5 : public CctwObject
9 {
10  Q_OBJECT
11 public:
12  explicit CctwInputDataH5(QString filePath, QString datasetName, QString name, CctwObject *parent);
13 
14 signals:
15 
16 public slots:
17  virtual double readData(int dx, int dy, int dz);
18  QVector<double> readChunk(int ix, int iy, int iz,
19  int nx, int ny, int nz);
20 
21 public:
23  CctwIntVector3D chunkSize() const;
24 
25 private:
26  bool openInputFile();
27 // CctwIntVector3D datasetDimensionsH5(QString filePath, QString datasetName);
28 // CctwIntVector3D datasetChunkSizeH5(QString filePath, QString datasetName);
29 
30  void setDimensions(CctwIntVector3D dims);
31  void setChunkSize(CctwIntVector3D cksz);
32 
33 private:
36  QString m_InputFilePath;
37  QString m_DatasetName;
38  hid_t m_FileId;
39  hid_t m_DatasetId;
41 };
42 
43 #endif // CCTWINPUTDATAH5_H
QString name
Definition: cctwobject.h:32
QVector< double > readChunk(int ix, int iy, int iz, int nx, int ny, int nz)
QString m_InputFilePath
virtual double readData(int dx, int dy, int dz)
CctwIntVector3D chunkSize() const
CctwIntVector3D dimensions() const
void setChunkSize(CctwIntVector3D cksz)
CctwInputDataH5(QString filePath, QString datasetName, QString name, CctwObject *parent)
CctwIntVector3D m_ChunkSize
void setDimensions(CctwIntVector3D dims)
CctwIntVector3D m_Dimensions