You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#ifndef PICKED_POINT_H
|
|
|
|
|
|
#define PICKED_POINT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "XJAlgorithm/XJPoint2D.h"
|
|
|
|
|
|
#include "XJAlgorithm/XJPoint3D.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define POS_NONE 0
|
|
|
|
|
|
#define POS_START 1
|
|
|
|
|
|
#define POS_END 2
|
|
|
|
|
|
#define POS_MID 3
|
|
|
|
|
|
typedef int PointPos;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><>ͼʰȡ<CAB0><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
|
struct pickPoint2D
|
|
|
|
|
|
{
|
|
|
|
|
|
pickPoint2D()
|
|
|
|
|
|
{
|
|
|
|
|
|
type = POS_NONE;
|
|
|
|
|
|
omKey =-1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Point2D pt;//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
|
|
|
|
|
|
int omKey;//<2F><><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD>id
|
|
|
|
|
|
int type;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct pickPoint3D
|
|
|
|
|
|
{
|
|
|
|
|
|
pickPoint3D()
|
|
|
|
|
|
{
|
|
|
|
|
|
type = 0;
|
|
|
|
|
|
omKey =-1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
double pt[3]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int omKey; //<2F><><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD>id
|
|
|
|
|
|
|
|
|
|
|
|
int type; //<2F><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>Ԫ<EFBFBD><D4AA><EFBFBD><EFBFBD>
|
|
|
|
|
|
int idx; //<2F><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>Ԫ<EFBFBD><D4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|