2 * Copyright (c) 2018 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-toolkit/devel-api/controls/scene3d-view/scene3d-view.h>
22 #include <dali-toolkit/internal/controls/scene3d-view/scene3d-view-impl.h>
30 Scene3dView::Scene3dView()
34 Scene3dView::~Scene3dView()
38 Scene3dView::Scene3dView( const Scene3dView& handle )
43 Scene3dView& Scene3dView::operator=( const Scene3dView& handle )
45 BaseHandle::operator=( handle );
49 Scene3dView Scene3dView::New( const std::string& filePath )
51 return Internal::Scene3dView::New( filePath );
54 Scene3dView Scene3dView::New( const std::string& filePath, const std::string& diffuseTexturePath, const std::string& specularTexturePath, Vector4 scaleFactor )
56 return Internal::Scene3dView::New( filePath, diffuseTexturePath, specularTexturePath, scaleFactor );
59 Scene3dView::Scene3dView( Internal::Scene3dView& implementation )
60 : Control( implementation )
64 Scene3dView::Scene3dView( Dali::Internal::CustomActor* internal )
67 VerifyCustomActorPointer<Internal::Scene3dView>( internal );
70 Scene3dView Scene3dView::DownCast( BaseHandle handle )
72 return Control::DownCast<Scene3dView, Internal::Scene3dView>( handle );
75 uint32_t Scene3dView::GetAnimationCount()
77 return GetImpl( *this ).GetAnimationCount();
80 bool Scene3dView::PlayAnimation( uint32_t index )
82 return GetImpl( *this ).PlayAnimation( index );
85 bool Scene3dView::PlayAnimations()
87 return GetImpl( *this ).PlayAnimations();
90 bool Scene3dView::SetLight( LightType type, Vector3 lightVector, Vector3 lightColor )
92 return GetImpl( *this ).SetLight( type, lightVector, lightColor );
95 CameraActor Scene3dView::GetDefaultCamera()
97 return GetImpl( *this ).GetDefaultCamera();
100 uint32_t Scene3dView::GetCameraCount()
102 return GetImpl( *this ).GetCameraCount();
105 CameraActor Scene3dView::GetCamera( uint32_t cameraIndex )
107 return GetImpl( *this ).GetCamera( cameraIndex );