📄 snpathplanning.h
字号:
// SNPathPlanning.h: interface for the SNPathPlanning class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SNPATHPLANNING_H__82B40CC0_12CA_45C2_BC8E_DC4FEDFCDB7B__INCLUDED_)
#define AFX_SNPATHPLANNING_H__82B40CC0_12CA_45C2_BC8E_DC4FEDFCDB7B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "RouteAnalyst/UGRouteAnalyst.h"
#include "RouteAnalyst/UGSearchInput.h"
#include "RouteAnalyst/UGSearchParam.h"
#include "RouteAnalyst/UGSearchOutput.h"
class SNPathPlanning
{
public:
SNPathPlanning();
virtual ~SNPathPlanning();
public:
//! \brief 设置用于路径规划的数据源。
void SetDatasource(UGNdfDataSource* pDataSource);
//! \brief 添加起点。
void AddDeparture(UGPoint2D pntStart);
//! \brief 添加终点。
void AddDestination(UGPoint2D pntSEnd);
//! \brief 路径规划初始化。
UGbool Init();
//! \brief 执行路径规划。
UGbool pathPlanning();
//! \brief 跟踪层上绘制起始、终止端线。
void OnDrawRoute(UGMapWnd* pMapWnd);
//! \brief 高亮规划结果子线。
void HightLightRoute(UGMapWnd* pMapWnd);
//! \brief 清空所有参数,包括:起点、终点、跟踪层以及选择集等。
void OnClean(UGMapWnd* pMapWnd);
public:
//! \brief 起始点数组。
UGArray<UGPoint2D> m_arrPntStart;
//! \brief 终点数组。
UGArray<UGPoint2D> m_arrPntEnd;
//! \brief 路径规划输出数据。
UGSearchOutput m_searchOutput;
private:
//! \brief 用于路径规划的数据源。
UGNdfDataSource* m_pDatasource;
//! \brief 路径规划输入参数对象。
UGSearchInput m_searchInput;
//! \brief 路径规划引擎对象。
UGRouteAnalyst m_routeAnalyst;
//! \brief 路径分析是否已经初始化。
UGbool m_bPathInit;
};
#endif // !defined(AFX_SNPATHPLANNING_H__82B40CC0_12CA_45C2_BC8E_DC4FEDFCDB7B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -