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-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-03-26 17:18:12 +08:00
|
|
|
static const int REQUEST_LINE_SEGMENT = 0;
|
|
|
|
static const int REQUEST_STEP_REPEAT_TRANSLATE = 1;
|
|
|
|
static const int REQUEST_STEP_REPEAT_TRANSLATE_SYM = 2;
|
|
|
|
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-03-26 17:18:12 +08:00
|
|
|
static const int ENTITY_LINE_SEGMENT = 0;
|
|
|
|
static const int ENTITY_PWL_SEGMENT = 1;
|
|
|
|
int type;
|
|
|
|
|
|
|
|
hEntity 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 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
|
|
|
|
|