Logo ROOT  
Reference Guide
x3d.h File Reference
#include "X3DDefs.h"
#include <X11/Xlib.h>

Classes

struct  ANGLEPOINT
struct  GINFO
struct  OINFO
struct  STACKELEMENT
struct  XSEGMENT

Macros

#define ABOVE   1
#define ALLmask   (RRight | RLeft | Behind | BRight | BLeft | Bottom | Top )
#define BClipWithLeft   2
#define BClipWithRight   3
#define Behind   (1 << PointBehind)
#define BELOW   -1
#define BITSPERBYTE   8
#define BLeft   (1 << BClipWithLeft)
#define Bmask   (~BRight & ~BLeft)
#define BOLDFONT   "9x15bold"
#define Bottom   (1 << ClipWithBottom)
#define BRight   (1 << BClipWithRight)
#define BUFFER0   240
#define BUFFER1   15
#define BUFFER_CMAP   11
#define BW   1
#define ClipWithBottom   1
#define clipWithBottom(x, y, dx, dy, V)
#define ClipWithLeft   2
#define clipWithLeftSide(x, y, dx, dy, H)
#define ClipWithRight   3
#define clipWithRightSide(x, y, dx, dy, H)
#define ClipWithTop   0
#define clipWithTop(x, y, dx, dy, V)
#define COLOR   3
#define EIGHT   8
#define EIGHTBIT   8
#define ENDS_INTERSECT   3
#define EOK   0
#define ERROR   -1
#define FIXED   "fixed"
#define FONT   "9x15"
#define FONTHEIGHT(font)
#define HELPLINES   40
#define HelpPrint(g, x, y, string)
#define HIDDENLINE   2
#define HPGL   0
#define INTERSECT   0
#define Left   (1 << ClipWithLeft)
#define LONGESTSTRING   " ROTATE OBJECT ABOUT Z Horizontal "
#define MARGIN   30
#define MAX_COLORS   232
#define MAXCOLORDIST   (443.40501)
#define MAXCOLORS   256
#define MAXLINE   8192
#define MAXOPTIONLEN   256
#define MAXSTACK   100
#define MAXVALUE   6
#define median5(v1, v2, v3, v4, v5)
#define NUMBOUNDS   8
#define NUMSTIPPLES   17
#define ONE   1
#define PointBehind   4
#define POINTERRATIO   0.007
#define POSTSCRIPT   1
#define RBmask   (Rmask & Bmask)
#define RClipWithLeft   5
#define RClipWithRight   6
#define REQUESTFACTOR   3
#define Right   (1 << ClipWithRight)
#define RLeft   (1 << RClipWithLeft)
#define RLeftRight   (RRight | RLeft)
#define Rmask   (~RRight & ~RLeft)
#define RRight   (1 << RClipWithRight)
#define SAME   2
#define SMALLMOVEMENT   40000
#define SOLID   3
#define STEREO   2
#define STIPPLESIZE   4
#define STOP   10
#define swapPtrs(ptr1, ptr2)
#define TITLEFONT   "12x24"
#define TMPSTRLEN   16
#define Top   (1 << ClipWithTop)
#define TWOPI   6.2831853
#define VALUESCALE   51
#define WIREFRAME   1

Typedefs

typedef struct ANGLEPOINT anglePoint
typedef struct GINFO Ginfo
typedef struct OINFO Oinfo
typedef struct STACKELEMENT StackElement
typedef struct XSEGMENT xsegment

Macro Definition Documentation

◆ ABOVE

#define ABOVE   1

Definition at line 131 of file x3d.h.

◆ ALLmask

#define ALLmask   (RRight | RLeft | Behind | BRight | BLeft | Bottom | Top )

Definition at line 67 of file x3d.h.

◆ BClipWithLeft

#define BClipWithLeft   2

Definition at line 48 of file x3d.h.

◆ BClipWithRight

#define BClipWithRight   3

Definition at line 47 of file x3d.h.

◆ Behind

#define Behind   (1 << PointBehind)

Definition at line 56 of file x3d.h.

◆ BELOW

#define BELOW   -1

Definition at line 133 of file x3d.h.

◆ BITSPERBYTE

#define BITSPERBYTE   8

Definition at line 75 of file x3d.h.

◆ BLeft

#define BLeft   (1 << BClipWithLeft)

Definition at line 58 of file x3d.h.

◆ Bmask

#define Bmask   (~BRight & ~BLeft)

Definition at line 63 of file x3d.h.

◆ BOLDFONT

#define BOLDFONT   "9x15bold"

Definition at line 98 of file x3d.h.

