AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
Hdf5Exporter.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXIO_HDF5EXPORTER_H
18#define AGXIO_HDF5EXPORTER_H
19
20#include <agx/config/AGX_USE_HDF5.h>
21#include <agx/config.h>
22#if AGX_USE_HDF5()
23
24#include <agx/AgxH5.h>
26
27namespace agxIO
28{
29
33 class AGXPHYSICS_EXPORT Hdf5Exporter : public agxSDK::StepEventListener
34 {
35 public:
36
40 Hdf5Exporter( const agx::String& filename = "data.h5" );
41
43 virtual void pre( const agx::TimeStamp& /* time */ ) override;
44
46 virtual void post( const agx::TimeStamp& /* time */ ) override;
47
48 protected:
52 virtual ~Hdf5Exporter();
53
54 private:
55 agx::String m_filename;
56 H5::H5File *m_f;
57 H5::Group m_g;
58 };
59
60}
61
62#endif
63
64#endif
65
#define AGXPHYSICS_EXPORT
Derive from this class to implement a listener for simulation step events.
The agxIO namespace contains classes for reading, writing and finding files.
Definition Material.h:42
agx::Real TimeStamp
Definition TimeStamp.h:26