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
{
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::DataPoint::ID
CurveID ID
Definition:
DataPacket.h:27
agxPlot::DataPoint::point
CurvePoint point
Definition:
DataPacket.h:28
agxPlot::DataPoint
Definition:
DataPacket.h:25
agxPlot::DataSeriesPacket
Definition:
DataPacket.h:33
agxPlot
Namespace contains functionality related to plotting.
agxPlot::DataPacket
Definition:
DataPacket.h:50
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agx::Vector< DataPoint >
agx::Vec2T< Real >
agx::VectorPOD< Real >
Curve.h
agxPlot::DataPointVector
agx::Vector< DataPoint > DataPointVector
Definition:
DataPacket.h:31
Packet.h
agx::Real
double Real
Definition:
Real.h:42
agxPlot::CurveID
agx::UInt CurveID
Definition:
Curve.h:30
agxPlot::Packet
Definition:
Packet.h:24
include
agxPlot
DataPacket.h
Generated on Fri Apr 12 2024 12:40:21 for AGX Dynamics by
1.8.13