trajectory.h

来自「一个可执行的nbc算法设计与实现 有助大家互相探讨学习」· C头文件 代码 · 共 54 行

H
54
字号
#ifndef  TRAJECTORY_H
#define  TRAJECTORY_H

#include "queue.h"

class Trajectory
{
private:	
	point *first;
	point *last;
	point *first_character_point;
	point *last_character_point;

	line *first_ls;
	line *last_ls;
	int temp_tra_id;
	
	
	void add_character(point *p);
	double caculate_mdl_par(point *pstart,point *pcurrent);
	double caculate_mdl_nopar(point *pstart,point *pcurrent);
    
public:
	Trajectory()
	{		
		first=last=NULL;
		first_character_point=last_character_point=NULL;
		first_ls=NULL;
		last_ls=NULL;
		temp_tra_id=0;
	}
	    	

	line  *get_first_line();
	line  *get_last_line();
	void  get_linelist();
	
	
	void   del_point();
	void   del_chara_point();
	
	void insert_point(double x1,double y1,int num);
	void Trajectory_patition(double s);
    void ATP_Algorithm(char *filename,double s);	
	void out_ls();
	void output_ls();

    
};



#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?