2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
#ifndef __SOLVESPACE_H
|
|
|
|
#define __SOLVESPACE_H
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2008-03-26 09:18:12 +00:00
|
|
|
#include <stdio.h>
|
2008-03-27 09:53:51 +00:00
|
|
|
#include <math.h>
|
2008-03-25 10:02:13 +00:00
|
|
|
#include "dsc.h"
|
|
|
|
#include "ui.h"
|
2008-03-26 09:18:12 +00:00
|
|
|
#include "sketch.h"
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
// Debugging functions
|
2008-03-26 09:18:12 +00:00
|
|
|
#define oops() do { dbp("oops at line %d, file %s", __LINE__, __FILE__); \
|
|
|
|
exit(-1); } while(0)
|
2008-03-25 10:02:13 +00:00
|
|
|
void dbp(char *str, ...);
|
2008-03-27 09:53:51 +00:00
|
|
|
void Invalidate(void);
|
|
|
|
|
|
|
|
|
2008-03-25 10:02:13 +00:00
|
|
|
|
2008-03-26 09:18:12 +00:00
|
|
|
#define arraylen(x) (sizeof((x))/sizeof((x)[0]))
|
2008-03-27 09:53:51 +00:00
|
|
|
#define PI (3.1415926535897931)
|
|
|
|
void MakeMatrix(double *mat, double a11, double a12, double a13, double a14,
|
|
|
|
double a21, double a22, double a23, double a24,
|
|
|
|
double a31, double a32, double a33, double a34,
|
|
|
|
double a41, double a42, double a43, double a44);
|
|
|
|
|
2008-03-26 09:18:12 +00:00
|
|
|
|
2008-03-25 10:02:13 +00:00
|
|
|
typedef struct {
|
2008-03-26 09:18:12 +00:00
|
|
|
TextWindow TW;
|
|
|
|
GraphicsWindow GW;
|
|
|
|
|
|
|
|
IdList<Request,hRequest> req;
|
|
|
|
IdList<Entity,hEntity> entity;
|
|
|
|
IdList<Point,hPoint> point;
|
|
|
|
IdList<Param,hParam> param;
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
void Init(void);
|
|
|
|
} SolveSpace;
|
|
|
|
|
|
|
|
extern SolveSpace SS;
|
|
|
|
|
|
|
|
#endif
|