h5geo 0.4.0
C++17 and python API to work with geo-data (seismic, wells, maps, other in process) based on HDF5. Aimed at geoscientists and developers.
Loading...
Searching...
No Matches
h5basepoints_py.h
1#ifndef H5BASEPOINTS_PY_H
2#define H5BASEPOINTS_PY_H
3
4#include "h5geo_py.h"
5
6#include <h5geo/private/h5basepointsimpl.h>
7
8namespace h5geopy {
9
10template <class TBase>
12{
14 py::class_<
18 H5Base,
19 std::unique_ptr<H5BasePoints, ObjectDeleter>>
20 &py_obj)
21 {
22 py_obj
23 .def("setNPoints", &H5BasePoints::setNPoints)
24 .def("setDomain", &H5BasePoints::setDomain)
25
26 .def("openContainer", &H5BasePoints::openContainer)
27 .def("getNPoints", &H5BasePoints::getNPoints)
28 .def("getDomain", &H5BasePoints::getDomain)
29 .def("getPointsD", &H5BasePoints::getPointsD)
30 .def("getParam", &H5BasePoints::getParam);
31 }
32};
33
34} // h5geopy
35
36#endif // H5BASEPOINTS_PY_H
Base class for all geo-containers and geo-objects.
Definition h5base.h:182
Base class for geo-objects.
Definition h5baseobject.h:13
Base class for Points.
Definition h5basepoints.h:16
virtual H5PointsParam getParam()=0
Get parameters that were used to create current points.
virtual bool setDomain(const h5geo::Domain &domain)=0
Set domain for the points (TVD, TVDSS, TWT, OWT)
virtual H5BaseContainer * openContainer() const =0
Open container where current points resides.
virtual bool setNPoints(size_t n)=0
Resize HDF5 DataSet.
virtual size_t getNPoints()=0
Return number of points.
virtual h5geo::Domain getDomain()=0
Get domain (TVD, TVDSS, TWT, OWT)
virtual std::optional< h5gt::DataSet > getPointsD() const =0
Get current points DataSet.
Definition h5basepointsimpl.h:12
Definition h5basepoints_py.h:12