1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
\r
2 // PROPRIETARY/CONFIDENTIAL
\r
3 // This software is the confidential and proprietary
\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
\r
5 // not disclose such Confidential Information and shall use it only in
\r
6 // accordance with the terms of the license agreement you entered into with
\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
\r
8 // suitability of the software, either express or implied, including but not
\r
9 // limited to the implied warranties of merchantability, fitness for a
\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
\r
11 // damages suffered by licensee as a result of using, modifying or distributing
\r
12 // this software or its derivatives.
\r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
\r
16 // Licensed under the Apache License, Version 2.0 (the "License");
\r
17 // you may not use this file except in compliance with the License.
\r
18 // You may obtain a copy of the License at
\r
20 // http://www.apache.org/licenses/LICENSE-2.0
\r
22 // Unless required by applicable law or agreed to in writing, software
\r
23 // distributed under the License is distributed on an "AS IS" BASIS,
\r
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
25 // See the License for the specific language governing permissions and
\r
26 // limitations under the License.
\r
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
\r
30 // Some have been manually changed
\r
35 public class CameraActor : Actor
\r
37 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
39 internal CameraActor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CameraActor_SWIGUpcast(cPtr), cMemoryOwn)
\r
41 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
44 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CameraActor obj)
\r
46 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
51 DisposeQueue.Instance.Add(this);
\r
54 public override void Dispose()
\r
56 if (!Stage.IsInstalled())
\r
58 DisposeQueue.Instance.Add(this);
\r
64 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
68 swigCMemOwn = false;
\r
69 NDalicPINVOKE.delete_CameraActor(swigCPtr);
\r
71 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
73 global::System.GC.SuppressFinalize(this);
\r
79 internal class Property : global::System.IDisposable
\r
81 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
82 protected bool swigCMemOwn;
\r
84 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
86 swigCMemOwn = cMemoryOwn;
\r
87 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
90 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
\r
92 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
100 public virtual void Dispose()
\r
104 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
108 swigCMemOwn = false;
\r
109 NDalicPINVOKE.delete_CameraActor_Property(swigCPtr);
\r
111 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
113 global::System.GC.SuppressFinalize(this);
\r
117 internal Property() : this(NDalicPINVOKE.new_CameraActor_Property(), true)
\r
119 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
122 internal static readonly int TYPE = NDalicPINVOKE.CameraActor_Property_TYPE_get();
\r
123 internal static readonly int PROJECTION_MODE = NDalicPINVOKE.CameraActor_Property_PROJECTION_MODE_get();
\r
124 internal static readonly int FIELD_OF_VIEW = NDalicPINVOKE.CameraActor_Property_FIELD_OF_VIEW_get();
\r
125 internal static readonly int ASPECT_RATIO = NDalicPINVOKE.CameraActor_Property_ASPECT_RATIO_get();
\r
126 internal static readonly int NEAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_NEAR_PLANE_DISTANCE_get();
\r
127 internal static readonly int FAR_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_FAR_PLANE_DISTANCE_get();
\r
128 internal static readonly int LEFT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_LEFT_PLANE_DISTANCE_get();
\r
129 internal static readonly int RIGHT_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_RIGHT_PLANE_DISTANCE_get();
\r
130 internal static readonly int TOP_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_TOP_PLANE_DISTANCE_get();
\r
131 internal static readonly int BOTTOM_PLANE_DISTANCE = NDalicPINVOKE.CameraActor_Property_BOTTOM_PLANE_DISTANCE_get();
\r
132 internal static readonly int TARGET_POSITION = NDalicPINVOKE.CameraActor_Property_TARGET_POSITION_get();
\r
133 internal static readonly int PROJECTION_MATRIX = NDalicPINVOKE.CameraActor_Property_PROJECTION_MATRIX_get();
\r
134 internal static readonly int VIEW_MATRIX = NDalicPINVOKE.CameraActor_Property_VIEW_MATRIX_get();
\r
135 internal static readonly int INVERT_Y_AXIS = NDalicPINVOKE.CameraActor_Property_INVERT_Y_AXIS_get();
\r
139 public CameraActor() : this(NDalicPINVOKE.CameraActor_New__SWIG_0(), true)
\r
141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
144 public CameraActor(Size2D size) : this(NDalicPINVOKE.CameraActor_New__SWIG_1(Size2D.getCPtr(size)), true)
\r
146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
149 public new static CameraActor DownCast(BaseHandle handle)
\r
151 CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_DownCast(BaseHandle.getCPtr(handle)), true);
\r
152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
156 internal CameraActor(CameraActor copy) : this(NDalicPINVOKE.new_CameraActor__SWIG_1(CameraActor.getCPtr(copy)), true)
\r
158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
161 internal CameraActor Assign(CameraActor rhs)
\r
163 CameraActor ret = new CameraActor(NDalicPINVOKE.CameraActor_Assign(swigCPtr, CameraActor.getCPtr(rhs)), false);
\r
164 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
168 internal void SetType(CameraType type)
\r
170 NDalicPINVOKE.CameraActor_SetType(swigCPtr, (int)type);
\r
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
174 internal CameraType GetType()
\r
176 CameraType ret = (CameraType)NDalicPINVOKE.CameraActor_GetType(swigCPtr);
\r
177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
181 internal void SetProjectionMode(ProjectionMode mode)
\r
183 NDalicPINVOKE.CameraActor_SetProjectionMode(swigCPtr, (int)mode);
\r
184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
187 internal ProjectionMode GetProjectionMode()
\r
189 ProjectionMode ret = (ProjectionMode)NDalicPINVOKE.CameraActor_GetProjectionMode(swigCPtr);
\r
190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
194 internal void SetFieldOfView(float fieldOfView)
\r
196 NDalicPINVOKE.CameraActor_SetFieldOfView(swigCPtr, fieldOfView);
\r
197 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
200 internal float GetFieldOfView()
\r
202 float ret = NDalicPINVOKE.CameraActor_GetFieldOfView(swigCPtr);
\r
203 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
207 internal void SetAspectRatio(float aspectRatio)
\r
209 NDalicPINVOKE.CameraActor_SetAspectRatio(swigCPtr, aspectRatio);
\r
210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
213 internal float GetAspectRatio()
\r
215 float ret = NDalicPINVOKE.CameraActor_GetAspectRatio(swigCPtr);
\r
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
220 internal void SetNearClippingPlane(float nearClippingPlane)
\r
222 NDalicPINVOKE.CameraActor_SetNearClippingPlane(swigCPtr, nearClippingPlane);
\r
223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
226 internal float GetNearClippingPlane()
\r
228 float ret = NDalicPINVOKE.CameraActor_GetNearClippingPlane(swigCPtr);
\r
229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
233 internal void SetFarClippingPlane(float farClippingPlane)
\r
235 NDalicPINVOKE.CameraActor_SetFarClippingPlane(swigCPtr, farClippingPlane);
\r
236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
239 internal float GetFarClippingPlane()
\r
241 float ret = NDalicPINVOKE.CameraActor_GetFarClippingPlane(swigCPtr);
\r
242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
246 internal void SetTargetPosition(Vector3 targetPosition)
\r
248 NDalicPINVOKE.CameraActor_SetTargetPosition(swigCPtr, Vector3.getCPtr(targetPosition));
\r
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
252 internal Vector3 GetTargetPosition()
\r
254 Vector3 ret = new Vector3(NDalicPINVOKE.CameraActor_GetTargetPosition(swigCPtr), true);
\r
255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
259 internal void SetInvertYAxis(bool invertYAxis)
\r
261 NDalicPINVOKE.CameraActor_SetInvertYAxis(swigCPtr, invertYAxis);
\r
262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
265 internal bool GetInvertYAxis()
\r
267 bool ret = NDalicPINVOKE.CameraActor_GetInvertYAxis(swigCPtr);
\r
268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
272 internal void SetPerspectiveProjection(Vector2 size)
\r
274 NDalicPINVOKE.CameraActor_SetPerspectiveProjection(swigCPtr, Vector2.getCPtr(size));
\r
275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
278 internal void SetOrthographicProjection(Vector2 size)
\r
280 NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_0(swigCPtr, Vector2.getCPtr(size));
\r
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
284 internal void SetOrthographicProjection(float left, float right, float top, float bottom, float near, float far)
\r
286 NDalicPINVOKE.CameraActor_SetOrthographicProjection__SWIG_1(swigCPtr, left, right, top, bottom, near, far);
\r
287 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
295 GetProperty(CameraActor.Property.TYPE).Get(out temp);
\r
300 SetProperty(CameraActor.Property.TYPE, new Tizen.NUI.PropertyValue(value));
\r
303 public string ProjectionMode
\r
308 GetProperty(CameraActor.Property.PROJECTION_MODE).Get(out temp);
\r
313 SetProperty(CameraActor.Property.PROJECTION_MODE, new Tizen.NUI.PropertyValue(value));
\r
316 public float FieldOfView
\r
321 GetProperty(CameraActor.Property.FIELD_OF_VIEW).Get(ref temp);
\r
326 SetProperty(CameraActor.Property.FIELD_OF_VIEW, new Tizen.NUI.PropertyValue(value));
\r
329 public float AspectRatio
\r
334 GetProperty(CameraActor.Property.ASPECT_RATIO).Get(ref temp);
\r
339 SetProperty(CameraActor.Property.ASPECT_RATIO, new Tizen.NUI.PropertyValue(value));
\r
342 public float NearPlaneDistance
\r
347 GetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE).Get(ref temp);
\r
352 SetProperty(CameraActor.Property.NEAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
355 public float FarPlaneDistance
\r
360 GetProperty(CameraActor.Property.FAR_PLANE_DISTANCE).Get(ref temp);
\r
365 SetProperty(CameraActor.Property.FAR_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
368 public float LeftPlaneDistance
\r
373 GetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE).Get(ref temp);
\r
378 SetProperty(CameraActor.Property.LEFT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
381 public float RightPlaneDistance
\r
386 GetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE).Get(ref temp);
\r
391 SetProperty(CameraActor.Property.RIGHT_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
394 public float TopPlaneDistance
\r
399 GetProperty(CameraActor.Property.TOP_PLANE_DISTANCE).Get(ref temp);
\r
404 SetProperty(CameraActor.Property.TOP_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
407 public float BottomPlaneDistance
\r
412 GetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE).Get(ref temp);
\r
417 SetProperty(CameraActor.Property.BOTTOM_PLANE_DISTANCE, new Tizen.NUI.PropertyValue(value));
\r
420 public Position TargetPosition
\r
424 Position temp = new Position(0.0f, 0.0f, 0.0f);
\r
425 GetProperty(CameraActor.Property.TARGET_POSITION).Get(temp);
\r
430 SetProperty(CameraActor.Property.TARGET_POSITION, new Tizen.NUI.PropertyValue(value));
\r
433 internal Matrix ProjectionMatrix
\r
437 Matrix temp = new Matrix();
\r
438 GetProperty(CameraActor.Property.PROJECTION_MATRIX).Get(temp);
\r
443 internal Matrix ViewMatrix
\r
447 Matrix temp = new Matrix();
\r
448 GetProperty(CameraActor.Property.VIEW_MATRIX).Get(temp);
\r
452 public bool InvertYAxis
\r
457 GetProperty(CameraActor.Property.INVERT_Y_AXIS).Get(ref temp);
\r
462 SetProperty(CameraActor.Property.INVERT_Y_AXIS, new Tizen.NUI.PropertyValue(value));
\r
468 public enum CameraType
\r
474 public enum ProjectionMode
\r
476 PerspectiveProjection,
\r
477 OrthographicProjection
\r