◆ Bottom

#define Bottom   (1 << ClipWithBottom)

Definition at line 61 of file x3d.h.

◆ BRight

#define BRight   (1 << BClipWithRight)

Definition at line 57 of file x3d.h.

◆ BUFFER0

#define BUFFER0   240

Definition at line 124 of file x3d.h.

◆ BUFFER1

#define BUFFER1   15

Definition at line 125 of file x3d.h.

◆ BUFFER_CMAP

#define BUFFER_CMAP   11

Definition at line 123 of file x3d.h.

◆ BW

#define BW   1

Definition at line 105 of file x3d.h.

◆ ClipWithBottom

#define ClipWithBottom   1

Definition at line 51 of file x3d.h.

◆ clipWithBottom

#define clipWithBottom ( x,
y,
dx,
dy,
V )
Value:
{ x -= ((dx * (V+y)) / dy); y = -V; }

Definition at line 138 of file x3d.h.

◆ ClipWithLeft

#define ClipWithLeft   2

Definition at line 50 of file x3d.h.

◆ clipWithLeftSide

#define clipWithLeftSide ( x,
y,
dx,
dy,
H )
Value:
{ y -= ((dy * (H+x)) / dx); x = -H; }
#define H(x, y, z)

Definition at line 140 of file x3d.h.

◆ ClipWithRight

#define ClipWithRight   3

Definition at line 49 of file x3d.h.

◆ clipWithRightSide

#define clipWithRightSide ( x,
y,
dx,
dy,
H )
Value:
{ y += ((dy * (H-x)) / dx); x = H; }

Definition at line 141 of file x3d.h.

◆ ClipWithTop

#define ClipWithTop   0

Definition at line 52 of file x3d.h.

◆ clipWithTop

#define clipWithTop ( x,
y,
dx,
dy,
V )
Value:
{ x += ((dx * (V-y)) / dy); y = V; }

Definition at line 139 of file x3d.h.

◆ COLOR

#define COLOR   3

Definition at line 107 of file x3d.h.

◆ EIGHT

#define EIGHT   8

Definition at line 118 of file x3d.h.

◆ EIGHTBIT

#define EIGHTBIT   8

Definition at line 85 of file x3d.h.

◆ ENDS_INTERSECT

#define ENDS_INTERSECT   3

Definition at line 129 of file x3d.h.

◆ EOK

#define EOK   0

Definition at line 93 of file x3d.h.

◆ ERROR

#define ERROR   -1

Definition at line 94 of file x3d.h.

◆ FIXED

#define FIXED   "fixed"

Definition at line 99 of file x3d.h.

◆ FONT

#define FONT   "9x15"

Definition at line 96 of file x3d.h.

◆ FONTHEIGHT

#define FONTHEIGHT ( font)
Value:
(font->ascent + font->descent)

Definition at line 143 of file x3d.h.

◆ HELPLINES

#define HELPLINES   40

Definition at line 88 of file x3d.h.

◆ HelpPrint

#define HelpPrint ( g,
x,
y,
string )
Value:
{ \
XDrawString(g->dpy, g->helpWin, g->helpGc, x, y, string, strlen(string)); \
y += FONTHEIGHT(g->font); \
}
#define g(i)
Definition RSha256.hxx:105
#define FONTHEIGHT(font)
Definition x3d.h:143

Definition at line 145 of file x3d.h.

◆ HIDDENLINE

#define HIDDENLINE   2

Definition at line 112 of file x3d.h.

◆ HPGL

#define HPGL   0

Definition at line 87 of file x3d.h.

◆ INTERSECT

#define INTERSECT   0

Definition at line 132 of file x3d.h.

◆ Left

#define Left   (1 << ClipWithLeft)

Definition at line 60 of file x3d.h.

◆ LONGESTSTRING

#define LONGESTSTRING   " ROTATE OBJECT ABOUT Z Horizontal "

Definition at line 101 of file x3d.h.

◆ MARGIN

#define MARGIN   30

Definition at line 82 of file x3d.h.

◆ MAX_COLORS

#define MAX_COLORS   232

Definition at line 122 of file x3d.h.

◆ MAXCOLORDIST

#define MAXCOLORDIST   (443.40501)

Definition at line 73 of file x3d.h.

◆ MAXCOLORS

#define MAXCOLORS   256

Definition at line 76 of file x3d.h.

◆ MAXLINE

#define MAXLINE   8192

Definition at line 77 of file x3d.h.

◆ MAXOPTIONLEN

#define MAXOPTIONLEN   256

Definition at line 78 of file x3d.h.

◆ MAXSTACK

