-
Notifications
You must be signed in to change notification settings - Fork 0
/
STTrajectory.h
36 lines (20 loc) · 904 Bytes
/
STTrajectory.h
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
#pragma once
#include "STPoint.h"
#include "ConstDefine.h"
#include <vector>
//using namespace std;
class STTrajectory {
public:
int sttraj_id; // global para TrajDB really necessary? = index of TrajDB yes
int traj_length;
//// both or choose one ? make a choise : both! good for using because not global is good, isolated satisify!! 隔离性
std::vector<STPoint> traj_of_stpoint; // 浪费空间 但是省去了引入 pointDB 引用/指针
std::vector<int> traj_of_stpoint_id; // really good ? optimize? because: STPoint.STPoint_ID get the ID
// senquence read from STPointDB std::vector ? good ?
// functions related with this single trajectory!
void GettingSTPointOnpointID(std::vector<STPoint> &pointdb); // maybe pointdb actually can be released
// 常量成员函数 for safety consideration 更重要是多线程考虑
float CalcTTSTSim (const STTrajectory &stt) const;
protected:
private:
};