xarconverter
converter
node
animation.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
6
7
""" Contains a class that holds diagram informations
8
.. module:: node
9
"""
10
11
import
converter.node
as
node
12
13
14
class
Animation
(
node.Node
):
15
""" Stores informations about an animation file
16
"""
17
18
def
__init__
(self, attrs):
19
super(Animation, self).
__init__
(
"Animation"
)
20
21
# Attributes
22
self.
fps
= attrs.getValue(
'fps'
)
23
self.
start_frame
= attrs.getValue(
'start_frame'
)
24
self.
end_frame
= attrs.getValue(
'end_frame'
)
25
self.
size
= attrs.getValue(
'size'
)
26
self.
format_version
= attrs.getValue(
"format_version"
)
27
self.
resources_acquisition
= attrs.getValue(
"resources_acquisition"
)
28
29
# Elements
30
self.
actuator_list
=
None
31
32
self.
_function_map
= {
'ActuatorList'
: Animation.attach_actuator_list}
33
34
def
attach_actuator_list
(self, actuator_list):
35
self.
actuator_list
= actuator_list
36
37
def
beacon
(self):
38
return
"Animation"
converter.node.animation.Animation.end_frame
end_frame
Definition:
animation.py:24
converter.node.animation.Animation.__init__
def __init__(self, attrs)
Definition:
animation.py:18
converter.node.animation.Animation
Definition:
animation.py:14
converter.node
Definition:
xarconverter/converter/node/__init__.py:1
converter.node.animation.Animation.fps
fps
Definition:
animation.py:22
converter.node.animation.Animation.format_version
format_version
Definition:
animation.py:26
converter.node.Node._function_map
_function_map
Definition:
xarconverter/converter/node/__init__.py:25
converter.node.animation.Animation.start_frame
start_frame
Definition:
animation.py:23
converter.node.animation.Animation.actuator_list
actuator_list
Definition:
animation.py:30
converter.node.animation.Animation.attach_actuator_list
def attach_actuator_list(self, actuator_list)
Definition:
animation.py:34
converter.node.animation.Animation.resources_acquisition
resources_acquisition
Definition:
animation.py:27
converter.node.animation.Animation.beacon
def beacon(self)
Definition:
animation.py:37
converter.node.Node
Definition:
xarconverter/converter/node/__init__.py:12
converter.node.animation.Animation.size
size
Definition:
animation.py:25
naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41