// INTERNAL INCLUDES
#include <dali-scene3d/internal/controls/model/model-impl.h>
+#include <dali-scene3d/public-api/model-components/model-node.h>
namespace Dali
{
Model::Model(const Model& model) = default;
-Model::Model(Model&& rhs) = default;
+Model::Model(Model&& rhs) noexcept = default;
Model& Model::operator=(const Model& model) = default;
-Model& Model::operator=(Model&& rhs) = default;
+Model& Model::operator=(Model&& rhs) noexcept = default;
Model::~Model()
{
VerifyCustomActorPointer<Internal::Model>(internal);
}
-const Actor Model::GetModelRoot() const
+const ModelNode Model::GetModelRoot() const
{
return GetImpl(*this).GetModelRoot();
}
+void Model::AddModelNode(ModelNode modelNode)
+{
+ return GetImpl(*this).AddModelNode(modelNode);
+}
+
+void Model::RemoveModelNode(ModelNode modelNode)
+{
+ return GetImpl(*this).RemoveModelNode(modelNode);
+}
+
void Model::SetChildrenSensitive(bool enable)
{
GetImpl(*this).SetChildrenSensitive(enable);
GetImpl(*this).SetImageBasedLightSource(diffuseUrl, specularUrl, scaleFactor);
}
-void Model::SetImageBasedLightTexture(Texture diffuseTexture, Texture specularTexture, float scaleFactor)
-{
- GetImpl(*this).SetImageBasedLightTexture(diffuseTexture, specularTexture, scaleFactor);
-}
-
void Model::SetImageBasedLightScaleFactor(float scaleFactor)
{
GetImpl(*this).SetImageBasedLightScaleFactor(scaleFactor);
return GetImpl(*this).ApplyCamera(index, camera);
}
+ModelNode Model::FindChildModelNodeByName(std::string_view nodeName)
+{
+ return GetImpl(*this).FindChildModelNodeByName(nodeName);
+}
+
+void Model::RetrieveBlendShapeNames(std::vector<std::string>& blendShapeNames) const
+{
+ GetImpl(*this).RetrieveBlendShapeNames(blendShapeNames);
+}
+
+void Model::RetrieveModelNodesByBlendShapeName(std::string_view blendShapeName, std::vector<ModelNode>& modelNodes) const
+{
+ GetImpl(*this).RetrieveModelNodesByBlendShapeName(blendShapeName, modelNodes);
+}
+
} // namespace Scene3D
} // namespace Dali