2 * Copyright (c) 2022 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/controls/scene-view/scene-view.h>
22 #include <dali-scene3d/internal/controls/scene-view/scene-view-impl.h>
28 SceneView::SceneView()
32 SceneView::SceneView(const SceneView& sceneView) = default;
34 SceneView::SceneView(SceneView&& rhs) = default;
36 SceneView& SceneView::operator=(const SceneView& sceneView) = default;
38 SceneView& SceneView::operator=(SceneView&& rhs) = default;
40 SceneView::~SceneView()
44 SceneView SceneView::New()
46 return Internal::SceneView::New();
49 SceneView SceneView::DownCast(BaseHandle handle)
51 return Control::DownCast<SceneView, Internal::SceneView>(handle);
54 SceneView::SceneView(Internal::SceneView& implementation)
55 : Control(implementation)
59 SceneView::SceneView(Dali::Internal::CustomActor* internal)
62 VerifyCustomActorPointer<Internal::SceneView>(internal);
65 void SceneView::AddCamera(Dali::CameraActor camera)
67 GetImpl(*this).AddCamera(camera);
70 void SceneView::RemoveCamera(CameraActor camera)
72 GetImpl(*this).RemoveCamera(camera);
75 uint32_t SceneView::GetCameraCount() const
77 return GetImpl(*this).GetCameraCount();
80 CameraActor SceneView::GetSelectedCamera() const
82 return GetImpl(*this).GetSelectedCamera();
85 CameraActor SceneView::GetCamera(uint32_t index) const
87 return GetImpl(*this).GetCamera(index);
90 CameraActor SceneView::GetCamera(const std::string& name) const
92 return GetImpl(*this).GetCamera(name);
95 void SceneView::SelectCamera(uint32_t index)
97 GetImpl(*this).SelectCamera(index);
100 void SceneView::SelectCamera(const std::string& name)
102 GetImpl(*this).SelectCamera(name);
105 void SceneView::SetImageBasedLightSource(const std::string& diffuseUrl, const std::string& specularUrl, float scaleFactor)
107 GetImpl(*this).SetImageBasedLightSource(diffuseUrl, specularUrl, scaleFactor);
110 void SceneView::SetImageBasedLightScaleFactor(float scaleFactor)
112 GetImpl(*this).SetImageBasedLightScaleFactor(scaleFactor);
115 float SceneView::GetImageBasedLightScaleFactor() const
117 return GetImpl(*this).GetImageBasedLightScaleFactor();
120 void SceneView::UseFramebuffer(bool useFramebuffer)
122 GetImpl(*this).UseFramebuffer(useFramebuffer);
125 bool SceneView::IsUsingFramebuffer() const
127 return GetImpl(*this).IsUsingFramebuffer();
130 } // namespace Scene3D