Panda3D
|
Object that interfaces with the COLLADA DOM library and loads the COLLADA structures into Panda nodes. More...
#include "colladaLoader.h"
Public Member Functions | |
void | build_graph () |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node. More... | |
PT (ModelRoot) _root | |
bool | read (const Filename &filename) |
Reads from the indicated file. More... | |
Public Attributes | |
CoordinateSystem | _cs |
bool | _error |
Filename | _filename |
BamCacheRecord * | _record |
Object that interfaces with the COLLADA DOM library and loads the COLLADA structures into Panda nodes.
Definition at line 48 of file colladaLoader.h.
void ColladaLoader::build_graph | ( | ) |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node.
Definition at line 104 of file colladaLoader.cxx.
References GeomNode::add_geom(), ColladaPrimitive::from_dom(), LMatrix4f::ident_mat(), LVecBase3f::normalize(), LMatrix4f::rotate_mat(), LMatrix4f::scale_mat(), LMatrix4f::set_col(), PandaNode::set_tag(), and LMatrix4f::translate_mat().
Referenced by read().
bool ColladaLoader::read | ( | const Filename & | filename | ) |
Reads from the indicated file.
Definition at line 80 of file colladaLoader.cxx.
References build_graph(), and VirtualFileSystem::get_global_ptr().