Back to index

salome-paravis  6.5.0
Functions | Variables
demo4 Namespace Reference

Functions

def demo4

Variables

tuple testdir = os.getenv("TESTDIR")
tuple pvdata = os.getenv("PVDATA")

Function Documentation

def demo4.demo4 (   fname,
  animpth 
)
This method demonstrates the AnimateReader for creating animations.

Definition at line 26 of file demo4.py.

00026 
00027 def demo4(fname, animpth):
00028     """This method demonstrates the AnimateReader for creating animations."""
00029 
00030     reader = ExodusIIReader(FileName=fname)
00031     v = CreateRenderView()
00032     repr = Show(reader, view=v)
00033     v.StillRender()
00034     v.ResetCamera()
00035     ##v.CameraPosition = [0., -30, 0]
00036     ##v.CameraFocalPoint = [6.2, 9.5, -0.5]
00037     ##v.CameraViewUp = [-0.64, 0.2, -0.75]
00038     ##v.CameraViewAngle = [30]
00039     v.StillRender()
00040     c = v.GetActiveCamera()
00041     c.Elevation(95)
00042   
00043     r = AnimateReader(reader, view=v, filename=(animpth + "can.png"))
00044 

Here is the call graph for this function:


Variable Documentation

tuple demo4.pvdata = os.getenv("PVDATA")

Definition at line 46 of file demo4.py.

tuple demo4.testdir = os.getenv("TESTDIR")

Definition at line 45 of file demo4.py.