
draw planes that I will use to do the datum planes. Still haven't settled upon the request/entity/group structure, and that's the dependency before doing much real. [git-p4: depot-paths = "//depot/solvespace/": change = 1656]
73 lines
940 B
C++
73 lines
940 B
C++
|
|
#ifndef __SKETCH_H
|
|
#define __SKETCH_H
|
|
|
|
class hEntity;
|
|
class hPoint;
|
|
class hRequest;
|
|
class hParam;
|
|
class hGroup;
|
|
|
|
class hRequest {
|
|
public:
|
|
int v;
|
|
|
|
hEntity entity(int i);
|
|
};
|
|
|
|
class Request {
|
|
public:
|
|
static const hRequest HREQUEST_DATUM_PLANE_XY,
|
|
HREQUEST_DATUM_PLANE_YZ,
|
|
HREQUEST_DATUM_PLANE_ZX;
|
|
|
|
static const int FOR_PLANE = 0;
|
|
int type;
|
|
|
|
hRequest h;
|
|
};
|
|
|
|
class hEntity {
|
|
public:
|
|
int v;
|
|
|
|
hRequest request(int i);
|
|
hPoint point(int i);
|
|
};
|
|
|
|
class Entity {
|
|
public:
|
|
static const int ENTITY_PLANE = 0;
|
|
int type;
|
|
|
|
hEntity h;
|
|
|
|
void Draw(void);
|
|
};
|
|
|
|
class hPoint {
|
|
public:
|
|
int v;
|
|
};
|
|
|
|
class Point {
|
|
public:
|
|
|
|
hPoint h;
|
|
};
|
|
|
|
class hParam {
|
|
public:
|
|
int v;
|
|
};
|
|
|
|
class Param {
|
|
public:
|
|
double val;
|
|
|
|
hParam h;
|
|
};
|
|
|
|
#endif
|
|
|