Class ModelNode

Definition

Namespace:
Tizen.NUI.Scene3D
Assembly:
Tizen.NUI.Scene3D.dll

ModelNode is a class for representing the Node of Model in Scene3D.

C#
Copy
public class ModelNode : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements
Remarks

ModelNode contains multiple ModelPrimitives and allows easy access and modification of Material information that ModelPrimitive has. If a 3D format file is loaded by Model, ModelNode is created internally to construct the model. In addition, you can create a Custom ModelNode using ModelPrimitive and Material directly and add it to Model.

Copy
ModelNode modelNode = new ModelNode(); ModelPrimitive modelPrimitive = new ModelPrimitive(); modelNode.AddModelPrimitive(modelPrimitive); Material material = new Material; modelPrimitive.Material = material;

Constructors

View Source

ModelNode()

Create an initialized ModelNode.

Declaration
C#
Copy
public ModelNode()
View Source

ModelNode(ModelNode)

Copy constructor.

Declaration
C#
Copy
public ModelNode(ModelNode modelNode)
Parameters
Type Name Description
ModelNode modelNode

Source object to copy.

Properties

View Source

ModelPrimitiveCount

Get the number of ModelPrimitive of this ModelNode.

Declaration
C#
Copy
public uint ModelPrimitiveCount { get; }
Property Value
Type Description
UInt32

Methods

View Source

AddModelPrimitive(ModelPrimitive)

Adds a ModelPrimitive object to the ModelNode object.

Declaration
C#
Copy
public void AddModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type Name Description
ModelPrimitive modelPrimitive

The ModelPrimitive object to add.

View Source

FindChildModelNodeByName(String)

Returns a child ModelNode object with a name that matches nodeName.

Declaration
C#
Copy
public ModelNode FindChildModelNodeByName(string nodeName)
Parameters
Type Name Description
String nodeName

The name of the child ModelNode object you want to find.

Returns
Type Description
ModelNode

Child ModelNode that has nodeName as name.

View Source

GetModelPrimitive(UInt32)

Gets the ModelPrimitive object at the specified index.

Declaration
C#
Copy
public ModelPrimitive GetModelPrimitive(uint index)
Parameters
Type Name Description
UInt32 index

The index of the ModelPrimitive object to get.

Returns
Type Description
ModelPrimitive

The ModelPrimitive object at the specified index.

View Source

ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

Release swigCPtr.

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
System.Runtime.InteropServices.HandleRef swigCPtr
View Source

RemoveModelPrimitive(UInt32)

Removes a ModelPrimitive object from the ModelNode object at the specified index.

Declaration
C#
Copy
public void RemoveModelPrimitive(uint index)
Parameters
Type Name Description
UInt32 index

The index of the ModelPrimitive object to remove.

View Source

RemoveModelPrimitive(ModelPrimitive)

Removes a ModelPrimitive object from the ModelNode object.

Declaration
C#
Copy
public void RemoveModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type Name Description
ModelPrimitive modelPrimitive

The ModelPrimitive object to remove.

Implements

Extension Methods