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

📄 urouting.~h

📁 实现最短路径算法。 实现最短路径算法。
💻 ~H
字号:
//---------------------------------------------------------------------------

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -