behavior_layer.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 
6 
7 """ Contains a class that holds behaviorLayer informations
8 .. module:: node
9 """
10 
11 import converter.node as node
12 
13 
15  """ Stores informations about BehaviorLayer in the xar format
16  """
17 
18  def __init__(self, attrs):
19  super(BehaviorLayer, self).__init__("BehaviorLayer")
20 
21  # Attributes
22  self.name = attrs.getValue("name")
23  self.mute = attrs.getValue("mute")
24 
25  # Elements
27 
28  self._function_map = {
29  'BehaviorKeyframe': BehaviorLayer.attach_keyframe}
30 
31  def attach_keyframe(self, keyframe):
32  keyframe.id = len(self.behavior_keyframes)
33  self.behavior_keyframes.append(keyframe)
converter.node.behavior_layer.BehaviorLayer.attach_keyframe
def attach_keyframe(self, keyframe)
Definition: behavior_layer.py:31
converter.node
Definition: xarconverter/converter/node/__init__.py:1
converter.node.behavior_layer.BehaviorLayer.behavior_keyframes
behavior_keyframes
Definition: behavior_layer.py:26
converter.node.behavior_layer.BehaviorLayer.mute
mute
Definition: behavior_layer.py:23
converter.node.Node._function_map
_function_map
Definition: xarconverter/converter/node/__init__.py:25
converter.node.behavior_layer.BehaviorLayer.__init__
def __init__(self, attrs)
Definition: behavior_layer.py:18
converter.node.behavior_layer.BehaviorLayer
Definition: behavior_layer.py:14
converter.node.Node.name
name
Definition: xarconverter/converter/node/__init__.py:18
converter.node.Node
Definition: xarconverter/converter/node/__init__.py:12


naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41