
and add some (non-functional) menus to the graphics window. Start to rough in some data structures to hold the sketch. No real work yet, though. [git-p4: depot-paths = "//depot/solvespace/": change = 1653]
59 lines
1.0 KiB
C
59 lines
1.0 KiB
C
|
|
#ifndef __SKETCH_H
|
|
#define __SKETCH_H
|
|
|
|
typedef struct hRequestTag hRequest;
|
|
typedef struct hEntityTag hEntity;
|
|
typedef struct hPointTag hPoint;
|
|
typedef struct hParamTag hParam;
|
|
|
|
typedef struct hRequestTag {
|
|
int v;
|
|
|
|
hEntity entity(int i);
|
|
} hRequest;
|
|
|
|
typedef struct {
|
|
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;
|
|
} Request;
|
|
|
|
typedef struct hEntityTag {
|
|
int v;
|
|
|
|
hRequest request(int i);
|
|
hPoint point(int i);
|
|
} hEntity;
|
|
|
|
typedef struct {
|
|
static const int ENTITY_LINE_SEGMENT = 0;
|
|
static const int ENTITY_PWL_SEGMENT = 1;
|
|
int type;
|
|
|
|
hEntity h;
|
|
} Entity;
|
|
|
|
typedef struct hPointTag {
|
|
} hPoint;
|
|
|
|
typedef struct {
|
|
|
|
hPoint h;
|
|
} Point;
|
|
|
|
typedef struct hParamTag {
|
|
} hParam;
|
|
|
|
typedef struct {
|
|
double val;
|
|
|
|
hParam h;
|
|
} Param;
|
|
|
|
#endif
|
|
|