2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-scene3d/public-api/model-motion/motion-index/blend-shape-index.h>
22 #include <dali-scene3d/internal/model-motion/motion-index/blend-shape-index-impl.h>
28 BlendShapeIndex BlendShapeIndex::New()
30 Internal::BlendShapeIndexPtr internal = Internal::BlendShapeIndex::New();
32 return BlendShapeIndex(internal.Get());
35 BlendShapeIndex BlendShapeIndex::New(Property::Key blendShapeId)
37 Internal::BlendShapeIndexPtr internal = Internal::BlendShapeIndex::New();
39 internal->SetBlendShapeId(blendShapeId);
41 return BlendShapeIndex(internal.Get());
44 BlendShapeIndex BlendShapeIndex::New(Property::Key modelNodeId, Property::Key blendShapeId)
46 Internal::BlendShapeIndexPtr internal = Internal::BlendShapeIndex::New();
48 internal->SetModelNodeId(modelNodeId);
49 internal->SetBlendShapeId(blendShapeId);
51 return BlendShapeIndex(internal.Get());
54 BlendShapeIndex::BlendShapeIndex()
58 BlendShapeIndex::BlendShapeIndex(const BlendShapeIndex& blendShapeIndex) = default;
60 BlendShapeIndex::BlendShapeIndex(BlendShapeIndex&& rhs) noexcept = default;
62 BlendShapeIndex::~BlendShapeIndex()
66 BlendShapeIndex& BlendShapeIndex::operator=(const BlendShapeIndex& handle) = default;
68 BlendShapeIndex& BlendShapeIndex::operator=(BlendShapeIndex&& rhs) noexcept = default;
70 BlendShapeIndex BlendShapeIndex::DownCast(BaseHandle handle)
72 return BlendShapeIndex(dynamic_cast<Dali::Scene3D::Internal::BlendShapeIndex*>(handle.GetObjectPtr()));
75 BlendShapeIndex::BlendShapeIndex(Dali::Scene3D::Internal::BlendShapeIndex* internal)
76 : MotionIndex(internal)
82 void BlendShapeIndex::SetBlendShapeId(Property::Key blendShapeId)
84 GetImplementation(*this).SetBlendShapeId(blendShapeId);
87 Property::Key BlendShapeIndex::GetBlendShapeId() const
89 return GetImplementation(*this).GetBlendShapeId();
92 } // namespace Scene3D