#define MAXSTACK   100

Definition at line 90 of file x3d.h.

◆ MAXVALUE

#define MAXVALUE   6

Definition at line 71 of file x3d.h.

◆ median5

#define median5 ( v1,
v2,
v3,
v4,
v5 )
Value:
if((*v1)->dist < (*v2)->dist){ \
swapPtrs(v1,v2) \
} \
if((*v3)->dist < (*v4)->dist){ \
swapPtrs(v3,v4) \
} \
if((*v1)->dist < (*v3)->dist){ \
swapPtrs(v1,v3) \
swapPtrs(v2,v4) \
} \
if((*v2)->dist < (*v5)->dist){ \
swapPtrs(v2,v5) \
} \
if((*v2)->dist < (*v3)->dist){ \
swapPtrs(v2,v3) \
swapPtrs(v4,v5) \
} \
if((*v3)->dist < (*v5)->dist){ \
swapPtrs(v3,v5) \
}

Definition at line 155 of file x3d.h.

◆ NUMBOUNDS

#define NUMBOUNDS   8

Definition at line 69 of file x3d.h.

◆ NUMSTIPPLES

#define NUMSTIPPLES   17

Definition at line 70 of file x3d.h.

◆ ONE

#define ONE   1

Definition at line 117 of file x3d.h.

◆ PointBehind

#define PointBehind   4

Definition at line 46 of file x3d.h.

◆ POINTERRATIO

#define POINTERRATIO   0.007

Definition at line 81 of file x3d.h.

◆ POSTSCRIPT

#define POSTSCRIPT   1

Definition at line 86 of file x3d.h.

◆ RBmask

#define RBmask   (Rmask & Bmask)

Definition at line 65 of file x3d.h.

◆ RClipWithLeft

#define RClipWithLeft   5

Definition at line 45 of file x3d.h.

◆ RClipWithRight

#define RClipWithRight   6

Definition at line 44 of file x3d.h.

◆ REQUESTFACTOR

#define REQUESTFACTOR   3

Definition at line 84 of file x3d.h.

◆ Right

#define Right   (1 << ClipWithRight)

Definition at line 59 of file x3d.h.

◆ RLeft

#define RLeft   (1 << RClipWithLeft)

Definition at line 55 of file x3d.h.

◆ RLeftRight

#define RLeftRight   (RRight | RLeft)

Definition at line 66 of file x3d.h.

◆ Rmask

#define Rmask   (~RRight & ~RLeft)

Definition at line 64 of file x3d.h.

◆ RRight

#define RRight   (1 << RClipWithRight)

Definition at line 54 of file x3d.h.

◆ SAME

#define SAME   2

Definition at line 130 of file x3d.h.

◆ SMALLMOVEMENT

#define SMALLMOVEMENT   40000

Definition at line 80 of file x3d.h.

◆ SOLID

#define SOLID   3

Definition at line 113 of file x3d.h.

◆ STEREO

#define STEREO   2

Definition at line 106 of file x3d.h.

◆ STIPPLESIZE

#define STIPPLESIZE   4

Definition at line 74 of file x3d.h.

◆ STOP

#define STOP   10

Definition at line 91 of file x3d.h.

◆ swapPtrs

#define swapPtrs ( ptr1,
ptr2 )
Value:
ptr1 = (polygon **)((long)ptr1 ^ (long)ptr2); \
ptr2 = (polygon **)((long)ptr2 ^ (long)ptr1); \
ptr1 = (polygon **)((long)ptr1 ^ (long)ptr2);
struct POLYGON polygon
Definition X3DDefs.h:32

Definition at line 150 of file x3d.h.

◆ TITLEFONT

#define TITLEFONT   "12x24"

Definition at line 97 of file x3d.h.

◆ TMPSTRLEN

#define TMPSTRLEN   16

Definition at line 79 of file x3d.h.

◆ Top

#define Top   (1 << ClipWithTop)

Definition at line 62 of file x3d.h.

◆ TWOPI

#define TWOPI   6.2831853

Definition at line 83 of file x3d.h.

◆ VALUESCALE

#define VALUESCALE   51

Definition at line 72 of file x3d.h.

◆ WIREFRAME

#define WIREFRAME   1

Definition at line 111 of file x3d.h.

Typedef Documentation

◆ anglePoint

typedef struct ANGLEPOINT anglePoint

◆ Ginfo

typedef struct GINFO Ginfo

◆ Oinfo

typedef struct OINFO Oinfo

◆ StackElement

typedef struct STACKELEMENT StackElement

◆ xsegment

typedef struct XSEGMENT xsegment