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

    CastShadow(bool)

    Sets whether this Model casts shadow or not. If it is true, this model is drawn on Shadow Map. Note: This method affects all of the child ModelNode. However, same property of each child ModelNode can be changed respectively and it not changes parent's property.

    Declaration
    public void CastShadow(bool castShadow)
    Parameters
    Type Name Description
    bool castShadow

    Whether this Model casts shadow or not.

    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

    IsShadowCasting()

    Retrieves whether the Model casts shadow or not for Light. Note: IBL does not cast any shadow.

    Declaration
    public bool IsShadowCasting()
    Returns
    Type Description
    bool

    True if this model casts shadow.

    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

    IsShadowReceiving()

    Retrieves whether the Model receives shadow or not for Light If it is true, this model is drawn on Shadow Map.

    Declaration
    public bool IsShadowReceiving()
    Returns
    Type Description
    bool

    True if this model receives shadow.

    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

    ReceiveShadow(bool)

    Sets whether this Model receives shadow or not. If it is true, shadows are drawn on this model. Note: This method affects all of the child ModelNode. However, same property of each child ModelNode can be changed respectively and it not changes parent's property.

    Declaration
    public void ReceiveShadow(bool receiveShadow)
    Parameters
    Type Name Description
    bool receiveShadow

    Whether this Model receives shadow or not.

    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

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    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