2 * Copyright (c) 2015 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>
33 Model3dView::Model3dView()
36 Model3dView::Model3dView( const Model3dView& model3dView )
37 : Control( model3dView )
41 Model3dView& Model3dView::operator=( const Model3dView& model3dView )
43 if( &model3dView != this )
45 Control::operator=( model3dView );
50 Model3dView::~Model3dView()
54 Model3dView Model3dView::New()
56 return Internal::Model3dView::New();
59 Model3dView Model3dView::New( const std::string& objUrl, const std::string& mtlUrl, const std::string& imagesUrl )
61 Model3dView model3dView = Internal::Model3dView::New();
62 model3dView.SetProperty( Model3dView::Property::GEOMETRY_URL, Dali::Property::Value( objUrl ) );
63 model3dView.SetProperty( Model3dView::Property::MATERIAL_URL, Dali::Property::Value( mtlUrl ) );
64 model3dView.SetProperty( Model3dView::Property::IMAGES_URL, Dali::Property::Value( imagesUrl ) );
69 Model3dView Model3dView::DownCast( BaseHandle handle )
71 return Control::DownCast<Model3dView, Internal::Model3dView>(handle);
74 Model3dView::Model3dView( Internal::Model3dView& implementation )
75 : Control( implementation )
79 Model3dView::Model3dView( Dali::Internal::CustomActor* internal )
82 VerifyCustomActorPointer<Internal::Model3dView>( internal );
85 } // namespace Toolkit