Node Class
Represents an element in the scene graph. A scene graph is a tree of Node objects. The tree management services are self contained in this class. Note the Aspose.3D SDK does not test the validity of the constructed scene graph. It is the responsibility of the caller to make sure that it does not generate cyclic graphs in a node hierarchy. Besides the tree management, this class defines all the properties required to describe the position of the object in the scene. This information include the basic Translation, Rotation and Scaling properties and the more advanced options for pivots, limits, and IK joints attributes such the stiffness and dampening. When it is first created, the Node object is "empty" (i.e: it is an object without any graphical representation that only contains the position information). In this state, it can be used to represent parents in the node tree structure but not much more. The normal use of this type of objects is to add them an entity that will specialize the node (see the "Entity"). The entity is an object in itself and is connected to the the Node. This also means that the same entity can be shared among multiple nodes. Camera, Light, Mesh, etc... are all entities and they all derived from the base class Entity.
Inheritance Hierarchy
SystemObject
  Aspose.ThreeDA3DObject
    Aspose.ThreeDSceneObject
      Aspose.ThreeDNode

Namespace: Aspose.ThreeD
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 21.4.0.0 (21.4)
Syntax
public class Node : SceneObject

The Node type exposes the following members.

Constructors
  NameDescription
Public methodNode
Initializes a new instance of the Node class.
Public methodNode(String)
Initializes a new instance of the Node class.
Public methodNode(String, Entity)
Initializes a new instance of the Node class.
Properties
  NameDescription
Public propertyAssetInfo
Per-node asset info
Public propertyChildNodes
Gets the children nodes.
Public propertyEntities
Gets all node entities.
Public propertyEntity
Gets or sets the first entity attached to this node, if sets, will clear other entities.
Public propertyExcluded
Gets or sets whether to exclude this node and all child nodes/entities during exporting.
Public propertyGlobalTransform
Gets the global transform.
Public propertyMaterial
Gets or sets the first material associated with this node, if sets, will clear other materials
Public propertyMaterials
Gets the materials associated with this node.
Public propertyMetaDatas
Gets the meta data defined in this node.
Public propertyName
Gets or sets the name.
(Inherited from A3DObject.)
Public propertyParentNode
Gets or sets the parent node.
Public propertyProperties
Gets the collection of all properties.
(Inherited from A3DObject.)
Public propertyScene
Gets the scene that this object belongs to
(Inherited from SceneObject.)
Public propertyTransform
Gets the local transform.
Public propertyVisible
Gets or sets to show the node
Methods
  NameDescription
Public methodAccept
Walks through all descendant nodes(including the current node) and call the visitor with the node. Visitor can break the walk-through by returning false
Public methodAddChildNode
Add a child node to this node
Public methodAddEntity
Add an entity to the node.
Public methodCreateChildNode
Creates a child node
Public methodCreateChildNode(String)
Create a new child node with given node name
Public methodCreateChildNode(Entity)
Create a new child node with given entity attached
Public methodCreateChildNode(String, Entity)
Create a new child node with given node name
Public methodCreateChildNode(String, Entity, Material)
Create a new child node with given node name, and attach specified entity and a material
Public methodEquals (Inherited from Object.)
Public methodEvaluateGlobalTransform
Evaluate the global transform, include the geometric transform or not.
Protected methodFinalize (Inherited from Object.)
Public methodFindProperty
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
(Inherited from A3DObject.)
Public methodGetBoundingBox
Calculate the bounding box of the node
Public methodGetChild(Int32)
Gets the child node at specified index.
Public methodGetChild(String)
Gets the child node with the specified name
Public methodGetEntityT
Public methodGetHashCode (Inherited from Object.)
Public methodGetProperty
Get the value of specified property
(Inherited from A3DObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveProperty(String)
Remove the specified property identified by name
(Inherited from A3DObject.)
Public methodRemoveProperty(Property)
Removes a dynamic property.
(Inherited from A3DObject.)
Public methodSelectObjects
Select multiple objects under current node using XPath-like query syntax.
Public methodSelectSingleObject
Select single object under current node using XPath-like query syntax.
Public methodSetProperty
Sets the value of specified property
(Inherited from A3DObject.)
Public methodToString
Gets the string representation of this node.
(Overrides ObjectToString.)
Fields
  NameDescription
Protected fieldname (Inherited from A3DObject.)
Protected fieldproperties (Inherited from A3DObject.)
See Also