 |
 |
 |
Python Computer Graphics Kit |
 |
 |
 |
This module contains the BVHReader class which can be used as a base
class for reading Biovision Hierarchical (BVH) files. The class reads the
file and invokes callback methods with the corresponding data in the file.
Derived classes have to implement those callback methods and process
the data as appropriate.
| class BVHReader( |
filename) |
-
filename is the name of the BVH file that should be read.
-
Read the entire file.
-
This method is called after the joint hierarchy was read. The entire
hierarchy is passed in the argument root which is a Node
object.
-
This method is called when the motion data begins. frames is the
number of motion samples that follow and dt is the time interval
that corresponds to one frame.
-
This method is called for each motion sample (frame) in the
file. values is a list of floats that contains the position and
angles of the entire skeleton. The order is the same than when
traversing the joint hierarchy in a depth-first manner.
Release 2.0.0alpha8, documentation updated on February 24, 2008.