AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
FilePlot.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#pragma once
17
18#include <agxPlot/Output.h>
19
20#include <fstream>
21#include <map>
22#include <memory>
23
24namespace agxPlot
25{
26
31 {
32 public:
33 FilePlot(const agx::String& fileName);
34
35 virtual void closeOutput();
36 virtual void handlePacket(DataPacket *packet);
37 virtual void handlePacket(DescriptionPacket *packet);
38 virtual void handlePacket(TimePacket* packet);
39
40 protected:
41 virtual ~FilePlot();
42 private:
43 bool m_closed;
44 agx::String m_outputFile;
45 std::map<CurveID, agx::String> m_subFiles;
46 std::map<CurveID, std::shared_ptr<std::ofstream>> m_fileOutStreams;
47 };
48}
#define AGXPHYSICS_EXPORT
Package of points for a specified curve.
Definition DataPacket.h:56
Class that describes a package with plot data.
Output definition that will write plot data to a file.
Definition FilePlot.h:31
virtual ~FilePlot()
virtual void handlePacket(TimePacket *packet)
virtual void handlePacket(DataPacket *packet)
virtual void closeOutput()
FilePlot(const agx::String &fileName)
virtual void handlePacket(DescriptionPacket *packet)
The description is as follows:
THis class wraps the description of data that should be plotted.
Definition Output.h:35
Namespace contains functionality related to plotting.