Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

open-axiom repository from github

24005 views
1
/*
2
Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are
7
met:
8
9
- Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
12
- Redistributions in binary form must reproduce the above copyright
13
notice, this list of conditions and the following disclaimer in
14
the documentation and/or other materials provided with the
15
distribution.
16
17
- Neither the name of The Numerical ALgorithms Group Ltd. nor the
18
names of its contributors may be used to endorse or promote products
19
derived from this software without specific prior written permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
24
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
25
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
#define makeAViewport -1
35
36
37
/* Viewport Types */
38
#define view3DType 1
39
#define viewGraphType 2
40
#define view2DType 3
41
#define viewTubeType 4
42
43
/* 2D Viewport */
44
45
#define translate2D 0
46
#define scale2D 1
47
#define pointsOnOff 2
48
#define connectOnOff 3
49
#define spline2D 4
50
#define reset2D 5
51
#define hideControl2D 6
52
#define closeAll2D 7
53
#define axesOnOff2D 8
54
#define unitsOnOff2D 9
55
#define pick2D 10
56
#define drop2D 11
57
#define clear2D 12
58
#define ps2D 13
59
#define graph1 14
60
#define graph2 15
61
#define graph3 16
62
#define graph4 17
63
#define graph5 18
64
#define graph6 19
65
#define graph7 20
66
#define graph8 21
67
#define graph9 22
68
#define graphSelect1 23
69
#define graphSelect2 24
70
#define graphSelect3 25
71
#define graphSelect4 26
72
#define graphSelect5 27
73
#define graphSelect6 28
74
#define graphSelect7 29
75
#define graphSelect8 30
76
#define graphSelect9 31
77
#define query2D 32
78
#define zoom2Dx 33
79
#define zoom2Dy 34
80
#define translate2Dx 35
81
#define translate2Dy 36
82
83
#define maxButtons2D 37
84
85
#define graphStart 14 /* the index of graph1 */
86
#define graphSelectStart (graphStart+maxGraphs)
87
88
/* 3D Viewport */
89
90
#define controlButtonsStart3D 0
91
92
#define rotate 0
93
#define zoom 1
94
#define translate 2
95
#define render 3
96
#define hideControl 4
97
#define closeAll 5
98
#define axesOnOff 6
99
#define opaqueMesh 7
100
#define resetView 8
101
#define transparent 9
102
103
#define lighting 10
104
#define viewVolume 11
105
#define region3D 12
106
#define outlineOnOff 13
107
108
#define zoomx 14
109
#define zoomy 15
110
#define zoomz 16
111
#define originr 17
112
#define objectr 18
113
#define xy 19
114
#define xz 20
115
#define yz 21
116
#define smooth 22
117
#define saveit 23
118
#define bwColor 24
119
120
#define maxControlButtons3D 25
121
#define controlButtonsEnd3D (controlButtonsStart3D + maxControlButtons3D)
122
123
#define graphStart3D 25 /* the index of g1 */
124
#define graphSelectStart3D (graphStart3D+maxGraphs)
125
126
/* these should be maxControlButtons3D+1.. (be sure to modify view3D.spad) */
127
#define diagOnOff (maxControlButtons3D+1)
128
#define perspectiveOnOff (maxControlButtons3D+2)
129
#define clipRegionOnOff 66
130
#define clipSurfaceOnOff 67
131
132
#define query 11
133
134
135
/* misc */
136
137
#define spadPressedAButton 100 /* used for communications with the .AXIOM file */
138
#define colorDef 101
139
#define moveViewport 102
140
#define resizeViewport 103
141
#define changeTitle 104
142
#define showing2D 105
143
#define putGraph 106 /* for 2D */
144
#define getGraph 107 /* for 2D */
145
#define lightDef 108 /* for 3D */
146
#define translucenceDef 109 /* for 3D */
147
#define writeView 110 /* for both */
148
#define eyeDistanceData 111 /* for 3D */
149
#define axesColor2D 112 /* for 2D */
150
#define unitsColor2D 113 /* for 2D */
151
#define modifyPOINT 114 /* for 3D */
152
#define hitherPlaneData 116 /* for 3D */
153
154
155
156
157
158