-
Notifications
You must be signed in to change notification settings - Fork 2
/
h5cgnsparticlegroupimagesolution.h
51 lines (36 loc) · 1.3 KB
/
h5cgnsparticlegroupimagesolution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef H5CGNSPARTICLEGROUPIMAGESOLUTION_H
#define H5CGNSPARTICLEGROUPIMAGESOLUTION_H
#include "iriclib_global.h"
#include "h5util.h"
#include <hdf5.h>
#include <string>
#include <vector>
namespace iRICLib {
class H5CgnsZone;
class IRICLIBDLL H5CgnsParticleGroupImageSolution
{
public:
H5CgnsParticleGroupImageSolution(const std::string& name, hid_t groupId, H5CgnsZone* zone);
~H5CgnsParticleGroupImageSolution();
std::string name() const;
int readGroupNames(std::vector<std::string>* names) const;
int count(const std::string& groupName, int* count);
int readCoordinatesX(const std::string& groupName, std::vector<double>* values) const;
int readCoordinatesY(const std::string& groupName, std::vector<double>* values) const;
int readSize(const std::string& groupName, std::vector<double>* values) const;
int readAngle(const std::string& groupName, std::vector<double>* values) const;
void writeBegin(const std::string& groupName);
int writeEnd();
void writePos2d(double x, double y, double size, double angle);
H5CgnsZone* zone() const;
class GroupReader;
GroupReader groupReader(const std::string& name);
private:
class Impl;
Impl* impl;
};
} // namespace iRICLib
#ifdef _DEBUG
#include "private/h5cgnsparticlegroupsolution_impl.h"
#endif // _DEBUG
#endif // H5CGNSPARTICLEGROUPIMAGESOLUTION_H