0022627: Change OCCT memory management defaults
[occt.git] / src / CGM / cgmtypes.h
CommitLineData
7fd59977 1#ifndef CGMTYPES_H
2#define CGMTYPES_H
3
4 /* Include the only file on which this is dependent. */
5
6#include "cgmmach.h"
7
8/* CGM Typedefs */
9
10typedef short Logical;
11typedef long Index;
12typedef unsigned short Enum;
13typedef Int16 Code;
14typedef long Prec;
15typedef unsigned long Posint;
16typedef float Ptype;
17typedef double Mtype;
18
19/* Structures used by CGM user interface */
20
21typedef struct { float x, y; } Point;
22typedef struct { float x, y; } Vector;
23typedef struct { Posint red, green, blue; } RGBcolour;
24struct colour {
25 Index index;
26 Posint red, green, blue;
27};
28typedef struct colour Colour;
29
30typedef Index Indexcolour;
31
32/* Useful Structures for CGM routines */
33
34struct vdc {
35 long intr;
36 float real;
37};
38typedef struct vdc Vdc;
39
40struct colourentry {
41 float red, green, blue;
42};
43typedef struct colourentry Colourentry;
44
45typedef double Tmatrix[3][2];
46
47struct point {
48 struct vdc x, y;
49};
50typedef struct point Cpoint;
51
52struct rect {
53 struct point a, b;
54};
55
56typedef struct { float left, right, top, bot; } Rect;
57
58
59#ifndef TRUE
60#define TRUE ((Logical) 1)
61#endif
62
63#ifndef FALSE
64#define FALSE ((Logical) 0)
65#endif
66
67#endif /* end of cgmtypes.h */