You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

#pragma once
#ifdef _WIN32
#ifdef WIREROUTINGDLL_EXPORTS // VisualStudio DLL ��Ŀģ���Ὣ <PROJECTNAME>_EXPORTS ���ӵ�����Ԥ�������ꡣ
#define PATH_API __declspec(dllexport) // _WIN32
#else
#define PATH_API __declspec(dllimport)
#endif
#else
#define PATH_API
#endif
#include "BranchPoint.h"
#include<cmath>
#include<vector>
#include<queue>
#include<map>
#include<iostream>
#include<fstream>
#include<sstream>
#include<algorithm>
#include<cassert>
using namespace std;
extern ClipSet PATH_API clipSet;
extern BranchPointSet PATH_API branchPointSet;
extern P PATH_API dirP(P &A);
//�򵥵�·����Ϣ��·���滮��ֱ�ӽ���
struct PATH_API Path{
vector<string> wirelist; //·���е�������
vector<P> points; //·���ϵĵ㣬���������ͷ�֧��
vector<int> inOut; //��������������Ϊ0������Ϊ1,��֧��Ϊ-1
double dia; //·��ֱ��
Path();
//����path�������
int size();
//��·���о����Ŀ����ͷ�֧�㶼���dz�ʹ�ù���״̬
void markPoint();
//�̶����о����ķ�֧��
void fixBranchPoint();
//����·���Ϸ���
void illegalCheck();
//��·���еĵ㷭ת���������򣬲�����inOut����
void processDir();
//��·��ȷ���󣬴���һЩ����pass���洦������Ϣ
void postProcess();
//��ת����·��
void reverse();
};