open-axiom repository from github
/*1Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.34Redistribution and use in source and binary forms, with or without5modification, are permitted provided that the following conditions are6met:78- Redistributions of source code must retain the above copyright9notice, this list of conditions and the following disclaimer.1011- Redistributions in binary form must reproduce the above copyright12notice, this list of conditions and the following disclaimer in13the documentation and/or other materials provided with the14distribution.1516- Neither the name of The Numerical ALgorithms Group Ltd. nor the17names of its contributors may be used to endorse or promote products18derived from this software without specific prior written permission.1920THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS21IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED22TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A23PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER24OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,25EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,26PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR27PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF28LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING29NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS30SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.31*/3233#define makeAViewport -1343536/* Viewport Types */37#define view3DType 138#define viewGraphType 239#define view2DType 340#define viewTubeType 44142/* 2D Viewport */4344#define translate2D 045#define scale2D 146#define pointsOnOff 247#define connectOnOff 348#define spline2D 449#define reset2D 550#define hideControl2D 651#define closeAll2D 752#define axesOnOff2D 853#define unitsOnOff2D 954#define pick2D 1055#define drop2D 1156#define clear2D 1257#define ps2D 1358#define graph1 1459#define graph2 1560#define graph3 1661#define graph4 1762#define graph5 1863#define graph6 1964#define graph7 2065#define graph8 2166#define graph9 2267#define graphSelect1 2368#define graphSelect2 2469#define graphSelect3 2570#define graphSelect4 2671#define graphSelect5 2772#define graphSelect6 2873#define graphSelect7 2974#define graphSelect8 3075#define graphSelect9 3176#define query2D 3277#define zoom2Dx 3378#define zoom2Dy 3479#define translate2Dx 3580#define translate2Dy 368182#define maxButtons2D 378384#define graphStart 14 /* the index of graph1 */85#define graphSelectStart (graphStart+maxGraphs)8687/* 3D Viewport */8889#define controlButtonsStart3D 09091#define rotate 092#define zoom 193#define translate 294#define render 395#define hideControl 496#define closeAll 597#define axesOnOff 698#define opaqueMesh 799#define resetView 8100#define transparent 9101102#define lighting 10103#define viewVolume 11104#define region3D 12105#define outlineOnOff 13106107#define zoomx 14108#define zoomy 15109#define zoomz 16110#define originr 17111#define objectr 18112#define xy 19113#define xz 20114#define yz 21115#define smooth 22116#define saveit 23117#define bwColor 24118119#define maxControlButtons3D 25120#define controlButtonsEnd3D (controlButtonsStart3D + maxControlButtons3D)121122#define graphStart3D 25 /* the index of g1 */123#define graphSelectStart3D (graphStart3D+maxGraphs)124125/* these should be maxControlButtons3D+1.. (be sure to modify view3D.spad) */126#define diagOnOff (maxControlButtons3D+1)127#define perspectiveOnOff (maxControlButtons3D+2)128#define clipRegionOnOff 66129#define clipSurfaceOnOff 67130131#define query 11132133134/* misc */135136#define spadPressedAButton 100 /* used for communications with the .AXIOM file */137#define colorDef 101138#define moveViewport 102139#define resizeViewport 103140#define changeTitle 104141#define showing2D 105142#define putGraph 106 /* for 2D */143#define getGraph 107 /* for 2D */144#define lightDef 108 /* for 3D */145#define translucenceDef 109 /* for 3D */146#define writeView 110 /* for both */147#define eyeDistanceData 111 /* for 3D */148#define axesColor2D 112 /* for 2D */149#define unitsColor2D 113 /* for 2D */150#define modifyPOINT 114 /* for 3D */151#define hitherPlaneData 116 /* for 3D */152153154155156157158