Merge "Add PIXEL_SIZE and ELLIPSIS property in text-controls" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Model3dView.cs
1 /** Copyright (c) 2017 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.10
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     DisposeQueue.Instance.Add(this);
42   }
43
44   public override void Dispose() {
45     if (!Stage.IsInstalled()) {
46       DisposeQueue.Instance.Add(this);
47       return;
48     }
49
50     lock(this) {
51       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
52         if (swigCMemOwn) {
53           swigCMemOwn = false;
54           NDalicPINVOKE.delete_Model3dView(swigCPtr);
55         }
56         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57       }
58       global::System.GC.SuppressFinalize(this);
59       base.Dispose();
60     }
61   }
62
63
64   public class Property : global::System.IDisposable {
65     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
66     protected bool swigCMemOwn;
67   
68     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
69       swigCMemOwn = cMemoryOwn;
70       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
71     }
72   
73     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
74       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
75     }
76   
77     ~Property() {
78       Dispose();
79     }
80   
81     public virtual void Dispose() {
82       lock(this) {
83         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
84           if (swigCMemOwn) {
85             swigCMemOwn = false;
86             NDalicPINVOKE.delete_Model3dView_Property(swigCPtr);
87           }
88           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
89         }
90         global::System.GC.SuppressFinalize(this);
91       }
92     }
93   
94     public Property() : this(NDalicPINVOKE.new_Model3dView_Property(), true) {
95       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96     }
97   
98     public static readonly int GEOMETRY_URL = NDalicPINVOKE.Model3dView_Property_GEOMETRY_URL_get();
99     public static readonly int MATERIAL_URL = NDalicPINVOKE.Model3dView_Property_MATERIAL_URL_get();
100     public static readonly int IMAGES_URL = NDalicPINVOKE.Model3dView_Property_IMAGES_URL_get();
101     public static readonly int ILLUMINATION_TYPE = NDalicPINVOKE.Model3dView_Property_ILLUMINATION_TYPE_get();
102     public static readonly int TEXTURE0_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE0_URL_get();
103     public static readonly int TEXTURE1_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE1_URL_get();
104     public static readonly int TEXTURE2_URL = NDalicPINVOKE.Model3dView_Property_TEXTURE2_URL_get();
105     public static readonly int LIGHT_POSITION = NDalicPINVOKE.Model3dView_Property_LIGHT_POSITION_get();
106   
107   }
108
109   public Model3dView () : this (NDalicPINVOKE.Model3dView_New__SWIG_0(), true) {
110       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111
112   }
113   public Model3dView (string objUrl, string mtlUrl, string imagesUrl) : this (NDalicPINVOKE.Model3dView_New__SWIG_1(objUrl, mtlUrl, imagesUrl), true) {
114       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115
116   }
117   public Model3dView(Model3dView model3dView) : this(NDalicPINVOKE.new_Model3dView__SWIG_1(Model3dView.getCPtr(model3dView)), true) {
118     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119   }
120
121   public Model3dView Assign(Model3dView model3dView) {
122     Model3dView ret = new Model3dView(NDalicPINVOKE.Model3dView_Assign(swigCPtr, Model3dView.getCPtr(model3dView)), false);
123     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124     return ret;
125   }
126
127   public new static Model3dView DownCast(BaseHandle handle) {
128     Model3dView ret = new Model3dView(NDalicPINVOKE.Model3dView_DownCast(BaseHandle.getCPtr(handle)), true);
129     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130     return ret;
131   }
132
133   public enum PropertyRange {
134     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
135     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
136     ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
137     ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
138   }
139
140   public enum IluminationTypeEnum {
141     DIFFUSE,
142     DIFFUSE_WITH_TEXTURE,
143     DIFFUSE_WITH_NORMAL_MAP
144   }
145
146   public string GeometryUrl
147   {
148     get
149     {
150       string temp;
151       GetProperty( Model3dView.Property.GEOMETRY_URL).Get( out temp );
152       return temp;
153     }
154     set
155     {
156       SetProperty( Model3dView.Property.GEOMETRY_URL, new Dali.Property.Value( value ) );
157     }
158   }
159   public string MaterialUrl
160   {
161     get
162     {
163       string temp;
164       GetProperty( Model3dView.Property.MATERIAL_URL).Get( out temp );
165       return temp;
166     }
167     set
168     {
169       SetProperty( Model3dView.Property.MATERIAL_URL, new Dali.Property.Value( value ) );
170     }
171   }
172   public string ImagesUrl
173   {
174     get
175     {
176       string temp;
177       GetProperty( Model3dView.Property.IMAGES_URL).Get( out temp );
178       return temp;
179     }
180     set
181     {
182       SetProperty( Model3dView.Property.IMAGES_URL, new Dali.Property.Value( value ) );
183     }
184   }
185   public int IlluminationType
186   {
187     get
188     {
189       int temp = 0;
190       GetProperty( Model3dView.Property.ILLUMINATION_TYPE).Get( ref temp );
191       return temp;
192     }
193     set
194     {
195       SetProperty( Model3dView.Property.ILLUMINATION_TYPE, new Dali.Property.Value( value ) );
196     }
197   }
198   public string Texture0Url
199   {
200     get
201     {
202       string temp;
203       GetProperty( Model3dView.Property.TEXTURE0_URL).Get( out temp );
204       return temp;
205     }
206     set
207     {
208       SetProperty( Model3dView.Property.TEXTURE0_URL, new Dali.Property.Value( value ) );
209     }
210   }
211   public string Texture1Url
212   {
213     get
214     {
215       string temp;
216       GetProperty( Model3dView.Property.TEXTURE1_URL).Get( out temp );
217       return temp;
218     }
219     set
220     {
221       SetProperty( Model3dView.Property.TEXTURE1_URL, new Dali.Property.Value( value ) );
222     }
223   }
224   public string Texture2Url
225   {
226     get
227     {
228       string temp;
229       GetProperty( Model3dView.Property.TEXTURE2_URL).Get( out temp );
230       return temp;
231     }
232     set
233     {
234       SetProperty( Model3dView.Property.TEXTURE2_URL, new Dali.Property.Value( value ) );
235     }
236   }
237   public Vector3 LightPosition
238   {
239     get
240     {
241       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
242       GetProperty( Model3dView.Property.LIGHT_POSITION).Get(  temp );
243       return temp;
244     }
245     set
246     {
247       SetProperty( Model3dView.Property.LIGHT_POSITION, new Dali.Property.Value( value ) );
248     }
249   }
250
251 }
252
253 }