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/motion-index.h>
22 #include <dali-scene3d/internal/model-motion/motion-index/motion-index-impl.h>
28 MotionIndex::MotionIndex()
32 MotionIndex::MotionIndex(const MotionIndex& motionIndex) = default;
34 MotionIndex::MotionIndex(MotionIndex&& rhs) noexcept = default;
36 MotionIndex::~MotionIndex()
40 MotionIndex& MotionIndex::operator=(const MotionIndex& handle) = default;
42 MotionIndex& MotionIndex::operator=(MotionIndex&& rhs) noexcept = default;
44 MotionIndex MotionIndex::DownCast(BaseHandle handle)
46 return MotionIndex(dynamic_cast<Dali::Scene3D::Internal::MotionIndex*>(handle.GetObjectPtr()));
49 MotionIndex::MotionIndex(Dali::Scene3D::Internal::MotionIndex* internal)
50 : BaseHandle(internal)
56 void MotionIndex::SetModelNodeId(Property::Key modelNodeId)
58 GetImplementation(*this).SetModelNodeId(modelNodeId);
61 Property::Key MotionIndex::GetModelNodeId() const
63 return GetImplementation(*this).GetModelNodeId();
66 std::string MotionIndex::GetPropertyName(ModelNode node)
68 return GetImplementation(*this).GetPropertyName(node);
71 Property::Index MotionIndex::GetPropertyIndex(ModelNode node)
73 return GetImplementation(*this).GetPropertyIndex(node);
76 } // namespace Scene3D