Merge "Update approval test for text" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-scene3d / public-api / model-components / model-node.h
index dc3e717..508b80c 100644 (file)
@@ -24,6 +24,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-scene3d/public-api/api.h>
+#include <dali-scene3d/public-api/loader/blend-shape-details.h> ///< For Loader::BlendShapes::Index
 #include <dali-scene3d/public-api/model-components/model-primitive.h>
 
 namespace Dali
@@ -136,7 +137,6 @@ public:
   static ModelNode DownCast(BaseHandle handle);
 
 public: // Public Method
-
   /**
    * @brief Gets the number of ModelPrimitives this node has.
    *
@@ -181,11 +181,30 @@ public: // Public Method
   /**
    * @brief Returns a child ModelNode object with a name that matches nodeName.
    *
+   * @SINCE_2_2.99
    * @param[in] nodeName The name of the child ModelNode object you want to find.
    * @return Returns a child ModelNode object with a name that matches nodeName. If there is no corresponding child ModelNode object, it returns an empty ModelNode object.
    */
   ModelNode FindChildModelNodeByName(std::string_view nodeName);
 
+  /**
+   * @brief Retrieve the list of blendshape name that current ModelNode hold.
+   * The name will be appended end of input list.
+   *
+   * @SINCE_2_2.99
+   * @param[in, out] blendShapeNames The name of blendShape list collected.
+   */
+  void RetrieveBlendShapeNames(std::vector<std::string>& blendShapeNames) const;
+
+  /**
+   * @brief Get the index of blend shape by given name.
+   *
+   * @SINCE_2_2.99
+   * @param[in] blendShapeName The name of blendshape that is not empty.
+   * @return Index of blendshape, or return invalid if there is no blendshape with given name.
+   */
+  Loader::BlendShapes::Index GetBlendShapeIndexByName(std::string_view blendShapeName) const;
+
 public: // Not intended for application developers
   /// @cond internal
   /**