]> SALOME platform Git repositories - modules/paravis.git/blob - test/demo5.py
Salome HOME
Merge from BR_PARAVIS_DEV 29Dec09
[modules/paravis.git] / test / demo5.py
1
2 if not ('servermanager' in dir()):
3   from pvsimple import *
4
5 import os
6
7 def LoadMultipleFiles(FilePath, FilePrefix):
8
9   dualSphereAnimation = XMLPolyDataReader( FileName=[FilePath + FilePrefix + '0' + '.vtp',
10                                                                                                      FilePath + FilePrefix + '1' + '.vtp',
11                                                                                                      FilePath + FilePrefix + '2' + '.vtp',
12                                                                                                      FilePath + FilePrefix + '3' + '.vtp',
13                                                                                                      FilePath + FilePrefix + '4' + '.vtp',
14                                                                                                      FilePath + FilePrefix + '5' + '.vtp',
15                                                                                                      FilePath + FilePrefix + '6' + '.vtp',
16                                                                                                      FilePath + FilePrefix + '7' + '.vtp',
17                                                                                                      FilePath + FilePrefix + '8' + '.vtp',
18                                                                                                      FilePath + FilePrefix + '9' + '.vtp',
19                                                                                                      FilePath + FilePrefix + '10' + '.vtp'])
20
21   dualSphereAnimation.PointArrayStatus = ['Normals']
22   dualSphereAnimation.CellArrayStatus = ['cellNormals']
23
24   DataRepr = Show()
25   DataRepr.EdgeColor = [0.0, 0.0, 0.50000762951094835]
26   DataRepr.SelectionCellLabelColor = [0.0, 1.0, 0.0]
27   DataRepr.SelectionPointLabelJustification = 'Center'
28   DataRepr.SelectionCellLabelJustification = 'Center'
29   DataRepr.SelectionLineWidth = 2.0
30   DataRepr.SelectionCellLabelFontSize = 24
31   DataRepr.SelectionColor = [1.0, 0.0, 1.0]
32   DataRepr.SelectionRepresentation = 'Wireframe'
33
34   RenderV = GetRenderView()
35   RenderV.CameraViewUp = [0.3643594701432189, -0.53089863872031573, -0.76510705912432175]
36   RenderV.CameraPosition = [-1.43673886826885, 0.58420580818614165, -1.2056476292046452]
37   RenderV.CameraClippingRange = [1.1902279246461551, 3.3614292621569204]
38   RenderV.CameraFocalPoint = [0.24373197555541973, 4.2615454220042359e-08, -1.2218938645261819e-16]
39   RenderV.CameraParallelScale = 0.5562421018838376
40   RenderV.CenterOfRotation = [0.24373197555541992, 4.2615454276528908e-08, 0.0]
41   RenderV.CameraViewUp = [-0.022295256951954404, 0.99334037123472696, -0.11303905693476472]
42   RenderV.CameraFocalPoint = [0.24373197555541956, 4.261545421741021e-08, 6.2953480785622502e-17]
43   RenderV.CameraClippingRange = [0.8880289667943051, 3.8672572119597652]
44   RenderV.CameraPosition = [0.73282076784458949, 0.24745673087950623, 2.078081369909921]
45
46   Render()
47
48
49 testdir = os.getenv("TESTDIR")
50 pvdata = os.getenv("PVDATA")
51
52 if __name__ == "__main__":
53   LoadMultipleFiles(FilePath=pvdata+"/Data/dualSphereAnimation/", FilePrefix="dualSphereAnimation_P00T000")