Usage of CustomeView for ScrollContainer and code refactoring accordingly. Also added...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Model3dView.cs
1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 public class Model3dView : View {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal Model3dView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Model3dView_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Model3dView obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~Model3dView() {
41     Dispose();
42   }
43
44   public override void Dispose() {
45     lock(this) {
46       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
47         if (swigCMemOwn) {
48           swigCMemOwn = false;
49           NDalicPINVOKE.delete_Model3dView(swigCPtr);
50         }
51         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
52       }
53       global::System.GC.SuppressFinalize(this);
54       base.Dispose();
55     }
56   }
57
58   public class Property : global::System.IDisposable {
59     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60     protected bool swigCMemOwn;
61   
62     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63       swigCMemOwn = cMemoryOwn;
64       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
65     }
66   
67     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
68       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
69     }
70   
71     ~Property() {
72       Dispose();
73     }
74   
75     public virtual void Dispose() {
76       lock(this) {
77         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
78           if (swigCMemOwn) {
79             swigCMemOwn = false;
80             NDalicPINVOKE.delete_Model3dView_Property(swigCPtr);
81           }
82           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
83         }
84         global::System.GC.SuppressFinalize(this);
85       }
86     }
87   
88     public Property() : this(NDalicPINVOKE.new_Model3dView_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int GEOMETRY_URL = NDalicPINVOKE.Model3dView_Property_GEOMETRY_URL_get();
93     public static readonly int MATERIAL_URL = NDalicPINVOKE.Model3dView_Property_MATERIAL_URL_get();
94     public static readonly int IMAGES_URL = NDalicPINVOKE.Model3dView_Property_IMAGES_URL_get();
95     public static readonly int ILLUMINATION_TYPE = NDalicPINVOKE.Model3dView_Property_ILLUMINATION_TYPE_get();
96     public static readonly int TEXTURE0_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE0_URL_get();
97     public static readonly int TEXTURE1_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE1_URL_get();
98     public static readonly int TEXTURE2_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE2_URL_get();
99     public static readonly int LIGHT_POSITION = NDalicPINVOKE.Model3dView_Property_LIGHT_POSITION_get();
100   
101   }
102
103   public Model3dView () : this (NDalicPINVOKE.Model3dView_New__SWIG_0(), true) {
104       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105
106   }
107   public Model3dView (string objUrl, string mtlUrl, string imagesUrl) : this (NDalicPINVOKE.Model3dView_New__SWIG_1(objUrl, mtlUrl, imagesUrl), true) {
108       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109
110   }
111   public Model3dView(Model3dView model3dView) : this(NDalicPINVOKE.new_Model3dView__SWIG_1(Model3dView.getCPtr(model3dView)), true) {
112     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
113   }
114
115   public Model3dView Assign(Model3dView model3dView) {
116     Model3dView ret = new Model3dView(NDalicPINVOKE.Model3dView_Assign(swigCPtr, Model3dView.getCPtr(model3dView)), false);
117     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118     return ret;
119   }
120
121   public new static Model3dView DownCast(BaseHandle handle) {
122     Model3dView ret = new Model3dView(NDalicPINVOKE.Model3dView_DownCast(BaseHandle.getCPtr(handle)), true);
123     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124     return ret;
125   }
126
127   public enum PropertyRange {
128     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
129     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
130     ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
131     ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
132   }
133
134   public enum IluminationTypeEnum {
135     DIFFUSE,
136     DIFFUSE_WITH_TEXTURE,
137     DIFFUSE_WITH_NORMAL_MAP
138   }
139
140   public string GeometryUrl 
141   { 
142     get 
143     {
144       string temp;
145       GetProperty( Model3dView.Property.GEOMETRY_URL).Get( out temp );
146       return temp;
147     }
148     set 
149     { 
150       SetProperty( Model3dView.Property.GEOMETRY_URL, new Dali.Property.Value( value ) );
151     }
152   }
153   public string MaterialUrl 
154   { 
155     get 
156     {
157       string temp;
158       GetProperty( Model3dView.Property.MATERIAL_URL).Get( out temp );
159       return temp;
160     }
161     set 
162     { 
163       SetProperty( Model3dView.Property.MATERIAL_URL, new Dali.Property.Value( value ) );
164     }
165   }
166   public string ImagesUrl 
167   { 
168     get 
169     {
170       string temp;
171       GetProperty( Model3dView.Property.IMAGES_URL).Get( out temp );
172       return temp;
173     }
174     set 
175     { 
176       SetProperty( Model3dView.Property.IMAGES_URL, new Dali.Property.Value( value ) );
177     }
178   }
179   public int IlluminationType 
180   { 
181     get 
182     {
183       int temp = 0;
184       GetProperty( Model3dView.Property.ILLUMINATION_TYPE).Get( ref temp );
185       return temp;
186     }
187     set 
188     { 
189       SetProperty( Model3dView.Property.ILLUMINATION_TYPE, new Dali.Property.Value( value ) );
190     }
191   }
192   public string Texture0Url 
193   { 
194     get 
195     {
196       string temp;
197       GetProperty( Model3dView.Property.TEXTURE0_URL).Get( out temp );
198       return temp;
199     }
200     set 
201     { 
202       SetProperty( Model3dView.Property.TEXTURE0_URL, new Dali.Property.Value( value ) );
203     }
204   }
205   public string Texture1Url 
206   { 
207     get 
208     {
209       string temp;
210       GetProperty( Model3dView.Property.TEXTURE1_URL).Get( out temp );
211       return temp;
212     }
213     set 
214     { 
215       SetProperty( Model3dView.Property.TEXTURE1_URL, new Dali.Property.Value( value ) );
216     }
217   }
218   public string Texture2Url 
219   { 
220     get 
221     {
222       string temp;
223       GetProperty( Model3dView.Property.TEXTURE2_URL).Get( out temp );
224       return temp;
225     }
226     set 
227     { 
228       SetProperty( Model3dView.Property.TEXTURE2_URL, new Dali.Property.Value( value ) );
229     }
230   }
231   public Vector3 LightPosition 
232   { 
233     get 
234     {
235       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
236       GetProperty( Model3dView.Property.LIGHT_POSITION).Get(  temp );
237       return temp;
238     }
239     set 
240     { 
241       SetProperty( Model3dView.Property.LIGHT_POSITION, new Dali.Property.Value( value ) );
242     }
243   }
244
245 }
246
247 }