Class ModelNode

    Definition

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

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

    public class ModelNode : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ModelNode
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider
    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.

    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
    public ModelNode()
    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.

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

    ModelNode(ModelNode)

    Copy constructor.

    Declaration
    public ModelNode(ModelNode modelNode)
    Parameters
    Type Name Description
    ModelNode modelNode

    Source object to copy.

    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.

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

    Properties

    View Source

    ModelPrimitiveCount

    Get the number of ModelPrimitive of this ModelNode.

    Declaration
    public uint ModelPrimitiveCount { get; }
    Property Value
    Type Description
    uint
    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.

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

    Methods

    View Source

    AddModelPrimitive(ModelPrimitive)

    Adds a ModelPrimitive object to the ModelNode object.

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

    The ModelPrimitive object to add.

    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.

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

    FindChildModelNodeByName(string)

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

    Declaration
    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.

    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.

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

    GetModelPrimitive(uint)

    Gets the ModelPrimitive object at the specified index.

    Declaration
    public ModelPrimitive GetModelPrimitive(uint index)
    Parameters
    Type Name Description
    uint index

    The index of the ModelPrimitive object to get.

    Returns
    Type Description
    ModelPrimitive

    The ModelPrimitive object at the specified index.

    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.

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

    ReleaseSwigCPtr(HandleRef)

    Release swigCPtr.

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    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.

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

    RemoveModelPrimitive(uint)

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

    Declaration
    public void RemoveModelPrimitive(uint index)
    Parameters
    Type Name Description
    uint index

    The index of the ModelPrimitive object to remove.

    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.

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

    RemoveModelPrimitive(ModelPrimitive)

    Removes a ModelPrimitive object from the ModelNode object.

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

    The ModelPrimitive object to remove.

    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.

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

    SetColliderMesh(List<Vector3>, List<Vector3>, List<int>)

    Sets collider mesh on current node

    Declaration
    public void SetColliderMesh(List<Vector3> vertexList, List<Vector3> normalList, List<int> indexList)
    Parameters
    Type Name Description
    List<><Vector3> vertexList

    List of vertices

    List<><Vector3> normalList

    List of vertex normals

    List<><int> indexList

    List of mesh indices

    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.

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

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX