AGXDynamics
2.35.0.3
DataPacket.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. 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
{
27
CurveID
ID
;
28
CurvePoint
point
;
29
};
30
31
typedef
agx::Vector<DataPoint>
DataPointVector
;
32
33
class
DataSeriesPacket
:
public
Packet
34
{
35
public
:
36
DataSeriesPacket
();
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
};
48
AGX_DECLARE_POINTER_TYPES
(
DataSeriesPacket
);
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
};
66
AGX_DECLARE_POINTER_TYPES
(
DataPacket
);
67
}
68
69
#endif
agxPlot::DataSeriesPacket::~DataSeriesPacket
virtual ~DataSeriesPacket()
agx::Real
double Real
Definition:
Real.h:42
agxPlot::DataPacket
Definition:
DataPacket.h:50
agxPlot::DataPoint
Definition:
DataPacket.h:25
agx::Vector< DataPoint >
agxPlot
Namespace contains functionality related to plotting.
agxPlot::DataPoint::ID
CurveID ID
Definition:
DataPacket.h:27
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
Definition:
Vec2Template.h:30
agxPlot::DataPacket::addCurveData
void addCurveData(CurveID curveId, CurvePoint point)
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxPlot::DataPoint::point
CurvePoint point
Definition:
DataPacket.h:28
agxPlot::CurveID
agx::UInt CurveID
Definition:
Curve.h:30
Curve.h
agxPlot::DataPacket::~DataPacket
virtual ~DataPacket()
agxPlot::DataSeriesPacket
Definition:
DataPacket.h:33
agxPlot::DataPointVector
agx::Vector< DataPoint > DataPointVector
Definition:
DataPacket.h:31
include
agxPlot
DataPacket.h
Generated on Fri Feb 10 2023 14:06:09 for AGXDynamics by
1.8.17