2008-03-26 17:18:12 +08:00
|
|
|
|
|
|
|
#ifndef __SKETCH_H
|
|
|
|
#define __SKETCH_H
|
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class hEntity;
|
|
|
|
class hPoint;
|
|
|
|
class hRequest;
|
|
|
|
class hParam;
|
2008-04-01 18:48:44 +08:00
|
|
|
class hGroup;
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class hRequest {
|
|
|
|
public:
|
2008-03-26 17:18:12 +08:00
|
|
|
int v;
|
|
|
|
|
|
|
|
hEntity entity(int i);
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class Request {
|
|
|
|
public:
|
2008-04-01 18:48:44 +08:00
|
|
|
static const hRequest HREQUEST_DATUM_PLANE_XY,
|
|
|
|
HREQUEST_DATUM_PLANE_YZ,
|
|
|
|
HREQUEST_DATUM_PLANE_ZX;
|
|
|
|
|
|
|
|
static const int FOR_PLANE = 0;
|
2008-03-26 17:18:12 +08:00
|
|
|
int type;
|
|
|
|
|
|
|
|
hRequest h;
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class hEntity {
|
|
|
|
public:
|
2008-03-26 17:18:12 +08:00
|
|
|
int v;
|
|
|
|
|
|
|
|
hRequest request(int i);
|
|
|
|
hPoint point(int i);
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class Entity {
|
|
|
|
public:
|
2008-04-01 18:48:44 +08:00
|
|
|
static const int ENTITY_PLANE = 0;
|
2008-03-26 17:18:12 +08:00
|
|
|
int type;
|
|
|
|
|
|
|
|
hEntity h;
|
2008-04-01 18:48:44 +08:00
|
|
|
|
|
|
|
void Draw(void);
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class hPoint {
|
|
|
|
public:
|
|
|
|
int v;
|
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class Point {
|
|
|
|
public:
|
2008-03-26 17:18:12 +08:00
|
|
|
|
|
|
|
hPoint h;
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class hParam {
|
|
|
|
public:
|
|
|
|
int v;
|
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
2008-03-28 18:00:37 +08:00
|
|
|
class Param {
|
|
|
|
public:
|
2008-03-26 17:18:12 +08:00
|
|
|
double val;
|
|
|
|
|
|
|
|
hParam h;
|
2008-03-28 18:00:37 +08:00
|
|
|
};
|
2008-03-26 17:18:12 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|