File: AVgeomFilter.cs

package info (click to toggle)
activiz.net 1%3A1.0~git20111214-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,280 kB
  • ctags: 5,957
  • sloc: cs: 28,767; python: 915; cpp: 130; makefile: 35; sh: 11
file content (654 lines) | stat: -rw-r--r-- 21,881 bytes parent folder | download | duplicates (2)
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
using Kitware.VTK;
using System;
// input file is C:\VTK\Graphics\Testing\Tcl\geomFilter.tcl
// output file is AVgeomFilter.cs
/// <summary>
/// The testing class derived from AVgeomFilter
/// </summary>
public class AVgeomFilterClass
{
  /// <summary>
  /// The main entry method called by the CSharp driver
  /// </summary>
  /// <param name="argv"></param>
  public static void AVgeomFilter(String [] argv)
  {
  //Prefix Content is: ""
  
  // create pipeline - structured grid[]
  //[]
  pl3d = new vtkPLOT3DReader();
  pl3d.SetXYZFileName((string)"" + (VTK_DATA_ROOT.ToString()) + "/Data/combxyz.bin");
  pl3d.SetQFileName((string)"" + (VTK_DATA_ROOT.ToString()) + "/Data/combq.bin");
  pl3d.SetScalarFunctionNumber((int)100);
  pl3d.SetVectorFunctionNumber((int)202);
  pl3d.Update();
  gf = new vtkGeometryFilter();
  gf.SetInputConnection((vtkAlgorithmOutput)pl3d.GetOutputPort());
  gMapper = vtkPolyDataMapper.New();
  gMapper.SetInputConnection((vtkAlgorithmOutput)gf.GetOutputPort());
  gMapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  gActor = new vtkActor();
  gActor.SetMapper((vtkMapper)gMapper);
  gf2 = new vtkGeometryFilter();
  gf2.SetInputConnection((vtkAlgorithmOutput)pl3d.GetOutputPort());
  gf2.ExtentClippingOn();
  gf2.SetExtent((double)10,(double)17,(double)-6,(double)6,(double)23,(double)37);
  gf2.PointClippingOn();
  gf2.SetPointMinimum((int)0);
  gf2.SetPointMaximum((int)10000);
  gf2.CellClippingOn();
  gf2.SetCellMinimum((int)0);
  gf2.SetCellMaximum((int)7500);
  g2Mapper = vtkPolyDataMapper.New();
  g2Mapper.SetInputConnection((vtkAlgorithmOutput)gf2.GetOutputPort());
  g2Mapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  g2Actor = new vtkActor();
  g2Actor.SetMapper((vtkMapper)g2Mapper);
  g2Actor.AddPosition((double)0,(double)15,(double)0);
  // create pipeline - poly data[]
  //[]
  gf3 = new vtkGeometryFilter();
  gf3.SetInputConnection((vtkAlgorithmOutput)gf.GetOutputPort());
  g3Mapper = vtkPolyDataMapper.New();
  g3Mapper.SetInputConnection((vtkAlgorithmOutput)gf3.GetOutputPort());
  g3Mapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  g3Actor = new vtkActor();
  g3Actor.SetMapper((vtkMapper)g3Mapper);
  g3Actor.AddPosition((double)0,(double)0,(double)15);
  gf4 = new vtkGeometryFilter();
  gf4.SetInputConnection((vtkAlgorithmOutput)gf2.GetOutputPort());
  gf4.ExtentClippingOn();
  gf4.SetExtent((double)10,(double)17,(double)-6,(double)6,(double)23,(double)37);
  gf4.PointClippingOn();
  gf4.SetPointMinimum((int)0);
  gf4.SetPointMaximum((int)10000);
  gf4.CellClippingOn();
  gf4.SetCellMinimum((int)0);
  gf4.SetCellMaximum((int)7500);
  g4Mapper = vtkPolyDataMapper.New();
  g4Mapper.SetInputConnection((vtkAlgorithmOutput)gf4.GetOutputPort());
  g4Mapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  g4Actor = new vtkActor();
  g4Actor.SetMapper((vtkMapper)g4Mapper);
  g4Actor.AddPosition((double)0,(double)15,(double)15);
  // create pipeline - unstructured grid[]
  //[]
  s = new vtkSphere();
  s.SetCenter(pl3d.GetOutput().GetCenter()[0],pl3d.GetOutput().GetCenter()[1],pl3d.GetOutput().GetCenter()[2]);
  s.SetRadius((double)100.0);
  //everything[]
  eg = new vtkExtractGeometry();
  eg.SetInputConnection((vtkAlgorithmOutput)pl3d.GetOutputPort());
  eg.SetImplicitFunction((vtkImplicitFunction)s);
  gf5 = new vtkGeometryFilter();
  gf5.SetInputConnection((vtkAlgorithmOutput)eg.GetOutputPort());
  g5Mapper = vtkPolyDataMapper.New();
  g5Mapper.SetInputConnection((vtkAlgorithmOutput)gf5.GetOutputPort());
  g5Mapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  g5Actor = new vtkActor();
  g5Actor.SetMapper((vtkMapper)g5Mapper);
  g5Actor.AddPosition((double)0,(double)0,(double)30);
  gf6 = new vtkGeometryFilter();
  gf6.SetInputConnection((vtkAlgorithmOutput)eg.GetOutputPort());
  gf6.ExtentClippingOn();
  gf6.SetExtent((double)10,(double)17,(double)-6,(double)6,(double)23,(double)37);
  gf6.PointClippingOn();
  gf6.SetPointMinimum((int)0);
  gf6.SetPointMaximum((int)10000);
  gf6.CellClippingOn();
  gf6.SetCellMinimum((int)0);
  gf6.SetCellMaximum((int)7500);
  g6Mapper = vtkPolyDataMapper.New();
  g6Mapper.SetInputConnection((vtkAlgorithmOutput)gf6.GetOutputPort());
  g6Mapper.SetScalarRange((double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[0],
      (double)((vtkDataSet)pl3d.GetOutput()).GetScalarRange()[1]);
  g6Actor = new vtkActor();
  g6Actor.SetMapper((vtkMapper)g6Mapper);
  g6Actor.AddPosition((double)0,(double)15,(double)30);
  // create pipeline - rectilinear grid[]
  //[]
  rgridReader = new vtkRectilinearGridReader();
  rgridReader.SetFileName((string)"" + (VTK_DATA_ROOT.ToString()) + "/Data/RectGrid2.vtk");
  rgridReader.Update();
  gf7 = new vtkGeometryFilter();
  gf7.SetInputConnection((vtkAlgorithmOutput)rgridReader.GetOutputPort());
  g7Mapper = vtkPolyDataMapper.New();
  g7Mapper.SetInputConnection((vtkAlgorithmOutput)gf7.GetOutputPort());
  g7Mapper.SetScalarRange((double)((vtkDataSet)rgridReader.GetOutput()).GetScalarRange()[0],(double)((vtkDataSet)rgridReader.GetOutput()).GetScalarRange()[1]);
  g7Actor = new vtkActor();
  g7Actor.SetMapper((vtkMapper)g7Mapper);
  g7Actor.SetScale((double)3,(double)3,(double)3);
  gf8 = new vtkGeometryFilter();
  gf8.SetInputConnection((vtkAlgorithmOutput)rgridReader.GetOutputPort());
  gf8.ExtentClippingOn();
  gf8.SetExtent((double)0,(double)1,(double)-2,(double)2,(double)0,(double)4);
  gf8.PointClippingOn();
  gf8.SetPointMinimum((int)0);
  gf8.SetPointMaximum((int)10000);
  gf8.CellClippingOn();
  gf8.SetCellMinimum((int)0);
  gf8.SetCellMaximum((int)7500);
  g8Mapper = vtkPolyDataMapper.New();
  g8Mapper.SetInputConnection((vtkAlgorithmOutput)gf8.GetOutputPort());
  g8Mapper.SetScalarRange((double)((vtkDataSet)rgridReader.GetOutput()).GetScalarRange()[0],(double)((vtkDataSet)rgridReader.GetOutput()).GetScalarRange()[1]);
  g8Actor = new vtkActor();
  g8Actor.SetMapper((vtkMapper)g8Mapper);
  g8Actor.SetScale((double)3,(double)3,(double)3);
  g8Actor.AddPosition((double)0,(double)15,(double)0);
  // Create the RenderWindow, Renderer and both Actors[]
  //[]
  ren1 = vtkRenderer.New();
  renWin = vtkRenderWindow.New();
  renWin.AddRenderer((vtkRenderer)ren1);
  iren = new vtkRenderWindowInteractor();
  iren.SetRenderWindow((vtkRenderWindow)renWin);
  ren1.AddActor((vtkProp)gActor);
  ren1.AddActor((vtkProp)g2Actor);
  ren1.AddActor((vtkProp)g3Actor);
  ren1.AddActor((vtkProp)g4Actor);
  ren1.AddActor((vtkProp)g5Actor);
  ren1.AddActor((vtkProp)g6Actor);
  ren1.AddActor((vtkProp)g7Actor);
  ren1.AddActor((vtkProp)g8Actor);
  renWin.SetSize((int)340,(int)550);
  cam1 = ren1.GetActiveCamera();
  cam1.SetClippingRange((double)84,(double)174);
  cam1.SetFocalPoint((double)5.22824,(double)6.09412,(double)35.9813);
  cam1.SetPosition((double)100.052,(double)62.875,(double)102.818);
  cam1.SetViewUp((double)-0.307455,(double)-0.464269,(double)0.830617);
  iren.Initialize();
  // prevent the tk window from showing up then start the event loop[]
  
//deleteAllVTKObjects();
  }
static string VTK_DATA_ROOT;
static int threshold;
static vtkPLOT3DReader pl3d;
static vtkGeometryFilter gf;
static vtkPolyDataMapper gMapper;
static vtkActor gActor;
static vtkGeometryFilter gf2;
static vtkPolyDataMapper g2Mapper;
static vtkActor g2Actor;
static vtkGeometryFilter gf3;
static vtkPolyDataMapper g3Mapper;
static vtkActor g3Actor;
static vtkGeometryFilter gf4;
static vtkPolyDataMapper g4Mapper;
static vtkActor g4Actor;
static vtkSphere s;
static vtkExtractGeometry eg;
static vtkGeometryFilter gf5;
static vtkPolyDataMapper g5Mapper;
static vtkActor g5Actor;
static vtkGeometryFilter gf6;
static vtkPolyDataMapper g6Mapper;
static vtkActor g6Actor;
static vtkRectilinearGridReader rgridReader;
static vtkGeometryFilter gf7;
static vtkPolyDataMapper g7Mapper;
static vtkActor g7Actor;
static vtkGeometryFilter gf8;
static vtkPolyDataMapper g8Mapper;
static vtkActor g8Actor;
static vtkRenderer ren1;
static vtkRenderWindow renWin;
static vtkRenderWindowInteractor iren;
static vtkCamera cam1;


        ///<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 vtkPLOT3DReader Getpl3d()
        {
            return pl3d;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setpl3d(vtkPLOT3DReader toSet)
        {
            pl3d = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf()
        {
            return gf;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf(vtkGeometryFilter toSet)
        {
            gf = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper GetgMapper()
        {
            return gMapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void SetgMapper(vtkPolyDataMapper toSet)
        {
            gMapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor GetgActor()
        {
            return gActor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void SetgActor(vtkActor toSet)
        {
            gActor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf2()
        {
            return gf2;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf2(vtkGeometryFilter toSet)
        {
            gf2 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg2Mapper()
        {
            return g2Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg2Mapper(vtkPolyDataMapper toSet)
        {
            g2Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg2Actor()
        {
            return g2Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg2Actor(vtkActor toSet)
        {
            g2Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf3()
        {
            return gf3;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf3(vtkGeometryFilter toSet)
        {
            gf3 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg3Mapper()
        {
            return g3Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg3Mapper(vtkPolyDataMapper toSet)
        {
            g3Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg3Actor()
        {
            return g3Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg3Actor(vtkActor toSet)
        {
            g3Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf4()
        {
            return gf4;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf4(vtkGeometryFilter toSet)
        {
            gf4 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg4Mapper()
        {
            return g4Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg4Mapper(vtkPolyDataMapper toSet)
        {
            g4Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg4Actor()
        {
            return g4Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg4Actor(vtkActor toSet)
        {
            g4Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkSphere Gets()
        {
            return s;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Sets(vtkSphere toSet)
        {
            s = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkExtractGeometry Geteg()
        {
            return eg;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Seteg(vtkExtractGeometry toSet)
        {
            eg = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf5()
        {
            return gf5;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf5(vtkGeometryFilter toSet)
        {
            gf5 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg5Mapper()
        {
            return g5Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg5Mapper(vtkPolyDataMapper toSet)
        {
            g5Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg5Actor()
        {
            return g5Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg5Actor(vtkActor toSet)
        {
            g5Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf6()
        {
            return gf6;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf6(vtkGeometryFilter toSet)
        {
            gf6 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg6Mapper()
        {
            return g6Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg6Mapper(vtkPolyDataMapper toSet)
        {
            g6Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg6Actor()
        {
            return g6Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg6Actor(vtkActor toSet)
        {
            g6Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkRectilinearGridReader GetrgridReader()
        {
            return rgridReader;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void SetrgridReader(vtkRectilinearGridReader toSet)
        {
            rgridReader = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf7()
        {
            return gf7;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf7(vtkGeometryFilter toSet)
        {
            gf7 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg7Mapper()
        {
            return g7Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg7Mapper(vtkPolyDataMapper toSet)
        {
            g7Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg7Actor()
        {
            return g7Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg7Actor(vtkActor toSet)
        {
            g7Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkGeometryFilter Getgf8()
        {
            return gf8;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setgf8(vtkGeometryFilter toSet)
        {
            gf8 = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkPolyDataMapper Getg8Mapper()
        {
            return g8Mapper;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg8Mapper(vtkPolyDataMapper toSet)
        {
            g8Mapper = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkActor Getg8Actor()
        {
            return g8Actor;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setg8Actor(vtkActor toSet)
        {
            g8Actor = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkRenderer Getren1()
        {
            return ren1;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setren1(vtkRenderer toSet)
        {
            ren1 = 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 vtkRenderWindowInteractor Getiren()
        {
            return iren;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setiren(vtkRenderWindowInteractor toSet)
        {
            iren = toSet;
        }
        
        ///<summary> A Get Method for Static Variables </summary>
        public static vtkCamera Getcam1()
        {
            return cam1;
        }
        
        ///<summary> A Set Method for Static Variables </summary>
        public static void Setcam1(vtkCamera toSet)
        {
            cam1 = toSet;
        }
        
  ///<summary>Deletes all static objects created</summary>
  public static void deleteAllVTKObjects()
  {
  	//clean up vtk objects
  	if(pl3d!= null){pl3d.Dispose();}
  	if(gf!= null){gf.Dispose();}
  	if(gMapper!= null){gMapper.Dispose();}
  	if(gActor!= null){gActor.Dispose();}
  	if(gf2!= null){gf2.Dispose();}
  	if(g2Mapper!= null){g2Mapper.Dispose();}
  	if(g2Actor!= null){g2Actor.Dispose();}
  	if(gf3!= null){gf3.Dispose();}
  	if(g3Mapper!= null){g3Mapper.Dispose();}
  	if(g3Actor!= null){g3Actor.Dispose();}
  	if(gf4!= null){gf4.Dispose();}
  	if(g4Mapper!= null){g4Mapper.Dispose();}
  	if(g4Actor!= null){g4Actor.Dispose();}
  	if(s!= null){s.Dispose();}
  	if(eg!= null){eg.Dispose();}
  	if(gf5!= null){gf5.Dispose();}
  	if(g5Mapper!= null){g5Mapper.Dispose();}
  	if(g5Actor!= null){g5Actor.Dispose();}
  	if(gf6!= null){gf6.Dispose();}
  	if(g6Mapper!= null){g6Mapper.Dispose();}
  	if(g6Actor!= null){g6Actor.Dispose();}
  	if(rgridReader!= null){rgridReader.Dispose();}
  	if(gf7!= null){gf7.Dispose();}
  	if(g7Mapper!= null){g7Mapper.Dispose();}
  	if(g7Actor!= null){g7Actor.Dispose();}
  	if(gf8!= null){gf8.Dispose();}
  	if(g8Mapper!= null){g8Mapper.Dispose();}
  	if(g8Actor!= null){g8Actor.Dispose();}
  	if(ren1!= null){ren1.Dispose();}
  	if(renWin!= null){renWin.Dispose();}
  	if(iren!= null){iren.Dispose();}
  	if(cam1!= null){cam1.Dispose();}
  }

}
//--- end of script --//