forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrackerData.h
More file actions
67 lines (54 loc) · 1.68 KB
/
trackerData.h
File metadata and controls
67 lines (54 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Filename: trackerData.h
// Created by: jason (04Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef TRACKERDATA_H
#define TRACKERDATA_H
#include "pandabase.h"
#include "luse.h"
////////////////////////////////////////////////////////////////////
// Class : TrackerData
// Description : Stores the kinds of data that a tracker might output.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA_DEVICE TrackerData {
public:
INLINE TrackerData();
INLINE TrackerData(const TrackerData ©);
void operator = (const TrackerData ©);
INLINE void clear();
INLINE void set_time(double time);
INLINE bool has_time() const;
INLINE double get_time() const;
INLINE void set_pos(const LPoint3 &pos);
INLINE bool has_pos() const;
INLINE const LPoint3 &get_pos() const;
INLINE void set_orient(const LOrientation &orient);
INLINE bool has_orient() const;
INLINE const LOrientation &get_orient() const;
INLINE void set_dt(double dt);
INLINE bool has_dt() const;
INLINE double get_dt() const;
private:
enum Flags {
F_has_time = 0x0001,
F_has_pos = 0x0002,
F_has_orient = 0x0004,
F_has_dt = 0x0008,
};
int _flags;
double _time;
LPoint3 _pos;
LOrientation _orient;
double _dt;
};
#include "trackerData.I"
#endif