Merge "This patch is for refining dali application to support tizen c# application...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / CameraActor.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 CameraActor : Actor {
30   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31
32   internal CameraActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CameraActor_SWIGUpcast(cPtr), cMemoryOwn) {
33     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34   }
35
36   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CameraActor obj) {
37     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38   }
39
40   ~CameraActor() {
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_CameraActor(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_CameraActor_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_CameraActor_Property(), true) {
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91   
92     public static readonly int TYPE = NDalicPINVOKE.CameraActor_Property_TYPE_get();
93     public static readonly int PROJECTION_MODE = NDalicPINVOKE.CameraActor_Property_PROJECTION_MODE_get();
94     public static readonly int FIELD_OF_VIEW = NDalicPINVOKE.CameraActor_Property_FIELD_OF_VIEW_get();
95     public static readonly int ASPECT_RATIO = NDalicPINVOKE.CameraActor_Property_ASPECT_RATIO_get();
96     public static readonly int NEAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_NEAR_PLANE_DISTANCE_get();
97     public static readonly int FAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_FAR_PLANE_DISTANCE_get();
98     public static readonly int LEFT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_LEFT_PLANE_DISTANCE_get();
99     public static readonly int RIGHT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_RIGHT_PLANE_DISTANCE_get();
100     public static readonly int TOP_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_TOP_PLANE_DISTANCE_get();
101     public static readonly int BOTTOM_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_BOTTOM_PLANE_DISTANCE_get();
102     public static readonly int TARGET_POSITION = NDalicPINVOKE.CameraActor_Property_TARGET_POSITION_get();
103     public static readonly int PROJECTION_MATRIX = NDalicPINVOKE.CameraActor_Property_PROJECTION_MATRIX_get();
104     public static readonly int VIEW_MATRIX = NDalicPINVOKE.CameraActor_Property_VIEW_MATRIX_get();
105     public static readonly int INVERT_Y_AXIS = NDalicPINVOKE.CameraActor_Property_INVERT_Y_AXIS_get();
106   
107   }
108
109   public CameraActor () : this (NDalicPINVOKE.CameraActor_New__SWIG_0(), true) {
110       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111
112   }
113   public CameraActor (Vector2 size) : this (NDalicPINVOKE.CameraActor_New__SWIG_1(Vector2.getCPtr(size)), true) {
114       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115
116   }
117   public new static CameraActor DownCast(BaseHandle handle) {
118     CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_DownCast(BaseHandle.getCPtr(handle)), true);
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120     return ret;
121   }
122
123   public CameraActor(CameraActor copy) : this(NDalicPINVOKE.new_CameraActor__SWIG_1(CameraActor.getCPtr(copy)), true) {
124     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125   }
126
127   public CameraActor Assign(CameraActor rhs) {
128     CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_Assign(swigCPtr, CameraActor.getCPtr(rhs)), false);
129     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130     return ret;
131   }
132
133   public void SetType(CameraType type) {
134     NDalicPINVOKE.CameraActor_SetType(swigCPtr, (int)type);
135     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136   }
137
138   public CameraType GetType() {
139     CameraType ret = (CameraType)NDalicPINVOKE.CameraActor_GetType(swigCPtr);
140     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141     return ret;
142   }
143
144   public void SetProjectionMode(ProjectionMode mode) {
145     NDalicPINVOKE.CameraActor_SetProjectionMode(swigCPtr, (int)mode);
146     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147   }
148
149   public ProjectionMode GetProjectionMode() {
150     ProjectionMode ret = (ProjectionMode)NDalicPINVOKE.CameraActor_GetProjectionMode(swigCPtr);
151     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152     return ret;
153   }
154
155   public void SetFieldOfView(float fieldOfView) {
156     NDalicPINVOKE.CameraActor_SetFieldOfView(swigCPtr, fieldOfView);
157     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158   }
159
160   public float GetFieldOfView() {
161     float ret = NDalicPINVOKE.CameraActor_GetFieldOfView(swigCPtr);
162     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
163     return ret;
164   }
165
166   public void SetAspectRatio(float aspectRatio) {
167     NDalicPINVOKE.CameraActor_SetAspectRatio(swigCPtr, aspectRatio);
168     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169   }
170
171   public float GetAspectRatio() {
172     float ret = NDalicPINVOKE.CameraActor_GetAspectRatio(swigCPtr);
173     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174     return ret;
175   }
176
177   public void SetNearClippingPlane(float nearClippingPlane) {
178     NDalicPINVOKE.CameraActor_SetNearClippingPlane(swigCPtr, nearClippingPlane);
179     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180   }
181
182   public float GetNearClippingPlane() {
183     float ret = NDalicPINVOKE.CameraActor_GetNearClippingPlane(swigCPtr);
184     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185     return ret;
186   }
187
188   public void SetFarClippingPlane(float farClippingPlane) {
189     NDalicPINVOKE.CameraActor_SetFarClippingPlane(swigCPtr, farClippingPlane);
190     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
191   }
192
193   public float GetFarClippingPlane() {
194     float ret = NDalicPINVOKE.CameraActor_GetFarClippingPlane(swigCPtr);
195     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196     return ret;
197   }
198
199   public void SetTargetPosition(Vector3 targetPosition) {
200     NDalicPINVOKE.CameraActor_SetTargetPosition(swigCPtr, Vector3.getCPtr(targetPosition));
201     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202   }
203
204   public Vector3 GetTargetPosition() {
205     Vector3 ret = new Vector3(NDalicPINVOKE.CameraActor_GetTargetPosition(swigCPtr), true);
206     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207     return ret;
208   }
209
210   public void SetInvertYAxis(bool invertYAxis) {
211     NDalicPINVOKE.CameraActor_SetInvertYAxis(swigCPtr, invertYAxis);
212     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213   }
214
215   public bool GetInvertYAxis() {
216     bool ret = NDalicPINVOKE.CameraActor_GetInvertYAxis(swigCPtr);
217     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218     return ret;
219   }
220
221   public void SetPerspectiveProjection(Vector2 size) {
222     NDalicPINVOKE.CameraActor_SetPerspectiveProjection(swigCPtr, Vector2.getCPtr(size));
223     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224   }
225
226   public void SetOrthographicProjection(Vector2 size) {
227     NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_0(swigCPtr, Vector2.getCPtr(size));
228     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229   }
230
231   public void SetOrthographicProjection(float left, float right, float top, float bottom, float near, float far) {
232     NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_1(swigCPtr, left, right, top, bottom, near, far);
233     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234   }
235
236   public string Type 
237   { 
238     get 
239     {
240       string temp;
241       GetProperty( CameraActor.Property.TYPE).Get( out temp );
242       return temp;
243     }
244     set 
245     { 
246       SetProperty( CameraActor.Property.TYPE, new Dali.Property.Value( value ) );
247     }
248   }
249   public string ProjectionMode 
250   { 
251     get 
252     {
253       string temp;
254       GetProperty( CameraActor.Property.PROJECTION_MODE).Get( out temp );
255       return temp;
256     }
257     set 
258     { 
259       SetProperty( CameraActor.Property.PROJECTION_MODE, new Dali.Property.Value( value ) );
260     }
261   }
262   public float FieldOfView 
263   { 
264     get 
265     {
266       float temp = 0.0f;
267       GetProperty( CameraActor.Property.FIELD_OF_VIEW).Get( ref temp );
268       return temp;
269     }
270     set 
271     { 
272       SetProperty( CameraActor.Property.FIELD_OF_VIEW, new Dali.Property.Value( value ) );
273     }
274   }
275   public float AspectRatio 
276   { 
277     get 
278     {
279       float temp = 0.0f;
280       GetProperty( CameraActor.Property.ASPECT_RATIO).Get( ref temp );
281       return temp;
282     }
283     set 
284     { 
285       SetProperty( CameraActor.Property.ASPECT_RATIO, new Dali.Property.Value( value ) );
286     }
287   }
288   public float NearPlaneDistance 
289   { 
290     get 
291     {
292       float temp = 0.0f;
293       GetProperty( CameraActor.Property.NEAR_PLANE_DISTANCE).Get( ref temp );
294       return temp;
295     }
296     set 
297     { 
298       SetProperty( CameraActor.Property.NEAR_PLANE_DISTANCE, new Dali.Property.Value( value ) );
299     }
300   }
301   public float FarPlaneDistance 
302   { 
303     get 
304     {
305       float temp = 0.0f;
306       GetProperty( CameraActor.Property.FAR_PLANE_DISTANCE).Get( ref temp );
307       return temp;
308     }
309     set 
310     { 
311       SetProperty( CameraActor.Property.FAR_PLANE_DISTANCE, new Dali.Property.Value( value ) );
312     }
313   }
314   public float LeftPlaneDistance 
315   { 
316     get 
317     {
318       float temp = 0.0f;
319       GetProperty( CameraActor.Property.LEFT_PLANE_DISTANCE).Get( ref temp );
320       return temp;
321     }
322     set 
323     { 
324       SetProperty( CameraActor.Property.LEFT_PLANE_DISTANCE, new Dali.Property.Value( value ) );
325     }
326   }
327   public float RightPlaneDistance 
328   { 
329     get 
330     {
331       float temp = 0.0f;
332       GetProperty( CameraActor.Property.RIGHT_PLANE_DISTANCE).Get( ref temp );
333       return temp;
334     }
335     set 
336     { 
337       SetProperty( CameraActor.Property.RIGHT_PLANE_DISTANCE, new Dali.Property.Value( value ) );
338     }
339   }
340   public float TopPlaneDistance 
341   { 
342     get 
343     {
344       float temp = 0.0f;
345       GetProperty( CameraActor.Property.TOP_PLANE_DISTANCE).Get( ref temp );
346       return temp;
347     }
348     set 
349     { 
350       SetProperty( CameraActor.Property.TOP_PLANE_DISTANCE, new Dali.Property.Value( value ) );
351     }
352   }
353   public float BottomPlaneDistance 
354   { 
355     get 
356     {
357       float temp = 0.0f;
358       GetProperty( CameraActor.Property.BOTTOM_PLANE_DISTANCE).Get( ref temp );
359       return temp;
360     }
361     set 
362     { 
363       SetProperty( CameraActor.Property.BOTTOM_PLANE_DISTANCE, new Dali.Property.Value( value ) );
364     }
365   }
366   public Vector3 TargetPosition 
367   { 
368     get 
369     {
370       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
371       GetProperty( CameraActor.Property.TARGET_POSITION).Get(  temp );
372       return temp;
373     }
374     set 
375     { 
376       SetProperty( CameraActor.Property.TARGET_POSITION, new Dali.Property.Value( value ) );
377     }
378   }
379   public Matrix ProjectionMatrix 
380   { 
381     get 
382     {
383       Matrix temp = new Matrix();
384       GetProperty( CameraActor.Property.PROJECTION_MATRIX).Get(  temp );
385       return temp;
386     }
387 }  public Matrix ViewMatrix 
388   { 
389     get 
390     {
391       Matrix temp = new Matrix();
392       GetProperty( CameraActor.Property.VIEW_MATRIX).Get(  temp );
393       return temp;
394     }
395 }  public bool InvertYAxis 
396   { 
397     get 
398     {
399       bool temp = false;
400       GetProperty( CameraActor.Property.INVERT_Y_AXIS).Get( ref temp );
401       return temp;
402     }
403     set 
404     { 
405       SetProperty( CameraActor.Property.INVERT_Y_AXIS, new Dali.Property.Value( value ) );
406     }
407   }
408
409 }
410
411 }