Bases: object
In a few word you must follow this procedure:
# Construct a new object
a = MyAnimation()
# setup the particles set
a.pset = pset
# setup the numeric integration
a.ode_solver = solver
# max number of steps
a.steps = steps
# set up everythings
a.build_animation()
# start!
a.start()
Add a class delegeted for performing a measure
get the current FPS
Toggle the printing of the FPS (True | False)
get and set the steps used for computing the fps
return the measure named ‘name’
get the value of the measure named ‘name’
return a string containig the value of the measure
Return a list containg the names of the executed measured.
Execute all listed measures
enable or disable the trajectory
set or get the step for drawing the trajectory
Update the FPS, this method must be called every step.
Returns: | True if the FPS has been updated |
---|
Bases: pyparticles.animation.animation.Animation
enable or disable (True of False) vector filed drawing (if available)
enable or disable (True or False) the opengl lighting
enable or disable (True or False) the trajectory
set or get the step for drawing the trajectory
get or set the size of the current window. The size is a tuple: (w,h)
Draw the current particle scene.
Initialize OpenGl
Bases: pyparticles.animation.animation.Animation
Test the free fall with the fluid drag
Bases: pyparticles.animation.test_animation.TestAnimation
Test the damped harmonic motion with two particles.
Bases: pyparticles.animation.test_animation.TestAnimation
Test the harmonic motion with two particles.