Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Frame.h
1 #ifndef NUITRACK_FRAME_H_
2 #define NUITRACK_FRAME_H_
3 
4 #include "nuitrack/types/ObjectData.h"
5 
6 namespace tdv
7 {
8 namespace nuitrack
9 {
14 template<typename TImpl, typename TData>
15 class Frame: public ObjectData<TImpl>
16 {
17 public:
18  typedef TData DataType;
19 
20  virtual ~Frame() {}
21 
25  virtual int getRows() const = 0;
26 
30  virtual int getCols() const = 0;
31 
35  virtual uint64_t getID() const = 0;
36 
40  virtual const DataType* getData() const = 0;
41 };
42 
43 }
44 }
45 
46 #endif /* NUITRACK_IMAGE_H_ */
Generalized template for data with a timestamp.
Definition: ObjectData.h:39
virtual uint64_t getID() const =0
Returns the frame ID.
Represents a generalized frame.
Definition: Frame.h:15
virtual int getCols() const =0
Returns the number of columns in the frame.
virtual int getRows() const =0
Returns the number of rows in the frame.
virtual const DataType * getData() const =0
Returns the frame data.