AGX Dynamics
2.38.0.2
FilePlot.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
#pragma once
17
18
#include <
agxPlot/Output.h
>
19
20
#include <fstream>
21
#include <map>
22
#include <memory>
23
24
namespace
agxPlot
25
{
26
30
class
AGXPHYSICS_EXPORT
FilePlot
:
public
agxPlot::Output
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
}
agxPlot::FilePlot
Output definition that will write plot data to a file.
Definition:
FilePlot.h:30
agxPlot::DataPacket
Package of points for a specified curve.
Definition:
DataPacket.h:55
agxPlot
Namespace contains functionality related to plotting.
agxPlot::DescriptionPacket
Class that describes a package with plot data.
Definition:
DescriptionPacket.h:28
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxPlot::TimePacket
Definition:
TimePacket.h:24
Output.h
agx::AgXString< std::string >
agxPlot::Output
THis class wraps the description of data that should be plotted.
Definition:
Output.h:34
include
agxPlot
FilePlot.h
Generated on Sun Sep 1 2024 11:18:38 for AGX Dynamics by
1.8.17