class_bonemap.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/BoneMap.xml.
  6. .. _class_BoneMap:
  7. BoneMap
  8. =======
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Bone map for retargeting.
  11. Description
  12. -----------
  13. This class contains a hashmap that uses a list of bone names in :ref:`SkeletonProfile<class_SkeletonProfile>` as key names.
  14. By assigning the actual :ref:`Skeleton3D<class_Skeleton3D>` bone name as the key value, it maps the :ref:`Skeleton3D<class_Skeleton3D>` to the :ref:`SkeletonProfile<class_SkeletonProfile>`.
  15. Properties
  16. ----------
  17. +-----------------------------------------------+------------------------------------------------+
  18. | :ref:`SkeletonProfile<class_SkeletonProfile>` | :ref:`profile<class_BoneMap_property_profile>` |
  19. +-----------------------------------------------+------------------------------------------------+
  20. Methods
  21. -------
  22. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`StringName<class_StringName>` | :ref:`find_profile_bone_name<class_BoneMap_method_find_profile_bone_name>` **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const| |
  24. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`StringName<class_StringName>` | :ref:`get_skeleton_bone_name<class_BoneMap_method_get_skeleton_bone_name>` **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const| |
  26. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_skeleton_bone_name<class_BoneMap_method_set_skeleton_bone_name>` **(** :ref:`StringName<class_StringName>` profile_bone_name, :ref:`StringName<class_StringName>` skeleton_bone_name **)** |
  28. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. Signals
  30. -------
  31. .. _class_BoneMap_signal_bone_map_updated:
  32. - **bone_map_updated** **(** **)**
  33. This signal is emitted when change the key value in the ``BoneMap``. This is used to validate mapping and to update ``BoneMap`` editor.
  34. ----
  35. .. _class_BoneMap_signal_profile_updated:
  36. - **profile_updated** **(** **)**
  37. This signal is emitted when change the value in profile or change the reference of profile. This is used to update key names in the ``BoneMap`` and to redraw the ``BoneMap`` editor.
  38. Property Descriptions
  39. ---------------------
  40. .. _class_BoneMap_property_profile:
  41. - :ref:`SkeletonProfile<class_SkeletonProfile>` **profile**
  42. +----------+--------------------+
  43. | *Setter* | set_profile(value) |
  44. +----------+--------------------+
  45. | *Getter* | get_profile() |
  46. +----------+--------------------+
  47. A :ref:`SkeletonProfile<class_SkeletonProfile>` of the mapping target. Key names in the ``BoneMap`` are synchronized with it.
  48. Method Descriptions
  49. -------------------
  50. .. _class_BoneMap_method_find_profile_bone_name:
  51. - :ref:`StringName<class_StringName>` **find_profile_bone_name** **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const|
  52. Returns a profile bone name having ``skeleton_bone_name``. If not found, an empty :ref:`StringName<class_StringName>` will be returned.
  53. In the retargeting process, the returned bone name is the bone name of the target skeleton.
  54. ----
  55. .. _class_BoneMap_method_get_skeleton_bone_name:
  56. - :ref:`StringName<class_StringName>` **get_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const|
  57. Returns a skeleton bone name is mapped to ``profile_bone_name``.
  58. In the retargeting process, the returned bone name is the bone name of the source skeleton.
  59. ----
  60. .. _class_BoneMap_method_set_skeleton_bone_name:
  61. - void **set_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name, :ref:`StringName<class_StringName>` skeleton_bone_name **)**
  62. Maps a skeleton bone name to ``profile_bone_name``.
  63. In the retargeting process, the setting bone name is the bone name of the source skeleton.
  64. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  65. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  66. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  67. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  68. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  69. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`