⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trajectory.h

📁 一个可执行的nbc算法设计与实现 有助大家互相探讨学习
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -