AGX Dynamics  2.37.3.2
DataPacket.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 
17 #ifndef AGXPLOT_DATAPACKET_H
18 #define AGXPLOT_DATAPACKET_H
19 
20 #include <agxPlot/Packet.h>
21 #include <agxPlot/Curve.h>
22 
23 namespace agxPlot
24 {
25  struct DataPoint
26  {
29  };
30 
32 
33  class DataSeriesPacket : public Packet
34  {
35  public:
37 
38  void addData(agx::Real point);
39 
40  const agx::RealVector& getDataPoints() const;
41 
42  protected:
43  virtual ~DataSeriesPacket();
44 
45  private:
46  agx::RealVector m_dataPoints;
47  };
49 
50  class DataPacket : public Packet
51  {
52  public:
53  DataPacket();
54 
55  void addCurveData(CurveID curveId, CurvePoint point);
56  void addCurveData(CurveID curveId, CurvePointVector points);
57 
58  const DataPointVector& getDataPoints() const;
59 
60  protected:
61  virtual ~DataPacket();
62 
63  private:
64  DataPointVector m_dataPoints;
65  };
67 }
68 
69 #endif
CurvePoint point
Definition: DataPacket.h:28
Namespace contains functionality related to plotting.
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Vector< DataPoint > DataPointVector
Definition: DataPacket.h:31
double Real
Definition: Real.h:42
agx::UInt CurveID
Definition: Curve.h:30