2 * Copyright (c) 2016 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.
18 %define MODEL3DVIEW_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
21 /* Properties earlier added by Ruby Script */
23 public string GeometryUrl
28 GetProperty( Model3dView.Property.GEOMETRY_URL).Get( out temp );
33 SetProperty( Model3dView.Property.GEOMETRY_URL, new Dali.Property.Value( value ) );
36 public string MaterialUrl
41 GetProperty( Model3dView.Property.MATERIAL_URL).Get( out temp );
46 SetProperty( Model3dView.Property.MATERIAL_URL, new Dali.Property.Value( value ) );
49 public string ImagesUrl
54 GetProperty( Model3dView.Property.IMAGES_URL).Get( out temp );
59 SetProperty( Model3dView.Property.IMAGES_URL, new Dali.Property.Value( value ) );
62 public int IlluminationType
67 GetProperty( Model3dView.Property.ILLUMINATION_TYPE).Get( ref temp );
72 SetProperty( Model3dView.Property.ILLUMINATION_TYPE, new Dali.Property.Value( value ) );
75 public string Texture0Url
80 GetProperty( Model3dView.Property.TEXTURE0_URL).Get( out temp );
85 SetProperty( Model3dView.Property.TEXTURE0_URL, new Dali.Property.Value( value ) );
88 public string Texture1Url
93 GetProperty( Model3dView.Property.TEXTURE1_URL).Get( out temp );
98 SetProperty( Model3dView.Property.TEXTURE1_URL, new Dali.Property.Value( value ) );
101 public string Texture2Url
106 GetProperty( Model3dView.Property.TEXTURE2_URL).Get( out temp );
111 SetProperty( Model3dView.Property.TEXTURE2_URL, new Dali.Property.Value( value ) );
114 public Dali.CSharp.Position LightPosition
118 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
119 GetProperty( Model3dView.Property.LIGHT_POSITION).Get( temp );
120 Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
125 SetProperty( Model3dView.Property.LIGHT_POSITION, new Dali.Property.Value( value ) );
129 /* Properties ends */
136 MODEL3DVIEW_PROPERTIES_HELPER(Dali::Toolkit, Model3dView);