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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 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 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901
|
using Kitware.VTK;
using System;
// input file is C:\VTK\Graphics\Testing\Tcl\MatrixToTransform.tcl
// output file is AVMatrixToTransform.cs
/// <summary>
/// The testing class derived from AVMatrixToTransform
/// </summary>
public class AVMatrixToTransformClass
{
/// <summary>
/// The main entry method called by the CSharp driver
/// </summary>
/// <param name="argv"></param>
public static void AVMatrixToTransform(String [] argv)
{
//Prefix Content is: ""
// This example demonstrates how to use a matrix in place of a transfrom[]
// via vtkMatrixToLinearTransform and vtkMatrixToHomogeneousTransform.[]
// create a rendering window[]
renWin = vtkRenderWindow.New();
renWin.SetSize((int)600,(int)300);
// set up first set of polydata[]
p1 = new vtkPlaneSource();
p1.SetOrigin((double)0.5,(double)0.508,(double)-0.5);
p1.SetPoint1((double)-0.5,(double)0.508,(double)-0.5);
p1.SetPoint2((double)0.5,(double)0.508,(double)0.5);
p1.SetXResolution((int)5);
p1.SetYResolution((int)5);
p2 = new vtkPlaneSource();
p2.SetOrigin((double)-0.508,(double)0.5,(double)-0.5);
p2.SetPoint1((double)-0.508,(double)-0.5,(double)-0.5);
p2.SetPoint2((double)-0.508,(double)0.5,(double)0.5);
p2.SetXResolution((int)5);
p2.SetYResolution((int)5);
p3 = new vtkPlaneSource();
p3.SetOrigin((double)-0.5,(double)-0.508,(double)-0.5);
p3.SetPoint1((double)0.5,(double)-0.508,(double)-0.5);
p3.SetPoint2((double)-0.5,(double)-0.508,(double)0.5);
p3.SetXResolution((int)5);
p3.SetYResolution((int)5);
p4 = new vtkPlaneSource();
p4.SetOrigin((double)0.508,(double)-0.5,(double)-0.5);
p4.SetPoint1((double)0.508,(double)0.5,(double)-0.5);
p4.SetPoint2((double)0.508,(double)-0.5,(double)0.5);
p4.SetXResolution((int)5);
p4.SetYResolution((int)5);
p5 = new vtkPlaneSource();
p5.SetOrigin((double)0.5,(double)0.5,(double)-0.508);
p5.SetPoint1((double)0.5,(double)-0.5,(double)-0.508);
p5.SetPoint2((double)-0.5,(double)0.5,(double)-0.508);
p5.SetXResolution((int)5);
p5.SetYResolution((int)5);
p6 = new vtkPlaneSource();
p6.SetOrigin((double)0.5,(double)0.5,(double)0.508);
p6.SetPoint1((double)-0.5,(double)0.5,(double)0.508);
p6.SetPoint2((double)0.5,(double)-0.5,(double)0.508);
p6.SetXResolution((int)5);
p6.SetYResolution((int)5);
// append together[]
ap = new vtkAppendPolyData();
ap.AddInput((vtkPolyData)p1.GetOutput());
ap.AddInput((vtkPolyData)p2.GetOutput());
ap.AddInput((vtkPolyData)p3.GetOutput());
ap.AddInput((vtkPolyData)p4.GetOutput());
ap.AddInput((vtkPolyData)p5.GetOutput());
ap.AddInput((vtkPolyData)p6.GetOutput());
//--------------------------[]
// linear transform matrix[]
t1 = new vtkMatrixToLinearTransform();
m1 = new vtkMatrix4x4();
t1.SetInput((vtkMatrix4x4)m1);
m1.SetElement((int)0,(int)0,(double)1.127631);
m1.SetElement((int)0,(int)1,(double)0.205212);
m1.SetElement((int)0,(int)2,(double)-0.355438);
m1.SetElement((int)1,(int)0,(double)0.000000);
m1.SetElement((int)1,(int)1,(double)0.692820);
m1.SetElement((int)1,(int)2,(double)0.400000);
m1.SetElement((int)2,(int)0,(double)0.200000);
m1.SetElement((int)2,(int)1,(double)-0.469846);
m1.SetElement((int)2,(int)2,(double)0.813798);
f11 = new vtkTransformPolyDataFilter();
f11.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f11.SetTransform((vtkAbstractTransform)t1);
m11 = new vtkDataSetMapper();
m11.SetInputConnection((vtkAlgorithmOutput)f11.GetOutputPort());
a11 = new vtkActor();
a11.SetMapper((vtkMapper)m11);
a11.GetProperty().SetColor((double)1,(double)0,(double)0);
a11.GetProperty().SetRepresentationToWireframe();
ren11 = vtkRenderer.New();
ren11.SetViewport((double)0.0,(double)0.5,(double)0.25,(double)1.0);
ren11.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren11.AddActor((vtkProp)a11);
renWin.AddRenderer((vtkRenderer)ren11);
// inverse identity transform[]
f12 = new vtkTransformPolyDataFilter();
f12.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f12.SetTransform((vtkAbstractTransform)t1.GetInverse());
m12 = new vtkDataSetMapper();
m12.SetInputConnection((vtkAlgorithmOutput)f12.GetOutputPort());
a12 = new vtkActor();
a12.SetMapper((vtkMapper)m12);
a12.GetProperty().SetColor((double)0.9,(double)0.9,(double)0);
a12.GetProperty().SetRepresentationToWireframe();
ren12 = vtkRenderer.New();
ren12.SetViewport((double)0.0,(double)0.0,(double)0.25,(double)0.5);
ren12.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren12.AddActor((vtkProp)a12);
renWin.AddRenderer((vtkRenderer)ren12);
//--------------------------[]
// perspective transform matrix[]
m2 = new vtkMatrix4x4();
m2.SetElement((int)3,(int)0,(double)-0.11);
m2.SetElement((int)3,(int)1,(double)0.3);
m2.SetElement((int)3,(int)2,(double)0.2);
t2 = new vtkMatrixToHomogeneousTransform();
t2.SetInput((vtkMatrix4x4)m2);
f21 = new vtkTransformPolyDataFilter();
f21.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f21.SetTransform((vtkAbstractTransform)t2);
m21 = new vtkDataSetMapper();
m21.SetInputConnection((vtkAlgorithmOutput)f21.GetOutputPort());
a21 = new vtkActor();
a21.SetMapper((vtkMapper)m21);
a21.GetProperty().SetColor((double)1,(double)0,(double)0);
a21.GetProperty().SetRepresentationToWireframe();
ren21 = vtkRenderer.New();
ren21.SetViewport((double)0.25,(double)0.5,(double)0.50,(double)1.0);
ren21.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren21.AddActor((vtkProp)a21);
renWin.AddRenderer((vtkRenderer)ren21);
// inverse linear transform[]
f22 = new vtkTransformPolyDataFilter();
f22.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f22.SetTransform((vtkAbstractTransform)t2.GetInverse());
m22 = new vtkDataSetMapper();
m22.SetInputConnection((vtkAlgorithmOutput)f22.GetOutputPort());
a22 = new vtkActor();
a22.SetMapper((vtkMapper)m22);
a22.GetProperty().SetColor((double)0.9,(double)0.9,(double)0);
a22.GetProperty().SetRepresentationToWireframe();
ren22 = vtkRenderer.New();
ren22.SetViewport((double)0.25,(double)0.0,(double)0.50,(double)0.5);
ren22.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren22.AddActor((vtkProp)a22);
renWin.AddRenderer((vtkRenderer)ren22);
//--------------------------[]
// linear concatenation - should end up with identity here[]
t3 = new vtkTransform();
t3.Concatenate((vtkLinearTransform)t1);
t3.Concatenate((vtkLinearTransform)t1.GetInverse());
f31 = new vtkTransformPolyDataFilter();
f31.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f31.SetTransform((vtkAbstractTransform)t3);
m31 = new vtkDataSetMapper();
m31.SetInputConnection((vtkAlgorithmOutput)f31.GetOutputPort());
a31 = new vtkActor();
a31.SetMapper((vtkMapper)m31);
a31.GetProperty().SetColor((double)1,(double)0,(double)0);
a31.GetProperty().SetRepresentationToWireframe();
ren31 = vtkRenderer.New();
ren31.SetViewport((double)0.50,(double)0.5,(double)0.75,(double)1.0);
ren31.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren31.AddActor((vtkProp)a31);
renWin.AddRenderer((vtkRenderer)ren31);
// inverse linear transform[]
f32 = new vtkTransformPolyDataFilter();
f32.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f32.SetTransform((vtkAbstractTransform)t3.GetInverse());
m32 = new vtkDataSetMapper();
m32.SetInputConnection((vtkAlgorithmOutput)f32.GetOutputPort());
a32 = new vtkActor();
a32.SetMapper((vtkMapper)m32);
a32.GetProperty().SetColor((double)0.9,(double)0.9,(double)0);
a32.GetProperty().SetRepresentationToWireframe();
ren32 = vtkRenderer.New();
ren32.SetViewport((double)0.5,(double)0.0,(double)0.75,(double)0.5);
ren32.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren32.AddActor((vtkProp)a32);
renWin.AddRenderer((vtkRenderer)ren32);
//--------------------------[]
// perspective transform concatenation[]
t4 = new vtkPerspectiveTransform();
t4.Concatenate((vtkHomogeneousTransform)t1);
t4.Concatenate((vtkHomogeneousTransform)t2);
t4.Concatenate((vtkHomogeneousTransform)t3);
f41 = new vtkTransformPolyDataFilter();
f41.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f41.SetTransform((vtkAbstractTransform)t4);
m41 = new vtkDataSetMapper();
m41.SetInputConnection((vtkAlgorithmOutput)f41.GetOutputPort());
a41 = new vtkActor();
a41.SetMapper((vtkMapper)m41);
a41.GetProperty().SetColor((double)1,(double)0,(double)0);
a41.GetProperty().SetRepresentationToWireframe();
ren41 = vtkRenderer.New();
ren41.SetViewport((double)0.75,(double)0.5,(double)1.0,(double)1.0);
ren41.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren41.AddActor((vtkProp)a41);
renWin.AddRenderer((vtkRenderer)ren41);
// inverse of transform concatenation[]
f42 = new vtkTransformPolyDataFilter();
f42.SetInputConnection((vtkAlgorithmOutput)ap.GetOutputPort());
f42.SetTransform((vtkAbstractTransform)t4.GetInverse());
m42 = new vtkDataSetMapper();
m42.SetInputConnection((vtkAlgorithmOutput)f42.GetOutputPort());
a42 = new vtkActor();
a42.SetMapper((vtkMapper)m42);
a42.GetProperty().SetColor((double)0.9,(double)0.9,(double)0);
a42.GetProperty().SetRepresentationToWireframe();
ren42 = vtkRenderer.New();
ren42.SetViewport((double)0.75,(double)0.0,(double)1.0,(double)0.5);
ren42.ResetCamera((double)-0.5,(double)0.5,(double)-0.5,(double)0.5,(double)-1,(double)1);
ren42.AddActor((vtkProp)a42);
renWin.AddRenderer((vtkRenderer)ren42);
renWin.Render();
//deleteAllVTKObjects();
}
static string VTK_DATA_ROOT;
static int threshold;
static vtkRenderWindow renWin;
static vtkPlaneSource p1;
static vtkPlaneSource p2;
static vtkPlaneSource p3;
static vtkPlaneSource p4;
static vtkPlaneSource p5;
static vtkPlaneSource p6;
static vtkAppendPolyData ap;
static vtkMatrixToLinearTransform t1;
static vtkMatrix4x4 m1;
static vtkTransformPolyDataFilter f11;
static vtkDataSetMapper m11;
static vtkActor a11;
static vtkRenderer ren11;
static vtkTransformPolyDataFilter f12;
static vtkDataSetMapper m12;
static vtkActor a12;
static vtkRenderer ren12;
static vtkMatrix4x4 m2;
static vtkMatrixToHomogeneousTransform t2;
static vtkTransformPolyDataFilter f21;
static vtkDataSetMapper m21;
static vtkActor a21;
static vtkRenderer ren21;
static vtkTransformPolyDataFilter f22;
static vtkDataSetMapper m22;
static vtkActor a22;
static vtkRenderer ren22;
static vtkTransform t3;
static vtkTransformPolyDataFilter f31;
static vtkDataSetMapper m31;
static vtkActor a31;
static vtkRenderer ren31;
static vtkTransformPolyDataFilter f32;
static vtkDataSetMapper m32;
static vtkActor a32;
static vtkRenderer ren32;
static vtkPerspectiveTransform t4;
static vtkTransformPolyDataFilter f41;
static vtkDataSetMapper m41;
static vtkActor a41;
static vtkRenderer ren41;
static vtkTransformPolyDataFilter f42;
static vtkDataSetMapper m42;
static vtkActor a42;
static vtkRenderer ren42;
///<summary> A Get Method for Static Variables </summary>
public static string GetVTK_DATA_ROOT()
{
return VTK_DATA_ROOT;
}
///<summary> A Set Method for Static Variables </summary>
public static void SetVTK_DATA_ROOT(string toSet)
{
VTK_DATA_ROOT = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static int Getthreshold()
{
return threshold;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setthreshold(int toSet)
{
threshold = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderWindow GetrenWin()
{
return renWin;
}
///<summary> A Set Method for Static Variables </summary>
public static void SetrenWin(vtkRenderWindow toSet)
{
renWin = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp1()
{
return p1;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp1(vtkPlaneSource toSet)
{
p1 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp2()
{
return p2;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp2(vtkPlaneSource toSet)
{
p2 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp3()
{
return p3;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp3(vtkPlaneSource toSet)
{
p3 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp4()
{
return p4;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp4(vtkPlaneSource toSet)
{
p4 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp5()
{
return p5;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp5(vtkPlaneSource toSet)
{
p5 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPlaneSource Getp6()
{
return p6;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setp6(vtkPlaneSource toSet)
{
p6 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkAppendPolyData Getap()
{
return ap;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setap(vtkAppendPolyData toSet)
{
ap = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkMatrixToLinearTransform Gett1()
{
return t1;
}
///<summary> A Set Method for Static Variables </summary>
public static void Sett1(vtkMatrixToLinearTransform toSet)
{
t1 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkMatrix4x4 Getm1()
{
return m1;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm1(vtkMatrix4x4 toSet)
{
m1 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf11()
{
return f11;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf11(vtkTransformPolyDataFilter toSet)
{
f11 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm11()
{
return m11;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm11(vtkDataSetMapper toSet)
{
m11 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta11()
{
return a11;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta11(vtkActor toSet)
{
a11 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren11()
{
return ren11;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren11(vtkRenderer toSet)
{
ren11 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf12()
{
return f12;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf12(vtkTransformPolyDataFilter toSet)
{
f12 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm12()
{
return m12;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm12(vtkDataSetMapper toSet)
{
m12 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta12()
{
return a12;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta12(vtkActor toSet)
{
a12 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren12()
{
return ren12;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren12(vtkRenderer toSet)
{
ren12 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkMatrix4x4 Getm2()
{
return m2;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm2(vtkMatrix4x4 toSet)
{
m2 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkMatrixToHomogeneousTransform Gett2()
{
return t2;
}
///<summary> A Set Method for Static Variables </summary>
public static void Sett2(vtkMatrixToHomogeneousTransform toSet)
{
t2 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf21()
{
return f21;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf21(vtkTransformPolyDataFilter toSet)
{
f21 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm21()
{
return m21;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm21(vtkDataSetMapper toSet)
{
m21 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta21()
{
return a21;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta21(vtkActor toSet)
{
a21 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren21()
{
return ren21;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren21(vtkRenderer toSet)
{
ren21 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf22()
{
return f22;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf22(vtkTransformPolyDataFilter toSet)
{
f22 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm22()
{
return m22;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm22(vtkDataSetMapper toSet)
{
m22 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta22()
{
return a22;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta22(vtkActor toSet)
{
a22 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren22()
{
return ren22;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren22(vtkRenderer toSet)
{
ren22 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransform Gett3()
{
return t3;
}
///<summary> A Set Method for Static Variables </summary>
public static void Sett3(vtkTransform toSet)
{
t3 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf31()
{
return f31;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf31(vtkTransformPolyDataFilter toSet)
{
f31 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm31()
{
return m31;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm31(vtkDataSetMapper toSet)
{
m31 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta31()
{
return a31;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta31(vtkActor toSet)
{
a31 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren31()
{
return ren31;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren31(vtkRenderer toSet)
{
ren31 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf32()
{
return f32;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf32(vtkTransformPolyDataFilter toSet)
{
f32 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm32()
{
return m32;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm32(vtkDataSetMapper toSet)
{
m32 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta32()
{
return a32;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta32(vtkActor toSet)
{
a32 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren32()
{
return ren32;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren32(vtkRenderer toSet)
{
ren32 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkPerspectiveTransform Gett4()
{
return t4;
}
///<summary> A Set Method for Static Variables </summary>
public static void Sett4(vtkPerspectiveTransform toSet)
{
t4 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf41()
{
return f41;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf41(vtkTransformPolyDataFilter toSet)
{
f41 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm41()
{
return m41;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm41(vtkDataSetMapper toSet)
{
m41 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta41()
{
return a41;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta41(vtkActor toSet)
{
a41 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren41()
{
return ren41;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren41(vtkRenderer toSet)
{
ren41 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkTransformPolyDataFilter Getf42()
{
return f42;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setf42(vtkTransformPolyDataFilter toSet)
{
f42 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkDataSetMapper Getm42()
{
return m42;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setm42(vtkDataSetMapper toSet)
{
m42 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkActor Geta42()
{
return a42;
}
///<summary> A Set Method for Static Variables </summary>
public static void Seta42(vtkActor toSet)
{
a42 = toSet;
}
///<summary> A Get Method for Static Variables </summary>
public static vtkRenderer Getren42()
{
return ren42;
}
///<summary> A Set Method for Static Variables </summary>
public static void Setren42(vtkRenderer toSet)
{
ren42 = toSet;
}
///<summary>Deletes all static objects created</summary>
public static void deleteAllVTKObjects()
{
//clean up vtk objects
if(renWin!= null){renWin.Dispose();}
if(p1!= null){p1.Dispose();}
if(p2!= null){p2.Dispose();}
if(p3!= null){p3.Dispose();}
if(p4!= null){p4.Dispose();}
if(p5!= null){p5.Dispose();}
if(p6!= null){p6.Dispose();}
if(ap!= null){ap.Dispose();}
if(t1!= null){t1.Dispose();}
if(m1!= null){m1.Dispose();}
if(f11!= null){f11.Dispose();}
if(m11!= null){m11.Dispose();}
if(a11!= null){a11.Dispose();}
if(ren11!= null){ren11.Dispose();}
if(f12!= null){f12.Dispose();}
if(m12!= null){m12.Dispose();}
if(a12!= null){a12.Dispose();}
if(ren12!= null){ren12.Dispose();}
if(m2!= null){m2.Dispose();}
if(t2!= null){t2.Dispose();}
if(f21!= null){f21.Dispose();}
if(m21!= null){m21.Dispose();}
if(a21!= null){a21.Dispose();}
if(ren21!= null){ren21.Dispose();}
if(f22!= null){f22.Dispose();}
if(m22!= null){m22.Dispose();}
if(a22!= null){a22.Dispose();}
if(ren22!= null){ren22.Dispose();}
if(t3!= null){t3.Dispose();}
if(f31!= null){f31.Dispose();}
if(m31!= null){m31.Dispose();}
if(a31!= null){a31.Dispose();}
if(ren31!= null){ren31.Dispose();}
if(f32!= null){f32.Dispose();}
if(m32!= null){m32.Dispose();}
if(a32!= null){a32.Dispose();}
if(ren32!= null){ren32.Dispose();}
if(t4!= null){t4.Dispose();}
if(f41!= null){f41.Dispose();}
if(m41!= null){m41.Dispose();}
if(a41!= null){a41.Dispose();}
if(ren41!= null){ren41.Dispose();}
if(f42!= null){f42.Dispose();}
if(m42!= null){m42.Dispose();}
if(a42!= null){a42.Dispose();}
if(ren42!= null){ren42.Dispose();}
}
}
//--- end of script --//
|