Assimp  v4.1. (December 2018)
glTF2::Node Struct Reference

Inherits glTF2::Object.

Public Member Functions

 Node ()
 
void Read (Value &obj, Asset &r)
 
- Public Member Functions inherited from glTF2::Object
virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Public Attributes

Ref< Cameracamera
 
std::vector< Ref< Node > > children
 
std::string jointName
 Name used when this node is a joint in a skin. More...
 
Nullable< mat4 > matrix
 
std::vector< Ref< Mesh > > meshes
 
Ref< Nodeparent
 This is not part of the glTF specification. Used as a helper. More...
 
Nullable< vec4 > rotation
 
Nullable< vec3 > scale
 
std::vector< Ref< Node > > skeletons
 The ID of skeleton nodes. Each of which is the root of a node hierarchy. More...
 
Ref< Skinskin
 The ID of the skin referenced by this node. More...
 
Nullable< vec3 > translation
 
- Public Attributes inherited from glTF2::Object
std::string id
 The globally unique ID used to reference this object. More...
 
int index
 The index of this object within its property container. More...
 
std::string name
 The user-defined name of this object. More...
 
int oIndex
 The original index of this object defined in the JSON. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF2::Object
static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Constructor & Destructor Documentation

◆ Node()

glTF2::Node::Node ( )
inline

Member Function Documentation

◆ Read()

void glTF2::Node::Read ( Value obj,
Asset r 
)
inline

Member Data Documentation

◆ camera

Ref<Camera> glTF2::Node::camera

◆ children

std::vector< Ref<Node> > glTF2::Node::children

◆ jointName

std::string glTF2::Node::jointName

Name used when this node is a joint in a skin.

◆ matrix

Nullable<mat4> glTF2::Node::matrix

◆ meshes

std::vector< Ref<Mesh> > glTF2::Node::meshes

◆ parent

Ref<Node> glTF2::Node::parent

This is not part of the glTF specification. Used as a helper.

◆ rotation

Nullable<vec4> glTF2::Node::rotation

◆ scale

Nullable<vec3> glTF2::Node::scale

◆ skeletons

std::vector< Ref<Node> > glTF2::Node::skeletons

The ID of skeleton nodes. Each of which is the root of a node hierarchy.

◆ skin

Ref<Skin> glTF2::Node::skin

The ID of the skin referenced by this node.

◆ translation

Nullable<vec3> glTF2::Node::translation

The documentation for this struct was generated from the following files: