1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
29 public class CameraActor : Actor {
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
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);
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;
44 public override void Dispose() {
46 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 NDalicPINVOKE.delete_CameraActor(swigCPtr);
51 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53 global::System.GC.SuppressFinalize(this);
58 public class Property : global::System.IDisposable {
59 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
60 protected bool swigCMemOwn;
62 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
63 swigCMemOwn = cMemoryOwn;
64 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
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;
75 public virtual void Dispose() {
77 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
80 NDalicPINVOKE.delete_CameraActor_Property(swigCPtr);
82 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 global::System.GC.SuppressFinalize(this);
88 public Property() : this(NDalicPINVOKE.new_CameraActor_Property(), true) {
89 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
109 public CameraActor () : this (NDalicPINVOKE.CameraActor_New__SWIG_0(), true) {
110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
113 public CameraActor (Vector2 size) : this (NDalicPINVOKE.CameraActor_New__SWIG_1(Vector2.getCPtr(size)), true) {
114 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
123 public CameraActor(CameraActor copy) : this(NDalicPINVOKE.new_CameraActor__SWIG_1(CameraActor.getCPtr(copy)), true) {
124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
133 public void SetType(CameraType type) {
134 NDalicPINVOKE.CameraActor_SetType(swigCPtr, (int)type);
135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
138 public CameraType GetType() {
139 CameraType ret = (CameraType)NDalicPINVOKE.CameraActor_GetType(swigCPtr);
140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144 public void SetProjectionMode(ProjectionMode mode) {
145 NDalicPINVOKE.CameraActor_SetProjectionMode(swigCPtr, (int)mode);
146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149 public ProjectionMode GetProjectionMode() {
150 ProjectionMode ret = (ProjectionMode)NDalicPINVOKE.CameraActor_GetProjectionMode(swigCPtr);
151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155 public void SetFieldOfView(float fieldOfView) {
156 NDalicPINVOKE.CameraActor_SetFieldOfView(swigCPtr, fieldOfView);
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160 public float GetFieldOfView() {
161 float ret = NDalicPINVOKE.CameraActor_GetFieldOfView(swigCPtr);
162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166 public void SetAspectRatio(float aspectRatio) {
167 NDalicPINVOKE.CameraActor_SetAspectRatio(swigCPtr, aspectRatio);
168 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
171 public float GetAspectRatio() {
172 float ret = NDalicPINVOKE.CameraActor_GetAspectRatio(swigCPtr);
173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
177 public void SetNearClippingPlane(float nearClippingPlane) {
178 NDalicPINVOKE.CameraActor_SetNearClippingPlane(swigCPtr, nearClippingPlane);
179 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182 public float GetNearClippingPlane() {
183 float ret = NDalicPINVOKE.CameraActor_GetNearClippingPlane(swigCPtr);
184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188 public void SetFarClippingPlane(float farClippingPlane) {
189 NDalicPINVOKE.CameraActor_SetFarClippingPlane(swigCPtr, farClippingPlane);
190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
193 public float GetFarClippingPlane() {
194 float ret = NDalicPINVOKE.CameraActor_GetFarClippingPlane(swigCPtr);
195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
199 public void SetTargetPosition(Vector3 targetPosition) {
200 NDalicPINVOKE.CameraActor_SetTargetPosition(swigCPtr, Vector3.getCPtr(targetPosition));
201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 public Vector3 GetTargetPosition() {
205 Vector3 ret = new Vector3(NDalicPINVOKE.CameraActor_GetTargetPosition(swigCPtr), true);
206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210 public void SetInvertYAxis(bool invertYAxis) {
211 NDalicPINVOKE.CameraActor_SetInvertYAxis(swigCPtr, invertYAxis);
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 public bool GetInvertYAxis() {
216 bool ret = NDalicPINVOKE.CameraActor_GetInvertYAxis(swigCPtr);
217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221 public void SetPerspectiveProjection(Vector2 size) {
222 NDalicPINVOKE.CameraActor_SetPerspectiveProjection(swigCPtr, Vector2.getCPtr(size));
223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
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();
241 GetProperty( CameraActor.Property.TYPE).Get( out temp );
246 SetProperty( CameraActor.Property.TYPE, new Dali.Property.Value( value ) );
249 public string ProjectionMode
254 GetProperty( CameraActor.Property.PROJECTION_MODE).Get( out temp );
259 SetProperty( CameraActor.Property.PROJECTION_MODE, new Dali.Property.Value( value ) );
262 public float FieldOfView
267 GetProperty( CameraActor.Property.FIELD_OF_VIEW).Get( ref temp );
272 SetProperty( CameraActor.Property.FIELD_OF_VIEW, new Dali.Property.Value( value ) );
275 public float AspectRatio
280 GetProperty( CameraActor.Property.ASPECT_RATIO).Get( ref temp );
285 SetProperty( CameraActor.Property.ASPECT_RATIO, new Dali.Property.Value( value ) );
288 public float NearPlaneDistance
293 GetProperty( CameraActor.Property.NEAR_PLANE_DISTANCE).Get( ref temp );
298 SetProperty( CameraActor.Property.NEAR_PLANE_DISTANCE, new Dali.Property.Value( value ) );
301 public float FarPlaneDistance
306 GetProperty( CameraActor.Property.FAR_PLANE_DISTANCE).Get( ref temp );
311 SetProperty( CameraActor.Property.FAR_PLANE_DISTANCE, new Dali.Property.Value( value ) );
314 public float LeftPlaneDistance
319 GetProperty( CameraActor.Property.LEFT_PLANE_DISTANCE).Get( ref temp );
324 SetProperty( CameraActor.Property.LEFT_PLANE_DISTANCE, new Dali.Property.Value( value ) );
327 public float RightPlaneDistance
332 GetProperty( CameraActor.Property.RIGHT_PLANE_DISTANCE).Get( ref temp );
337 SetProperty( CameraActor.Property.RIGHT_PLANE_DISTANCE, new Dali.Property.Value( value ) );
340 public float TopPlaneDistance
345 GetProperty( CameraActor.Property.TOP_PLANE_DISTANCE).Get( ref temp );
350 SetProperty( CameraActor.Property.TOP_PLANE_DISTANCE, new Dali.Property.Value( value ) );
353 public float BottomPlaneDistance
358 GetProperty( CameraActor.Property.BOTTOM_PLANE_DISTANCE).Get( ref temp );
363 SetProperty( CameraActor.Property.BOTTOM_PLANE_DISTANCE, new Dali.Property.Value( value ) );
366 public Vector3 TargetPosition
370 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
371 GetProperty( CameraActor.Property.TARGET_POSITION).Get( temp );
376 SetProperty( CameraActor.Property.TARGET_POSITION, new Dali.Property.Value( value ) );
379 public Matrix ProjectionMatrix
383 Matrix temp = new Matrix();
384 GetProperty( CameraActor.Property.PROJECTION_MATRIX).Get( temp );
387 } public Matrix ViewMatrix
391 Matrix temp = new Matrix();
392 GetProperty( CameraActor.Property.VIEW_MATRIX).Get( temp );
395 } public bool InvertYAxis
400 GetProperty( CameraActor.Property.INVERT_Y_AXIS).Get( ref temp );
405 SetProperty( CameraActor.Property.INVERT_Y_AXIS, new Dali.Property.Value( value ) );