EZC3D
Frame.h
Go to the documentation of this file.
1 #ifndef FRAME_H
2 #define FRAME_H
3 
11 #include <Points.h>
12 #include <Analogs.h>
13 
17 class EZC3D_API ezc3d::DataNS::Frame{
18  //---- CONSTRUCTORS ----//
19 public:
23  Frame();
24 
25 
26  //---- STREAM ----//
27 public:
34  void print() const;
35 
42  void write(std::fstream &f) const;
43 
44 
45  //---- POINTS ----//
46 protected:
47  std::shared_ptr<ezc3d::DataNS::Points3dNS::Points> _points;
48 public:
54 
63 
64 
65  //---- ANALOGS ----//
66 protected:
67  std::shared_ptr<ezc3d::DataNS::AnalogsNS::Analogs> _analogs;
68 public:
74 
83 
84 
85  //---- ACCESSORS ----//
86 public:
91  void add(const ezc3d::DataNS::Frame &frame);
92 
97  void add(const ezc3d::DataNS::Points3dNS::Points &points);
98 
103  void add(const ezc3d::DataNS::AnalogsNS::Analogs &analogs);
104 
110  void add(const ezc3d::DataNS::Points3dNS::Points &points, const ezc3d::DataNS::AnalogsNS::Analogs &analogs);
111 
116  bool isempty() const;
117 
118 };
119 
120 #endif
Frame()
Create an empty frame.
Definition: Frame.cpp:12
std::shared_ptr< ezc3d::DataNS::AnalogsNS::Analogs > _analogs
All the subframes for all the analogs.
Definition: Frame.h:67
Analog holder for C3D analogous data.
Definition: Analogs.h:16
void print() const
Print the frame.
Definition: Frame.cpp:18
bool isempty() const
Return if the frame is empty.
Definition: Frame.cpp:71
Points holder for C3D data 3D points data.
Definition: Points.h:16
const ezc3d::DataNS::Points3dNS::Points & points() const
Return a reference to all the points.
Definition: Frame.cpp:30
const ezc3d::DataNS::AnalogsNS::Analogs & analogs() const
Return a reference to all the analogs.
Definition: Frame.cpp:40
Declaration of Points class.
void add(const ezc3d::DataNS::Frame &frame)
Add a frame by copying a sent frame.
Definition: Frame.cpp:50
ezc3d::DataNS::Points3dNS::Points & points_nonConst() const
Return a reference to all the points in order to be modified by the caller.
Definition: Frame.cpp:35
Declaration of Analogs class.
Namespace ezc3d.
Definition: ezc3d.h:68
std::shared_ptr< ezc3d::DataNS::Points3dNS::Points > _points
All the points for this frame.
Definition: Frame.h:47
ezc3d::DataNS::AnalogsNS::Analogs & analogs_nonConst() const
Return a reference to all the analogs in order to be modified by the caller.
Definition: Frame.cpp:45
void write(std::fstream &f) const
Write a frame to an opened file.
Definition: Frame.cpp:24
Frame holder for C3D data.
Definition: Frame.h:17