[BACK]Return to ifplot.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / plot

Annotation of OpenXM_contrib2/asir2000/plot/ifplot.h, Revision 1.1

1.1     ! noro        1: /* $OpenXM: OpenXM/src/asir99/plot/ifplot.h,v 1.1.1.1 1999/11/10 08:12:34 noro Exp $ */
        !             2: #if defined(THINK_C)
        !             3: #include        <QuickDraw.h>
        !             4: #include        <Windows.h>
        !             5: #include        <Events.h>
        !             6: #include        <OSUtils.h>
        !             7: #include        <ToolUtils.h>
        !             8: #include        <Fonts.h>
        !             9: /* #include        <Strings.h> */
        !            10: #else
        !            11: #include <sys/types.h>
        !            12: #include <X11/Xlib.h>
        !            13: #include <X11/Xutil.h>
        !            14: #include <X11/Xatom.h>
        !            15: #include <X11/Intrinsic.h>
        !            16: #include <X11/StringDefs.h>
        !            17: #include <X11/Shell.h>
        !            18: #include <X11/Xaw/Form.h>
        !            19: #include <X11/Xaw/Command.h>
        !            20: #include <X11/Xaw/Label.h>
        !            21: #include <X11/Xaw/Simple.h>
        !            22: #include <X11/Xaw/Dialog.h>
        !            23: #include <X11/Xaw/Box.h>
        !            24: #ifndef OLDX11
        !            25: #include <X11/Xaw/Toggle.h>
        !            26: #include <X11/Xaw/Scrollbar.h>
        !            27: #else
        !            28: #include <X11/Xaw/Scroll.h>
        !            29: #define toggleWidgetClass commandWidgetClass
        !            30: #define XtPointer pointer
        !            31: #define XawDialogAddButton XtDialogAddButton
        !            32: #define XawScrollbarSetThumb XtScrollBarSetThumb
        !            33: #endif
        !            34: #endif
        !            35:
        !            36: #define C_IFPLOT C_PRIV
        !            37: #define C_BMPLOT C_PRIV+1
        !            38: #define C_CLEAR C_PRIV+2
        !            39: #define C_PMFLUSH C_PRIV+3
        !            40: #define C_CONPLOT C_PRIV+4
        !            41: #define C_PLOTOVER C_PRIV+5
        !            42: #define C_PLOT C_PRIV+6
        !            43: #define C_APLOT C_PRIV+7
        !            44: #define C_DRAWCIRCLE C_PRIV+8
        !            45:
        !            46: #define MAXCANVAS 16
        !            47: #define MAXGC 16
        !            48: #if defined(THINK_C)
        !            49: #define DEFAULTWIDTH 200
        !            50: #define DEFAULTHEIGHT 200
        !            51: #else
        !            52: #define DEFAULTWIDTH 400
        !            53: #define DEFAULTHEIGHT 400
        !            54: #endif
        !            55:
        !            56: #define MODE_IFPLOT 0
        !            57: #define MODE_CONPLOT 1
        !            58: #define MODE_PLOT 2
        !            59:
        !            60: #define DIR_X 0
        !            61: #define DIR_Y 1
        !            62: #define DIR_Z 2
        !            63:
        !            64: #if defined(THINK_C)
        !            65: #define COPYBITS
        !            66:
        !            67: #define POINT Point
        !            68: #define XC(a) ((a).h)
        !            69: #define YC(a) ((a).v)
        !            70: #define DRAWPOINT(d,p,g,x,y) MoveTo(x,y); Line(0,0)
        !            71: #define DRAWLINE(d,p,g,x,y,u,v) MoveTo(x,y); LineTo(u,v)
        !            72: #define DRAWSTRING(d,p,g,x,y,s,l) MoveTo(x,y); DrawText(s,0,l)
        !            73: #define TEXTWIDTH(f,s,l) TextWidth(s,0,l)
        !            74: #define DISPLAY int
        !            75: #define WINDOW WindowPtr
        !            76: #define CURSOR CursHandle
        !            77: #ifndef COPYBITS
        !            78: #define DRAWABLE PicHandle
        !            79: #else
        !            80: #define DRAWABLE BitMap
        !            81: #endif
        !            82: #else
        !            83: #define POINT XPoint
        !            84: #define XC(a) ((a).x)
        !            85: #define YC(a) ((a).y)
        !            86: #define DRAWPOINT(d,p,g,x,y) (count_and_flush(),XDrawPoint(d,p,g,x,y))
        !            87: #define DRAWLINE(d,p,g,x,y,u,v) XDrawLine(d,p,g,x,y,u,v)
        !            88: #define DRAWSTRING(d,p,g,x,y,s,l) XDrawString(d,p,g,x,y,s,l)
        !            89: #define TEXTWIDTH(f,s,l) XTextWidth(f,s,l)
        !            90: #define DISPLAY Display
        !            91: #define WINDOW Window
        !            92: #define CURSOR Cursor
        !            93: #define DRAWABLE Drawable
        !            94: #endif
        !            95:
        !            96: struct pa {
        !            97:        int length;
        !            98:        POINT *pos;
        !            99: };
        !           100:
        !           101: struct canvas {
        !           102:        int index;
        !           103: #if defined(THINK_C)
        !           104:        Rect rect;
        !           105:        WindowRecord record;
        !           106:        WindowPtr window;
        !           107: #ifndef COPYBITS
        !           108:        PicHandle pix;
        !           109: #else
        !           110:        BitMap pix,wbits;
        !           111:        RgnHandle rgnsav;
        !           112: #endif
        !           113: #else
        !           114:        Widget shell,xcoord,ycoord,xdone,ydone,level,wideb,preciseb,noaxisb;
        !           115:        Window window;
        !           116:        Pixmap pix;
        !           117: #endif
        !           118:        char *wname;
        !           119:        char mode;
        !           120:        char wide;
        !           121:        char precise;
        !           122:        char noaxis;
        !           123:        V vx,vy;
        !           124:        P formula;
        !           125:        int width,height;
        !           126:        double xmin,xmax;
        !           127:        double ymin,ymax;
        !           128:        double zmin,zmax;
        !           129:        int nzstep;
        !           130:        Q qxmin,qxmax;
        !           131:        Q qymin,qymax;
        !           132:        struct pa *pa;
        !           133: };
        !           134:
        !           135: extern struct canvas *canvas[];
        !           136: extern struct canvas *current_can;
        !           137:
        !           138: #ifdef INET
        !           139: extern VL CO;
        !           140: extern int stream;
        !           141: #endif
        !           142:
        !           143: extern DISPLAY *display;
        !           144: extern CURSOR normalcur,runningcur,errorcur;
        !           145:
        !           146: #if !defined(THINK_C)
        !           147: extern Window rootwin;
        !           148: extern GC drawGC,dashGC,hlGC,scaleGC,clearGC,xorGC,colorGC;
        !           149: extern XFontStruct *sffs;
        !           150: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>