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#Copypublic 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.
CopyModelNode modelNode = new ModelNode(); ModelPrimitive modelPrimitive = new ModelPrimitive(); modelNode.AddModelPrimitive(modelPrimitive); Material material = new Material; modelPrimitive.Material = material;
Constructors
Declaration
C#Copypublic ModelNode()
Declaration
C#Copypublic ModelNode(ModelNode modelNode)
Parameters
Type | Name | Description |
---|---|---|
ModelNode | modelNode | Source object to copy. |
Properties
Declaration
C#Copypublic uint ModelPrimitiveCount { get; }
Property Value
Type | Description |
---|---|
UInt32 |
Methods
Declaration
C#Copypublic void AddModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | The ModelPrimitive object to add. |
FindChildModelNodeByName(String)
Returns a child ModelNode object with a name that matches nodeName.
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copyprotected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.HandleRef | swigCPtr |
RemoveModelPrimitive(UInt32)
Removes a ModelPrimitive object from the ModelNode object at the specified index.
Declaration
C#Copypublic void RemoveModelPrimitive(uint index)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | The index of the ModelPrimitive object to remove. |
RemoveModelPrimitive(ModelPrimitive)
Removes a ModelPrimitive object from the ModelNode object.
Declaration
C#Copypublic void RemoveModelPrimitive(ModelPrimitive modelPrimitive)
Parameters
Type | Name | Description |
---|---|---|
ModelPrimitive | modelPrimitive | The ModelPrimitive object to remove. |