2 * Copyright (c) 2020 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.
20 #include <dali-toolkit/public-api/controls/model3d-view/model3d-view.h>
23 #include <dali-toolkit/internal/controls/model3d-view/model3d-view-impl.h>
31 Model3dView::Model3dView()
35 Model3dView::Model3dView(const Model3dView& model3dView) = default;
37 Model3dView::Model3dView(Model3dView&& rhs) = default;
39 Model3dView& Model3dView::operator=(const Model3dView& model3dView) = default;
41 Model3dView& Model3dView::operator=(Model3dView&& rhs) = default;
43 Model3dView::~Model3dView()
47 Model3dView Model3dView::New()
49 return Internal::Model3dView::New();
52 Model3dView Model3dView::New(const std::string& objUrl, const std::string& mtlUrl, const std::string& imagesUrl)
54 Model3dView model3dView = Internal::Model3dView::New();
55 model3dView.SetProperty(Model3dView::Property::IMAGES_URL, Dali::Property::Value(imagesUrl));
56 model3dView.SetProperty(Model3dView::Property::GEOMETRY_URL, Dali::Property::Value(objUrl));
57 model3dView.SetProperty(Model3dView::Property::MATERIAL_URL, Dali::Property::Value(mtlUrl));
62 Model3dView Model3dView::DownCast(BaseHandle handle)
64 return Control::DownCast<Model3dView, Internal::Model3dView>(handle);
67 Model3dView::Model3dView(Internal::Model3dView& implementation)
68 : Control(implementation)
72 Model3dView::Model3dView(Dali::Internal::CustomActor* internal)
75 VerifyCustomActorPointer<Internal::Model3dView>(internal);
78 } // namespace Toolkit