AGX Dynamics  2.38.0.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 #pragma once
17 
18 #include <agxPlot/Packet.h>
19 #include <agxPlot/Curve.h>
20 
21 namespace agxPlot
22 {
24  struct DataPoint
25  {
28  };
29 
31 
35  class DataSeriesPacket : public Packet
36  {
37  public:
39 
40  void addData(agx::Real point);
41 
42  const agx::RealVector& getDataPoints() const;
43 
44  protected:
45  virtual ~DataSeriesPacket();
46 
47  private:
48  agx::RealVector m_dataPoints;
49  };
51 
55  class DataPacket : public Packet
56  {
57  public:
58  DataPacket();
59 
60  void addCurveData(CurveID curveId, CurvePoint point);
61  void addCurveData(CurveID curveId, CurvePointVector points);
62 
63  const DataPointVector& getDataPoints() const;
64 
65  protected:
66  virtual ~DataPacket();
67 
68  private:
69  DataPointVector m_dataPoints;
70  };
72 }
agxPlot::DataSeriesPacket::~DataSeriesPacket
virtual ~DataSeriesPacket()
agx::Real
double Real
Definition: Real.h:42
agxPlot::DataPacket
Package of points for a specified curve.
Definition: DataPacket.h:55
agxPlot::DataPoint
Definition of a data point.
Definition: DataPacket.h:24
agx::Vector< DataPoint >
agxPlot
Namespace contains functionality related to plotting.
agxPlot::DataPoint::ID
CurveID ID
Definition: DataPacket.h:26
agxPlot::DataSeriesPacket::DataSeriesPacket
DataSeriesPacket()
agxPlot::Packet
Definition: Packet.h:24
agxPlot::DataSeriesPacket::getDataPoints
const agx::RealVector & getDataPoints() const
agx::VectorPOD< Real >
Packet.h
agxPlot::DataSeriesPacket::addData
void addData(agx::Real point)
agxPlot::DataPacket::getDataPoints
const DataPointVector & getDataPoints() const
agxPlot::DataPacket::DataPacket
DataPacket()
agx::Vec2T< Real >
agxPlot::DataPacket::addCurveData
void addCurveData(CurveID curveId, CurvePoint point)
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agxPlot::DataPoint::point
CurvePoint point
Definition: DataPacket.h:27
agxPlot::CurveID
agx::UInt CurveID
Definition: Curve.h:29
Curve.h
agxPlot::DataPacket::~DataPacket
virtual ~DataPacket()
agxPlot::DataSeriesPacket
Package with a series of real values.
Definition: DataPacket.h:35
agxPlot::DataPointVector
agx::Vector< DataPoint > DataPointVector
Definition: DataPacket.h:30