| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#ifndef _BLT_GRAPH_H |
| 26 |
#define _BLT_GRAPH_H |
| 27 |
|
| 28 |
#include "bltInt.h" |
| 29 |
#include "bltHash.h" |
| 30 |
#include "bltBind.h" |
| 31 |
#include "bltChain.h" |
| 32 |
#include "bltPs.h" |
| 33 |
#include "bltTile.h" |
| 34 |
|
| 35 |
typedef struct GraphStruct Graph; |
| 36 |
typedef struct ElementStruct Element; |
| 37 |
typedef struct LegendStruct Legend; |
| 38 |
|
| 39 |
#include "bltGrAxis.h" |
| 40 |
#include "bltGrLegd.h" |
| 41 |
|
| 42 |
#define MARKER_UNDER 1 |
| 43 |
|
| 44 |
#define MARKER_ABOVE 0 |
| 45 |
|
| 46 |
|
| 47 |
#define PADX 2 |
| 48 |
#define PADY 2 |
| 49 |
|
| 50 |
#define MINIMUM_MARGIN 20 |
| 51 |
|
| 52 |
|
| 53 |
#define BOUND(x, lo, hi) \ |
| 54 |
(((x) > (hi)) ? (hi) : ((x) < (lo)) ? (lo) : (x)) |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
#define PointInGraph(g,x,y) \ |
| 64 |
(((x) <= (g)->right) && ((x) >= (g)->left) && \ |
| 65 |
((y) <= (g)->bottom) && ((y) >= (g)->top)) |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
typedef enum { |
| 78 |
CLASS_UNKNOWN, |
| 79 |
CLASS_LINE_ELEMENT, |
| 80 |
CLASS_STRIP_ELEMENT, |
| 81 |
CLASS_BAR_ELEMENT, |
| 82 |
CLASS_BITMAP_MARKER, |
| 83 |
CLASS_IMAGE_MARKER, |
| 84 |
CLASS_LINE_MARKER, |
| 85 |
CLASS_POLYGON_MARKER, |
| 86 |
CLASS_TEXT_MARKER, |
| 87 |
CLASS_WINDOW_MARKER |
| 88 |
|
| 89 |
} ClassType; |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
#define GRAPH (TK_CONFIG_USER_BIT << 1) |
| 96 |
#define STRIPCHART (TK_CONFIG_USER_BIT << 2) |
| 97 |
#define BARCHART (TK_CONFIG_USER_BIT << 3) |
| 98 |
#define LINE_GRAPHS (GRAPH | STRIPCHART) |
| 99 |
#define ALL_GRAPHS (GRAPH | BARCHART | STRIPCHART) |
| 100 |
|
| 101 |
#define PEN_DELETE_PENDING (1<<0) |
| 102 |
#define ACTIVE_PEN (TK_CONFIG_USER_BIT << 6) |
| 103 |
#define NORMAL_PEN (TK_CONFIG_USER_BIT << 7) |
| 104 |
#define ALL_PENS (NORMAL_PEN | ACTIVE_PEN) |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
typedef struct { |
| 114 |
int freq; |
| 115 |
Axis2D axes; |
| 116 |
|
| 117 |
double sum; |
| 118 |
|
| 119 |
int count; |
| 120 |
double lastY; |
| 121 |
|
| 122 |
} FreqInfo; |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
typedef struct { |
| 133 |
double value; |
| 134 |
Axis2D axes; |
| 135 |
} FreqKey; |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
typedef enum BarModes { |
| 147 |
MODE_INFRONT, |
| 148 |
|
| 149 |
MODE_STACKED, |
| 150 |
|
| 151 |
MODE_ALIGNED, |
| 152 |
|
| 153 |
|
| 154 |
MODE_OVERLAP |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
} BarMode; |
| 159 |
|
| 160 |
typedef struct PenStruct Pen; |
| 161 |
typedef struct MarkerStruct Marker; |
| 162 |
|
| 163 |
typedef Pen *(PenCreateProc) _ANSI_ARGS_((void)); |
| 164 |
typedef int (PenConfigureProc) _ANSI_ARGS_((Graph *graphPtr, Pen *penPtr)); |
| 165 |
typedef void (PenDestroyProc) _ANSI_ARGS_((Graph *graphPtr, Pen *penPtr)); |
| 166 |
|
| 167 |
struct PenStruct { |
| 168 |
char *name; |
| 169 |
|
| 170 |
Blt_Uid classUid; |
| 171 |
char *typeId; |
| 172 |
unsigned int flags; |
| 173 |
|
| 174 |
int refCount; |
| 175 |
|
| 176 |
Blt_HashEntry *hashPtr; |
| 177 |
|
| 178 |
Tk_ConfigSpec *configSpecs; |
| 179 |
|
| 180 |
PenConfigureProc *configProc; |
| 181 |
PenDestroyProc *destroyProc; |
| 182 |
|
| 183 |
}; |
| 184 |
|
| 185 |
typedef enum { |
| 186 |
PS_MONO_BACKGROUND, |
| 187 |
PS_MONO_FOREGROUND |
| 188 |
} MonoAttribute; |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
typedef struct { |
| 198 |
|
| 199 |
|
| 200 |
int decorations; |
| 201 |
|
| 202 |
|
| 203 |
int reqWidth, reqHeight; |
| 204 |
|
| 205 |
int reqPaperWidth; |
| 206 |
int reqPaperHeight; |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
Blt_Pad padX, padY; |
| 211 |
|
| 212 |
|
| 213 |
PsColorMode colorMode; |
| 214 |
|
| 215 |
char *colorVarName; |
| 216 |
|
| 217 |
|
| 218 |
char *fontVarName; |
| 219 |
|
| 220 |
|
| 221 |
int landscape; |
| 222 |
int center; |
| 223 |
int maxpect; |
| 224 |
|
| 225 |
|
| 226 |
int addPreview; |
| 227 |
|
| 228 |
int footer; |
| 229 |
|
| 230 |
|
| 231 |
int previewFormat; |
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
int left, bottom; |
| 238 |
int right, top; |
| 239 |
|
| 240 |
double pageScale; |
| 241 |
|
| 242 |
} PostScript; |
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
typedef struct { |
| 256 |
GC gc; |
| 257 |
Axis2D axes; |
| 258 |
int hidden; |
| 259 |
int minorGrid; |
| 260 |
|
| 261 |
Blt_Dashes dashes; |
| 262 |
|
| 263 |
|
| 264 |
int lineWidth; |
| 265 |
XColor *colorPtr; |
| 266 |
|
| 267 |
struct GridSegments { |
| 268 |
Segment2D *segments; |
| 269 |
|
| 270 |
int nSegments; |
| 271 |
} x, y; |
| 272 |
int raised; |
| 273 |
|
| 274 |
} Grid; |
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
typedef struct CrosshairsStruct Crosshairs; |
| 287 |
|
| 288 |
typedef struct { |
| 289 |
short int width, height; |
| 290 |
|
| 291 |
short int axesOffset; |
| 292 |
short int axesTitleLength; |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
unsigned int nAxes; |
| 297 |
Blt_Chain *axes; |
| 298 |
|
| 299 |
char *varName; |
| 300 |
|
| 301 |
|
| 302 |
int reqSize; |
| 303 |
int site; |
| 304 |
|
| 305 |
} Margin; |
| 306 |
|
| 307 |
#define MARGIN_NONE -1 |
| 308 |
#define MARGIN_BOTTOM 0 |
| 309 |
#define MARGIN_LEFT 1 |
| 310 |
#define MARGIN_TOP 2 |
| 311 |
#define MARGIN_RIGHT 3 |
| 312 |
|
| 313 |
#define rightMargin margins[MARGIN_RIGHT] |
| 314 |
#define leftMargin margins[MARGIN_LEFT] |
| 315 |
#define topMargin margins[MARGIN_TOP] |
| 316 |
#define bottomMargin margins[MARGIN_BOTTOM] |
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
struct GraphStruct { |
| 329 |
unsigned int flags; |
| 330 |
Tcl_Interp *interp; |
| 331 |
Tk_Window tkwin; |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
Display *display; |
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
Tcl_Command cmdToken; |
| 340 |
|
| 341 |
char *data; |
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
Tk_Cursor cursor; |
| 346 |
|
| 347 |
int inset; |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
int borderWidth; |
| 353 |
int relief; |
| 354 |
Tk_3DBorder border; |
| 355 |
|
| 356 |
|
| 357 |
int highlightWidth; |
| 358 |
|
| 359 |
|
| 360 |
XColor *highlightBgColor; |
| 361 |
|
| 362 |
XColor *highlightColor; |
| 363 |
|
| 364 |
char *title; |
| 365 |
short int titleX, titleY; |
| 366 |
TextStyle titleTextStyle; |
| 367 |
|
| 368 |
char *takeFocus; |
| 369 |
|
| 370 |
int reqWidth, reqHeight; |
| 371 |
int width, height; |
| 372 |
|
| 373 |
|
| 374 |
Blt_HashTable penTable; |
| 375 |
|
| 376 |
struct Component { |
| 377 |
Blt_HashTable table; |
| 378 |
Blt_Chain *displayList; |
| 379 |
Blt_HashTable tagTable; |
| 380 |
} elements, markers, axes; |
| 381 |
|
| 382 |
Blt_Uid classUid; |
| 383 |
|
| 384 |
Blt_BindTable bindTable; |
| 385 |
int nextMarkerId; |
| 386 |
|
| 387 |
Blt_Chain *axisChain[4]; |
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
Margin margins[4]; |
| 394 |
|
| 395 |
PostScript *postscript; |
| 396 |
Legend *legend; |
| 397 |
Crosshairs *crosshairs; |
| 398 |
Grid *gridPtr; |
| 399 |
|
| 400 |
int halo; |
| 401 |
|
| 402 |
int inverted; |
| 403 |
|
| 404 |
Blt_Tile tile; |
| 405 |
GC drawGC; |
| 406 |
|
| 407 |
GC fillGC; |
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
int plotBorderWidth; |
| 412 |
int plotRelief; |
| 413 |
XColor *plotBg; |
| 414 |
|
| 415 |
GC plotFillGC; |
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
double aspect; |
| 421 |
|
| 422 |
short int left, right; |
| 423 |
short int top, bottom; |
| 424 |
|
| 425 |
Blt_Pad padX; |
| 426 |
int vRange, vOffset; |
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
Blt_Pad padY; |
| 431 |
int hRange, hOffset; |
| 432 |
|
| 433 |
|
| 434 |
double vScale, hScale; |
| 435 |
|
| 436 |
int doubleBuffer; |
| 437 |
|
| 438 |
int backingStore; |
| 439 |
|
| 440 |
Pixmap backPixmap; |
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
int backWidth, backHeight; |
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
double baseline; |
| 457 |
double barWidth; |
| 458 |
|
| 459 |
BarMode mode; |
| 460 |
|
| 461 |
|
| 462 |
FreqInfo *freqArr; |
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
Blt_HashTable freqTable; |
| 467 |
int nStacks; |
| 468 |
|
| 469 |
|
| 470 |
char *redrawCmd; |
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
}; |
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
|
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
#define MAP_ITEM (1<<0) |
| 560 |
#define MAP_ALL (1<<1) |
| 561 |
#define GET_AXIS_GEOMETRY (1<<2) |
| 562 |
#define RESET_AXES (1<<3) |
| 563 |
#define LAYOUT_NEEDED (1<<4) |
| 564 |
|
| 565 |
#define REDRAW_PENDING (1<<8) |
| 566 |
#define DRAW_LEGEND (1<<9) |
| 567 |
#define DRAW_MARGINS (1<<10) |
| 568 |
#define REDRAW_BACKING_STORE (1<<11) |
| 569 |
|
| 570 |
#define GRAPH_FOCUS (1<<12) |
| 571 |
#define EXEC_REDRAWCMD (1<<13) |
| 572 |
|
| 573 |
#define MAP_WORLD (MAP_ALL|RESET_AXES|GET_AXIS_GEOMETRY) |
| 574 |
#define REDRAW_WORLD (DRAW_MARGINS | DRAW_LEGEND) |
| 575 |
#define RESET_WORLD (REDRAW_WORLD | MAP_WORLD) |
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
extern int Blt_CreatePostScript _ANSI_ARGS_((Graph *graphPtr)); |
| 582 |
extern int Blt_CreateCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 583 |
extern int Blt_CreateGrid _ANSI_ARGS_((Graph *graphPtr)); |
| 584 |
extern double Blt_InvHMap _ANSI_ARGS_((Graph *graphPtr, Axis *axisPtr, |
| 585 |
double x)); |
| 586 |
extern double Blt_InvVMap _ANSI_ARGS_((Graph *graphPtr, Axis *axisPtr, |
| 587 |
double x)); |
| 588 |
extern double Blt_HMap _ANSI_ARGS_((Graph *graphPtr, Axis *axisPtr, double x)); |
| 589 |
extern double Blt_VMap _ANSI_ARGS_((Graph *graphPtr, Axis *axisPtr, double y)); |
| 590 |
extern Point2D Blt_InvMap2D _ANSI_ARGS_((Graph *graphPtr, double x, |
| 591 |
double y, Axis2D *pairPtr)); |
| 592 |
extern Point2D Blt_Map2D _ANSI_ARGS_((Graph *graphPtr, double x, |
| 593 |
double y, Axis2D *pairPtr)); |
| 594 |
extern Graph *Blt_GetGraphFromWindowData _ANSI_ARGS_((Tk_Window tkwin)); |
| 595 |
extern void Blt_AdjustAxisPointers _ANSI_ARGS_((Graph *graphPtr)); |
| 596 |
extern int Blt_LineRectClip _ANSI_ARGS_((Extents2D *extsPtr, Point2D *p, |
| 597 |
Point2D *q)); |
| 598 |
extern int Blt_PolyRectClip _ANSI_ARGS_((Extents2D *extsPtr, Point2D *inputPts, |
| 599 |
int nInputPts, Point2D *outputPts)); |
| 600 |
|
| 601 |
extern void Blt_ComputeStacks _ANSI_ARGS_((Graph *graphPtr)); |
| 602 |
extern void Blt_ConfigureCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 603 |
extern void Blt_DestroyAxes _ANSI_ARGS_((Graph *graphPtr)); |
| 604 |
extern void Blt_DestroyCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 605 |
extern void Blt_DestroyGrid _ANSI_ARGS_((Graph *graphPtr)); |
| 606 |
extern void Blt_DestroyElements _ANSI_ARGS_((Graph *graphPtr)); |
| 607 |
extern void Blt_DestroyMarkers _ANSI_ARGS_((Graph *graphPtr)); |
| 608 |
extern void Blt_DestroyPostScript _ANSI_ARGS_((Graph *graphPtr)); |
| 609 |
extern void Blt_DrawAxes _ANSI_ARGS_((Graph *graphPtr, Drawable drawable)); |
| 610 |
extern void Blt_DrawAxisLimits _ANSI_ARGS_((Graph *graphPtr, |
| 611 |
Drawable drawable)); |
| 612 |
extern void Blt_DrawElements _ANSI_ARGS_((Graph *graphPtr, Drawable drawable)); |
| 613 |
extern void Blt_DrawActiveElements _ANSI_ARGS_((Graph *graphPtr, |
| 614 |
Drawable drawable)); |
| 615 |
extern void Blt_DrawGraph _ANSI_ARGS_((Graph *graphPtr, Drawable drawable, |
| 616 |
int backingStore)); |
| 617 |
extern void Blt_DrawGrid _ANSI_ARGS_((Graph *graphPtr, Drawable drawable)); |
| 618 |
extern void Blt_DrawMarkers _ANSI_ARGS_((Graph *graphPtr, Drawable drawable, |
| 619 |
int under)); |
| 620 |
extern void Blt_Draw2DSegments _ANSI_ARGS_((Display *display, |
| 621 |
Drawable drawable, GC gc, Segment2D *segments, int nSegments)); |
| 622 |
extern int Blt_GetCoordinate _ANSI_ARGS_((Tcl_Interp *interp, |
| 623 |
char *expr, double *valuePtr)); |
| 624 |
extern void Blt_InitFreqTable _ANSI_ARGS_((Graph *graphPtr)); |
| 625 |
extern void Blt_LayoutGraph _ANSI_ARGS_((Graph *graphPtr)); |
| 626 |
extern void Blt_LayoutMargins _ANSI_ARGS_((Graph *graphPtr)); |
| 627 |
extern void Blt_EventuallyRedrawGraph _ANSI_ARGS_((Graph *graphPtr)); |
| 628 |
extern void Blt_ResetAxes _ANSI_ARGS_((Graph *graphPtr)); |
| 629 |
extern void Blt_ResetStacks _ANSI_ARGS_((Graph *graphPtr)); |
| 630 |
extern void Blt_GraphExtents _ANSI_ARGS_((Graph *graphPtr, Extents2D *extsPtr)); |
| 631 |
extern void Blt_DisableCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 632 |
extern void Blt_EnableCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 633 |
extern void Blt_MapAxes _ANSI_ARGS_((Graph *graphPtr)); |
| 634 |
extern void Blt_MapElements _ANSI_ARGS_((Graph *graphPtr)); |
| 635 |
extern void Blt_MapGraph _ANSI_ARGS_((Graph *graphPtr)); |
| 636 |
extern void Blt_MapMarkers _ANSI_ARGS_((Graph *graphPtr)); |
| 637 |
extern void Blt_MapGrid _ANSI_ARGS_((Graph *graphPtr)); |
| 638 |
extern void Blt_UpdateCrosshairs _ANSI_ARGS_((Graph *graphPtr)); |
| 639 |
extern void Blt_DestroyPens _ANSI_ARGS_((Graph *graphPtr)); |
| 640 |
extern int Blt_GetPen _ANSI_ARGS_((Graph *graphPtr, char *name, |
| 641 |
Blt_Uid classUid, Pen **penPtrPtr)); |
| 642 |
extern Pen *Blt_BarPen _ANSI_ARGS_((char *penName)); |
| 643 |
extern Pen *Blt_LinePen _ANSI_ARGS_((char *penName)); |
| 644 |
extern Pen *Blt_CreatePen _ANSI_ARGS_((Graph *graphPtr, char *penName, |
| 645 |
Blt_Uid classUid, int nOpts, char **options)); |
| 646 |
extern int Blt_InitLinePens _ANSI_ARGS_((Graph *graphPtr)); |
| 647 |
extern int Blt_InitBarPens _ANSI_ARGS_((Graph *graphPtr)); |
| 648 |
extern void Blt_FreePen _ANSI_ARGS_((Graph *graphPtr, Pen *penPtr)); |
| 649 |
|
| 650 |
extern int Blt_VirtualAxisOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 651 |
int argc, char **argv)); |
| 652 |
extern int Blt_AxisOp _ANSI_ARGS_((Graph *graphPtr, int margin, int argc, |
| 653 |
char **argv)); |
| 654 |
extern int Blt_ElementOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 655 |
int argc, char **argv, Blt_Uid classUid)); |
| 656 |
extern int Blt_GridOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 657 |
int argc, char **argv)); |
| 658 |
extern int Blt_CrosshairsOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 659 |
int argc, char **argv)); |
| 660 |
extern int Blt_MarkerOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 661 |
int argc, char **argv)); |
| 662 |
extern int Blt_PenOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 663 |
int argc, char **argv)); |
| 664 |
extern int Blt_PointInPolygon _ANSI_ARGS_((Point2D *samplePtr, |
| 665 |
Point2D *screenPts, int nScreenPts)); |
| 666 |
extern int Blt_RegionInPolygon _ANSI_ARGS_((Extents2D *extsPtr, Point2D *points, |
| 667 |
int nPoints, int enclosed)); |
| 668 |
extern int Blt_PointInSegments _ANSI_ARGS_((Point2D *samplePtr, |
| 669 |
Segment2D *segments, int nSegments, double halo)); |
| 670 |
extern int Blt_PostScriptOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp, |
| 671 |
int argc, char **argv)); |
| 672 |
extern int Blt_GraphUpdateNeeded _ANSI_ARGS_((Graph *graphPtr)); |
| 673 |
extern int Blt_DefaultAxes _ANSI_ARGS_((Graph *graphPtr)); |
| 674 |
extern Axis *Blt_GetFirstAxis _ANSI_ARGS_((Blt_Chain *chainPtr)); |
| 675 |
extern void Blt_UpdateAxisBackgrounds _ANSI_ARGS_((Graph *graphPtr)); |
| 676 |
extern void Blt_GetAxisSegments _ANSI_ARGS_((Graph *graphPtr, Axis *axisPtr, |
| 677 |
Segment2D **segPtrPtr, int *nSegmentsPtr)); |
| 678 |
extern Marker *Blt_NearestMarker _ANSI_ARGS_((Graph *graphPtr, int x, int y, |
| 679 |
int under)); |
| 680 |
extern Axis *Blt_NearestAxis _ANSI_ARGS_((Graph *graphPtr, int x, int y)); |
| 681 |
extern int Blt_ConfigureAxes(Graph* graphPtr); |
| 682 |
|
| 683 |
typedef ClientData (MakeTagProc) _ANSI_ARGS_((Graph *graphPtr, char *tagName)); |
| 684 |
extern MakeTagProc Blt_MakeElementTag; |
| 685 |
extern MakeTagProc Blt_MakeMarkerTag; |
| 686 |
extern MakeTagProc Blt_MakeAxisTag; |
| 687 |
|
| 688 |
extern Blt_BindTagProc Blt_GraphTags; |
| 689 |
extern Blt_BindTagProc Blt_AxisTags; |
| 690 |
|
| 691 |
extern int Blt_GraphType _ANSI_ARGS_((Graph *graphPtr)); |
| 692 |
|
| 693 |
|
| 694 |
|
| 695 |
extern Blt_Uid bltBarElementUid; |
| 696 |
extern Blt_Uid bltLineElementUid; |
| 697 |
extern Blt_Uid bltStripElementUid; |
| 698 |
extern Blt_Uid bltLineMarkerUid; |
| 699 |
extern Blt_Uid bltBitmapMarkerUid; |
| 700 |
extern Blt_Uid bltImageMarkerUid; |
| 701 |
extern Blt_Uid bltTextMarkerUid; |
| 702 |
extern Blt_Uid bltPolygonMarkerUid; |
| 703 |
extern Blt_Uid bltWindowMarkerUid; |
| 704 |
extern Blt_Uid bltXAxisUid; |
| 705 |
extern Blt_Uid bltYAxisUid; |
| 706 |
|
| 707 |
#endif |