Changeset 32333
- Timestamp:
- Sep 6, 2011, 10:53:01 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src
- Files:
-
- 3 edited
-
DrawObjects.c (modified) (11 diffs)
-
PSObjects.c (modified) (11 diffs)
-
bDrawObjects.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/DrawObjects.c
r31665 r32333 408 408 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 409 409 if (scaleColor) { 410 if (!finite(z[i])) continue; 410 411 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 411 412 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 424 425 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 425 426 if (scaleColor) { 427 if (!finite(z[i])) continue; 426 428 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 427 429 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 440 442 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 441 443 if (scaleColor) { 444 if (!finite(z[i])) continue; 442 445 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 443 446 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 457 460 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 458 461 if (scaleColor) { 462 if (!finite(z[i])) continue; 459 463 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 460 464 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 475 479 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 476 480 if (scaleColor) { 481 if (!finite(z[i])) continue; 477 482 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 478 483 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 495 500 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 496 501 if (scaleColor) { 502 if (!finite(z[i])) continue; 497 503 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 498 504 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 513 519 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 514 520 if (scaleColor) { 521 if (!finite(z[i])) continue; 515 522 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 516 523 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 531 538 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 532 539 if (scaleColor) { 540 if (!finite(z[i])) continue; 533 541 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 534 542 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 547 555 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 548 556 if (scaleColor) { 557 if (!finite(z[i])) continue; 549 558 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 550 559 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 567 576 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 568 577 if (scaleColor) { 578 if (!finite(z[i])) continue; 569 579 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 570 580 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); … … 589 599 (sy < graph[0].axis[1].fy) && (sy > graph[0].axis[1].fy + graph[0].axis[1].dfy)) { 590 600 if (scaleColor) { 601 if (!finite(z[i])) continue; 591 602 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 592 603 XSetForeground (graphic->display, graphic->gc, graphic->cmap[pixel].pixel); -
branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/PSObjects.c
r31665 r32333 323 323 { 324 324 if (scaleColor) { 325 if (!finite(z[i])) continue; 325 326 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 326 327 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 340 341 { 341 342 if (scaleColor) { 343 if (!finite(z[i])) continue; 342 344 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 343 345 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 357 359 { 358 360 if (scaleColor) { 361 if (!finite(z[i])) continue; 359 362 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 360 363 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 375 378 { 376 379 if (scaleColor) { 380 if (!finite(z[i])) continue; 377 381 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 378 382 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 393 397 { 394 398 if (scaleColor) { 399 if (!finite(z[i])) continue; 395 400 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 396 401 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 415 420 { 416 421 if (scaleColor) { 422 if (!finite(z[i])) continue; 417 423 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 418 424 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 434 440 { 435 441 if (scaleColor) { 442 if (!finite(z[i])) continue; 436 443 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 437 444 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 453 460 { 454 461 if (scaleColor) { 462 if (!finite(z[i])) continue; 455 463 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 456 464 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 470 478 { 471 479 if (scaleColor) { 480 if (!finite(z[i])) continue; 472 481 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 473 482 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 491 500 { 492 501 if (scaleColor) { 502 if (!finite(z[i])) continue; 493 503 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 494 504 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); … … 514 524 { 515 525 if (scaleColor) { 526 if (!finite(z[i])) continue; 516 527 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 517 528 fprintf (f, "%4.2f %4.2f %4.2f setrgbcolor\n", pixel1[pixel], pixel2[pixel], pixel3[pixel]); -
branches/eam_branches/ipp-20110710/Ohana/src/kapa2/src/bDrawObjects.c
r31665 r32333 307 307 { 308 308 if (scaleColor) { 309 if (!finite(z[i])) continue; 309 310 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 310 311 buffer->bColor_R = pixel1[pixel]; … … 326 327 { 327 328 if (scaleColor) { 329 if (!finite(z[i])) continue; 328 330 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 329 331 buffer->bColor_R = pixel1[pixel]; … … 345 347 { 346 348 if (scaleColor) { 349 if (!finite(z[i])) continue; 347 350 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 348 351 buffer->bColor_R = pixel1[pixel]; … … 365 368 { 366 369 if (scaleColor) { 370 if (!finite(z[i])) continue; 367 371 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 368 372 buffer->bColor_R = pixel1[pixel]; … … 385 389 { 386 390 if (scaleColor) { 391 if (!finite(z[i])) continue; 387 392 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 388 393 buffer->bColor_R = pixel1[pixel]; … … 405 410 { 406 411 if (scaleColor) { 412 if (!finite(z[i])) continue; 407 413 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 408 414 buffer->bColor_R = pixel1[pixel]; … … 424 430 { 425 431 if (scaleColor) { 432 if (!finite(z[i])) continue; 426 433 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 427 434 buffer->bColor_R = pixel1[pixel]; … … 445 452 { 446 453 if (scaleColor) { 454 if (!finite(z[i])) continue; 447 455 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 448 456 buffer->bColor_R = pixel1[pixel]; … … 464 472 { 465 473 if (scaleColor) { 474 if (!finite(z[i])) continue; 466 475 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 467 476 buffer->bColor_R = pixel1[pixel]; … … 487 496 { 488 497 if (scaleColor) { 498 if (!finite(z[i])) continue; 489 499 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 490 500 buffer->bColor_R = pixel1[pixel]; … … 511 521 { 512 522 if (scaleColor) { 523 if (!finite(z[i])) continue; 513 524 int pixel = MIN (graphic->Npixels - 2, MAX (0, z[i]*(graphic->Npixels - 1))); 514 525 buffer->bColor_R = pixel1[pixel];
Note:
See TracChangeset
for help on using the changeset viewer.
