Skip to content

Commit

Permalink
[NUI] Add ModelRoot Property in Model class
Browse files Browse the repository at this point in the history
 - Add ModelRoot Property to retrieve root ModelNode of the Model object.
 - Change parameter name of AddModelNode and RemoveModelNode to modelNode

Signed-off-by: seungho baek <[email protected]>
  • Loading branch information
bshsqa committed Jul 3, 2023
1 parent c43de73 commit 69a9ad9
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/Tizen.NUI.Scene3D/src/public/Controls/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,27 +149,40 @@ public float ImageBasedLightScaleFactor
}
}

/// <summary>
/// Retrieves root ModelNode of this Model.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
public ModelNode ModelRoot
{
get
{
return GetModelRoot();
}
}

/// <summary>
/// Adds modelNode to this Model.
/// </summary>
/// <param name="modelRoot">Root of a ModelNode tree</param>
/// <param name="modelNode">Root of a ModelNode tree</param>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
public void AddModelNode(ModelNode modelRoot)
public void AddModelNode(ModelNode modelNode)
{
Interop.Model.AddModelNode(SwigCPtr, ModelNode.getCPtr(modelRoot));
Interop.Model.AddModelNode(SwigCPtr, ModelNode.getCPtr(modelNode));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

/// <summary>
/// Removes modelNode from this Model.
/// </summary>
/// <param name="modelRoot">Root of a ModelNode tree to be removed</param>
/// <param name="modelNode">Root of a ModelNode tree to be removed</param>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
public void RemoveModelNode(ModelNode modelRoot)
public void RemoveModelNode(ModelNode modelNode)
{
Interop.Model.RemoveModelNode(SwigCPtr, ModelNode.getCPtr(modelRoot));
Interop.Model.RemoveModelNode(SwigCPtr, ModelNode.getCPtr(modelNode));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

Expand Down

0 comments on commit 69a9ad9

Please sign in to comment.