Class NodeInfo
The node's content.
Namespace: Evergine.AssetSources.Nodes
Assembly: Evergine.Framework.dll
Syntax
public class NodeInfo
Constructors
NodeInfo()
Initializes a new instance of the NodeInfo class.
Declaration
public NodeInfo()
Fields
ChildIndices
Gets or sets the children.
Declaration
public int[] ChildIndices
Field Value
| Type | Description |
|---|---|
| int[] |
Mesh
Gets or sets the mesh content index.
Declaration
public int Mesh
Field Value
| Type | Description |
|---|---|
| int |
Name
Gets or sets the name.
Declaration
public string Name
Field Value
| Type | Description |
|---|---|
| string | The name. |
Orientation
The orientation.
Declaration
public Quaternion Orientation
Field Value
| Type | Description |
|---|---|
| Quaternion |
Parent
The parent node.
Declaration
public NodeInfo Parent
Field Value
| Type | Description |
|---|---|
| NodeInfo |
Scale
The scale.
Declaration
public Vector3 Scale
Field Value
| Type | Description |
|---|---|
| Vector3 |
Skin
Gets or sets the skin index.
Declaration
public int Skin
Field Value
| Type | Description |
|---|---|
| int |
Translation
The position.
Declaration
public Vector3 Translation
Field Value
| Type | Description |
|---|---|
| Vector3 |
Properties
AbsoluteTransform
Gets the absolute transformation matrix.
Declaration
public Matrix4x4 AbsoluteTransform { get; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4 |
MorphTargetWeights
Gets or sets the default morph target weights for this node.
Declaration
public float[] MorphTargetWeights { get; set; }
Property Value
| Type | Description |
|---|---|
| float[] |
NodePath
Gets the path of this node.
Declaration
public string NodePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Transform
Gets the transformation matrix.
Declaration
public Matrix4x4 Transform { get; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4 |
Methods
Read(BinaryReader)
Reads the node tree.
Declaration
public static NodeInfo Read(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader. |
Returns
| Type | Description |
|---|---|
| NodeInfo | The root node. |
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation. |
Overrides
Write(BinaryWriter)
Writes the node hierarchy to the stream.
Declaration
public void Write(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The binary writer. |