urouting.~h
来自「实现最短路径算法。 实现最短路径算法。」· ~H 代码 · 共 73 行
~H
73 行
//---------------------------------------------------------------------------
#ifndef UroutingH
#define UroutingH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include "roufun.h"
//---------------------------------------------------------------------------
class TRoutingForm : public TForm
{
__published: // IDE-managed Components
TLabel *FromPoint;
TEdit *x1ed;
TEdit *y1ed;
TLabel *ToPoint;
TEdit *x2ed;
TEdit *y2ed;
TLabel *X1;
TLabel *y1;
TLabel *x2;
TLabel *y2;
TLabel *Label1;
TButton *Button1;
TLabel *Label2;
TLabel *Label3;
TEdit *nodefile;
TEdit *arcfile;
TSpeedButton *SpeedButton1;
TSpeedButton *SpeedButton2;
TOpenDialog *OpenDialog1;
TLabel *Label4;
TEdit *attrfile;
TSpeedButton *SpeedButton3;
TMemo *Memo1;
TButton *Button3;
TLabel *Label5;
TEdit *lineed;
TScrollBox *ScrollBox1;
TImage *Image1;
void __fastcall SpeedButton1Click(TObject *Sender);
void __fastcall SpeedButton2Click(TObject *Sender);
void __fastcall SpeedButton3Click(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall x1edExit(TObject *Sender);
void __fastcall y1edExit(TObject *Sender);
void __fastcall x2edChange(TObject *Sender);
void __fastcall y2edExit(TObject *Sender);
void __fastcall Button3Click(TObject *Sender);
void __fastcall lineedExit(TObject *Sender);
private: // User declarations
public: // User declarations
AnsiString ArcFile, NodeFile, AttrFile;
double m_xSou,m_ySou ,m_xDes ,m_yDes;
int m_N;
ArcNode *arcGraph;
void writearc(FILE *ooo,int arcNo);
void drawanarc(int arcNo,double minx,double maxx,double miny,double maxy,double dx,double dy);
__fastcall TRoutingForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TRoutingForm *RoutingForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?