Assimp  v4.1. (December 2018)
jassimp.AiNode Class Reference

A node in the imported hierarchy. More...

Public Member Functions

AiNode findNode (String name)
 Searches the node hierarchy below (and including) this node for a node with the specified name. More...
 
List< AiNodegetChildren ()
 Returns the children of this node. More...
 
int[] getMeshes ()
 Returns the meshes referenced by this node. More...
 
Map< String, AiMetadataEntrygetMetadata ()
 Returns the metadata entries for this node. More...
 
String getName ()
 Returns the name of this node. More...
 
int getNumChildren ()
 Returns the number of child nodes. More...
 
int getNumMeshes ()
 Returns the number of meshes references by this node. More...
 
AiNode getParent ()
 Returns the parent node. More...
 

Detailed Description

A node in the imported hierarchy.

Each node has name, a parent node (except for the root node), a transformation relative to its parent and possibly several child nodes. Simple file formats don't support hierarchical structures - for these formats the imported scene consists of only a single root node without children.

Member Function Documentation

◆ findNode()

AiNode jassimp.AiNode.findNode ( String  name)
inline

Searches the node hierarchy below (and including) this node for a node with the specified name.

Parameters
namethe name to look for
Returns
the first node with the given name, or null if no such node exists

◆ getChildren()

List<AiNode> jassimp.AiNode.getChildren ( )
inline

Returns the children of this node.

Returns
the children, or an empty list if the node has no children

◆ getMeshes()

int [] jassimp.AiNode.getMeshes ( )
inline

Returns the meshes referenced by this node.

Each entry is an index into the mesh list stored in AiScene.

Returns
an array of indices

◆ getMetadata()

Map<String, AiMetadataEntry> jassimp.AiNode.getMetadata ( )
inline

Returns the metadata entries for this node.

Consult the original Doxygen for importer_notes to see which formats have metadata and what to expect.

Returns
A map of metadata names to entries.

◆ getName()

String jassimp.AiNode.getName ( )
inline

Returns the name of this node.

Returns
the name

◆ getNumChildren()

int jassimp.AiNode.getNumChildren ( )
inline

Returns the number of child nodes.

This method exists for compatibility reasons with the native assimp API. The returned value is identical to getChildren().size()

Returns
the number of child nodes

◆ getNumMeshes()

int jassimp.AiNode.getNumMeshes ( )
inline

Returns the number of meshes references by this node.

This method exists for compatibility with the native assimp API. The returned value is identical to getMeshes().length

Returns
the number of references

◆ getParent()

AiNode jassimp.AiNode.getParent ( )
inline

Returns the parent node.

Returns
the parent, or null of the node has no parent

The documentation for this class was generated from the following file: