path.h

来自「这是书上的代码」· C头文件 代码 · 共 33 行

H
33
字号
// Path.h: interface for the CPath class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PATH_H__F2F069C3_3C71_11D4_A4DD_00D0B7213322__INCLUDED_)
#define AFX_PATH_H__F2F069C3_3C71_11D4_A4DD_00D0B7213322__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Enumeration of standard path types
enum TPathType {LINE_TYPE, SPP_TYPE, SPLINE_TYPE, SCP_TYPE, SIDE_TYPE,
					 LAZY_S_TYPE,ARC_TYPE};
class CPath : public CObject  //此类为路径类的基类
{
public:
	USHORT m_uId;                  // Path ID number
	USHORT m_uType;                // Path topological type
	USHORT m_uExtType;             // Extended path type
	USHORT m_uStartNode;           // The ID of the start node
	USHORT m_uEndNode;             // The ID of the end node
	float  m_fVeloLimit;           // The velocity limit on the path
	SHORT m_uGuideType;           // The guide method on this path
								   // 0 - Dead reckoning; 1 - laser; 2 - tape
public:
	CPath();
	virtual ~CPath();
	virtual BOOL Create(CArchive& ar,USHORT ver);
	virtual BOOL Save(CArchive& ar,USHORT ver);
};

#endif // !defined(AFX_PATH_H__F2F069C3_3C71_11D4_A4DD_00D0B7213322__INCLUDED_)

⌨️ 快捷键说明

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