2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-scene3d/public-api/model-motion/motion-index/blend-shape-index.h>
20 #include <dali-scene3d/public-api/model-motion/motion-index/motion-index.h>
21 #include <dali-scene3d/public-api/model-motion/motion-index/motion-property-index.h>
22 #include <dali-scene3d/public-api/model-motion/motion-index/motion-transform-index.h>
25 #include <dali-csharp-binder/common/common.h>
34 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_MotionIndex_SWIG_1(void* csMotionIndex)
36 Dali::Scene3D::MotionIndex* motionIndex = (Dali::Scene3D::MotionIndex*)csMotionIndex;
37 Dali::Scene3D::MotionIndex* result = 0;
41 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionIndex const & type is null", 0);
47 result = (Dali::Scene3D::MotionIndex*)new Dali::Scene3D::MotionIndex((Dali::Scene3D::MotionIndex const&)*motionIndex);
49 CALL_CATCH_EXCEPTION(0);
55 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MotionIndex(void* csMotionIndex)
57 Dali::Scene3D::MotionIndex* motionIndex = (Dali::Scene3D::MotionIndex*)csMotionIndex;
63 CALL_CATCH_EXCEPTION();
67 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionIndex_Assign(void* csDestination, void* csSource)
69 Dali::Scene3D::MotionIndex* destination = (Dali::Scene3D::MotionIndex*)csDestination;
70 Dali::Scene3D::MotionIndex* source = (Dali::Scene3D::MotionIndex*)csSource;
71 Dali::Scene3D::MotionIndex* result = 0;
75 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionIndex const & type is null", 0);
81 result = (Dali::Scene3D::MotionIndex*)&(destination)->operator=((Dali::Scene3D::MotionIndex const&)*source);
83 CALL_CATCH_EXCEPTION(0);
90 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionIndex_SetModelNodeId(void* csMotionIndex, void* csPropertyKey)
92 Dali::Scene3D::MotionIndex* motionIndex = (Dali::Scene3D::MotionIndex*)csMotionIndex;
93 Dali::Property::Key* propertyKey = (Dali::Property::Key*)csPropertyKey;
97 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionIndex", 0);
102 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Key const & type is null", 0);
108 motionIndex->SetModelNodeId(*propertyKey);
110 CALL_CATCH_EXCEPTION();
114 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionIndex_GetModelNodeId(void* csMotionIndex)
116 Dali::Scene3D::MotionIndex* motionIndex = (Dali::Scene3D::MotionIndex*)csMotionIndex;
117 Dali::Property::Key result = Dali::Property::INVALID_KEY;
121 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionIndex", 0);
127 result = motionIndex->GetModelNodeId();
129 CALL_CATCH_EXCEPTION(0);
132 return new Dali::Property::Key((Dali::Property::Key const &)result);
137 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_BlendShapeIndex_New_SWIG_0()
139 Dali::Scene3D::BlendShapeIndex result;
144 result = Dali::Scene3D::BlendShapeIndex::New();
146 CALL_CATCH_EXCEPTION(0);
149 return new Dali::Scene3D::BlendShapeIndex((const Dali::Scene3D::BlendShapeIndex&)result);
152 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_BlendShapeIndex_New_SWIG_1(void* csBlendShapePropertyKey)
154 Dali::Property::Key* blendShapePropertyKey = (Dali::Property::Key*)csBlendShapePropertyKey;
155 Dali::Scene3D::BlendShapeIndex result;
157 if(!blendShapePropertyKey)
159 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Key const & type is null", 0);
165 result = Dali::Scene3D::BlendShapeIndex::New(*blendShapePropertyKey);
167 CALL_CATCH_EXCEPTION(0);
170 return new Dali::Scene3D::BlendShapeIndex((const Dali::Scene3D::BlendShapeIndex&)result);
173 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_BlendShapeIndex_New_SWIG_2(void* csModelNodePropertKey, void* csBlendShapePropertyKey)
175 Dali::Property::Key* modelNodePropertyKey = (Dali::Property::Key*)csModelNodePropertKey;
176 Dali::Property::Key* blendShapePropertyKey = (Dali::Property::Key*)csBlendShapePropertyKey;
177 Dali::Scene3D::BlendShapeIndex result;
179 if(!modelNodePropertyKey)
181 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "modelNodePropertyKey Dali::Property::Key const & type is null", 0);
184 if(!blendShapePropertyKey)
186 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "blendShapePropertyKey Dali::Property::Key const & type is null", 0);
192 result = Dali::Scene3D::BlendShapeIndex::New(*modelNodePropertyKey, *blendShapePropertyKey);
194 CALL_CATCH_EXCEPTION(0);
197 return new Dali::Scene3D::BlendShapeIndex((const Dali::Scene3D::BlendShapeIndex&)result);
201 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_BlendShapeIndex_SWIG_1(void* csBlendShapeIndex)
203 Dali::Scene3D::BlendShapeIndex* blendShapeIndex = (Dali::Scene3D::BlendShapeIndex*)csBlendShapeIndex;
204 Dali::Scene3D::BlendShapeIndex* result = 0;
208 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::BlendShapeIndex const & type is null", 0);
214 result = (Dali::Scene3D::BlendShapeIndex*)new Dali::Scene3D::BlendShapeIndex((Dali::Scene3D::BlendShapeIndex const&)*blendShapeIndex);
216 CALL_CATCH_EXCEPTION(0);
219 return (void*)result;
222 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_BlendShapeIndex(void* csBlendShapeIndex)
224 Dali::Scene3D::BlendShapeIndex* blendShapeIndex = (Dali::Scene3D::BlendShapeIndex*)csBlendShapeIndex;
228 delete blendShapeIndex;
230 CALL_CATCH_EXCEPTION();
234 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_BlendShapeIndex_Assign(void* csDestination, void* csSource)
236 Dali::Scene3D::BlendShapeIndex* destination = (Dali::Scene3D::BlendShapeIndex*)csDestination;
237 Dali::Scene3D::BlendShapeIndex* source = (Dali::Scene3D::BlendShapeIndex*)csSource;
238 Dali::Scene3D::BlendShapeIndex* result = 0;
242 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::BlendShapeIndex const & type is null", 0);
248 result = (Dali::Scene3D::BlendShapeIndex*)&(destination)->operator=((Dali::Scene3D::BlendShapeIndex const&)*source);
250 CALL_CATCH_EXCEPTION(0);
253 return (void*)result;
257 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_BlendShapeIndex_SetBlendShapeId(void* csBlendShapeIndex, void* csBlendShapePropertyKey)
259 Dali::Scene3D::BlendShapeIndex* blendShapeIndex = (Dali::Scene3D::BlendShapeIndex*)csBlendShapeIndex;
260 Dali::Property::Key* blendShapePropertyKey = (Dali::Property::Key*)csBlendShapePropertyKey;
264 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::BlendShapeIndex const & type is null", 0);
267 if(!blendShapePropertyKey)
269 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Key const & type is null", 0);
275 blendShapeIndex->SetBlendShapeId(*blendShapePropertyKey);
277 CALL_CATCH_EXCEPTION();
281 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_BlendShapeIndex_GetBlendShapeId(void* csBlendShapeIndex)
283 Dali::Scene3D::BlendShapeIndex* blendShapeIndex = (Dali::Scene3D::BlendShapeIndex*)csBlendShapeIndex;
284 Dali::Property::Key result = Dali::Property::INVALID_KEY;
288 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::BlendShapeIndex const & type is null", 0);
294 result = blendShapeIndex->GetBlendShapeId();
296 CALL_CATCH_EXCEPTION(0);
299 return new Dali::Property::Key((Dali::Property::Key const &)result);
302 // MotionPropertyIndex
304 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionPropertyIndex_New_SWIG_0()
306 Dali::Scene3D::MotionPropertyIndex result;
311 result = Dali::Scene3D::MotionPropertyIndex::New();
313 CALL_CATCH_EXCEPTION(0);
316 return new Dali::Scene3D::MotionPropertyIndex((const Dali::Scene3D::MotionPropertyIndex&)result);
319 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionPropertyIndex_New_SWIG_1(void* csModelNodePropertKey, void* csPropertyKey)
321 Dali::Property::Key* modelNodePropertyKey = (Dali::Property::Key*)csModelNodePropertKey;
322 Dali::Property::Key* propertyKey = (Dali::Property::Key*)csPropertyKey;
323 Dali::Scene3D::MotionPropertyIndex result;
325 if(!modelNodePropertyKey)
327 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "modelNodePropertyKey Dali::Property::Key const & type is null", 0);
332 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "propertyKey Dali::Property::Key const & type is null", 0);
338 result = Dali::Scene3D::MotionPropertyIndex::New(*modelNodePropertyKey, *propertyKey);
340 CALL_CATCH_EXCEPTION(0);
343 return new Dali::Scene3D::MotionPropertyIndex((const Dali::Scene3D::MotionPropertyIndex&)result);
347 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_MotionPropertyIndex_SWIG_1(void* csMotionPropertyIndex)
349 Dali::Scene3D::MotionPropertyIndex* motionPropertyIndex = (Dali::Scene3D::MotionPropertyIndex*)csMotionPropertyIndex;
350 Dali::Scene3D::MotionPropertyIndex* result = 0;
352 if(!motionPropertyIndex)
354 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionPropertyIndex const & type is null", 0);
360 result = (Dali::Scene3D::MotionPropertyIndex*)new Dali::Scene3D::MotionPropertyIndex((Dali::Scene3D::MotionPropertyIndex const&)*motionPropertyIndex);
362 CALL_CATCH_EXCEPTION(0);
365 return (void*)result;
368 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MotionPropertyIndex(void* csMotionPropertyIndex)
370 Dali::Scene3D::MotionPropertyIndex* motionPropertyIndex = (Dali::Scene3D::MotionPropertyIndex*)csMotionPropertyIndex;
374 delete motionPropertyIndex;
376 CALL_CATCH_EXCEPTION();
380 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionPropertyIndex_Assign(void* csDestination, void* csSource)
382 Dali::Scene3D::MotionPropertyIndex* destination = (Dali::Scene3D::MotionPropertyIndex*)csDestination;
383 Dali::Scene3D::MotionPropertyIndex* source = (Dali::Scene3D::MotionPropertyIndex*)csSource;
384 Dali::Scene3D::MotionPropertyIndex* result = 0;
388 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionPropertyIndex const & type is null", 0);
394 result = (Dali::Scene3D::MotionPropertyIndex*)&(destination)->operator=((Dali::Scene3D::MotionPropertyIndex const&)*source);
396 CALL_CATCH_EXCEPTION(0);
399 return (void*)result;
403 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionPropertyIndex_SetPropertyId(void* csMotionPropertyIndex, void* csPropertyKey)
405 Dali::Scene3D::MotionPropertyIndex* motionPropertyIndex = (Dali::Scene3D::MotionPropertyIndex*)csMotionPropertyIndex;
406 Dali::Property::Key* propertyKey = (Dali::Property::Key*)csPropertyKey;
408 if(!motionPropertyIndex)
410 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionPropertyIndex const & type is null", 0);
415 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Key const & type is null", 0);
421 motionPropertyIndex->SetPropertyId(*propertyKey);
423 CALL_CATCH_EXCEPTION();
427 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionPropertyIndex_GetPropertyId(void* csMotionPropertyIndex)
429 Dali::Scene3D::MotionPropertyIndex* motionPropertyIndex = (Dali::Scene3D::MotionPropertyIndex*)csMotionPropertyIndex;
430 Dali::Property::Key result = Dali::Property::INVALID_KEY;
432 if(!motionPropertyIndex)
434 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionPropertyIndex const & type is null", 0);
440 result = motionPropertyIndex->GetPropertyId();
442 CALL_CATCH_EXCEPTION(0);
445 return new Dali::Property::Key((Dali::Property::Key const &)result);
448 // MotionTransformIndex
450 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionTransformIndex_New_SWIG_0()
452 Dali::Scene3D::MotionTransformIndex result;
457 result = Dali::Scene3D::MotionTransformIndex::New();
459 CALL_CATCH_EXCEPTION(0);
462 return new Dali::Scene3D::MotionTransformIndex((const Dali::Scene3D::MotionTransformIndex&)result);
465 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionTransformIndex_New_SWIG_1(void* csModelNodePropertKey, int csTransformType)
467 Dali::Property::Key* modelNodePropertyKey = (Dali::Property::Key*)csModelNodePropertKey;
468 Dali::Scene3D::MotionTransformIndex result;
470 if(!modelNodePropertyKey)
472 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "modelNodePropertyKey Dali::Property::Key const & type is null", 0);
478 result = Dali::Scene3D::MotionTransformIndex::New(*modelNodePropertyKey, static_cast<Dali::Scene3D::MotionTransformIndex::TransformType>(csTransformType));
480 CALL_CATCH_EXCEPTION(0);
483 return new Dali::Scene3D::MotionTransformIndex((const Dali::Scene3D::MotionTransformIndex&)result);
487 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_MotionTransformIndex_SWIG_1(void* csMotionTransformIndex)
489 Dali::Scene3D::MotionTransformIndex* motionTransformIndex = (Dali::Scene3D::MotionTransformIndex*)csMotionTransformIndex;
490 Dali::Scene3D::MotionTransformIndex* result = 0;
492 if(!motionTransformIndex)
494 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionTransformIndex const & type is null", 0);
500 result = (Dali::Scene3D::MotionTransformIndex*)new Dali::Scene3D::MotionTransformIndex((Dali::Scene3D::MotionTransformIndex const&)*motionTransformIndex);
502 CALL_CATCH_EXCEPTION(0);
505 return (void*)result;
508 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MotionTransformIndex(void* csMotionTransformIndex)
510 Dali::Scene3D::MotionTransformIndex* motionTransformIndex = (Dali::Scene3D::MotionTransformIndex*)csMotionTransformIndex;
514 delete motionTransformIndex;
516 CALL_CATCH_EXCEPTION();
520 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionTransformIndex_Assign(void* csDestination, void* csSource)
522 Dali::Scene3D::MotionTransformIndex* destination = (Dali::Scene3D::MotionTransformIndex*)csDestination;
523 Dali::Scene3D::MotionTransformIndex* source = (Dali::Scene3D::MotionTransformIndex*)csSource;
524 Dali::Scene3D::MotionTransformIndex* result = 0;
528 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionTransformIndex const & type is null", 0);
534 result = (Dali::Scene3D::MotionTransformIndex*)&(destination)->operator=((Dali::Scene3D::MotionTransformIndex const&)*source);
536 CALL_CATCH_EXCEPTION(0);
539 return (void*)result;
543 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionTransformIndex_SetTransformType(void* csMotionTransformIndex, int csTransformType)
545 Dali::Scene3D::MotionTransformIndex* motionTransformIndex = (Dali::Scene3D::MotionTransformIndex*)csMotionTransformIndex;
547 if(!motionTransformIndex)
549 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionTransformIndex const & type is null", 0);
555 motionTransformIndex->SetTransformType(static_cast<Dali::Scene3D::MotionTransformIndex::TransformType>(csTransformType));
557 CALL_CATCH_EXCEPTION();
561 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MotionTransformIndex_GetTransformType(void* csMotionTransformIndex)
563 Dali::Scene3D::MotionTransformIndex* motionTransformIndex = (Dali::Scene3D::MotionTransformIndex*)csMotionTransformIndex;
566 if(!motionTransformIndex)
568 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionTransformIndex const & type is null", 0);
574 result = static_cast<int>(motionTransformIndex->GetTransformType());
576 CALL_CATCH_EXCEPTION(0);