Panda3D
|
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures. More...
#include "assimpLoader.h"
Public Member Functions | |
void | build_graph () |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node. | |
void | get_extensions (std::string &ext) const |
Returns a space-separated list of extensions that Assimp can load, without the leading dots. | |
PT (ModelRoot) _root | |
bool | read (const Filename &filename) |
Reads from the indicated file. | |
![]() | |
TypedReferenceCount (const TypedReferenceCount ©) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | operator= (const TypedReferenceCount ©) |
![]() | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
TypedObject & | operator= (const TypedObject ©)=default |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
![]() | |
int | get_ref_count () const |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. | |
void | ref () const |
Explicitly increments the reference count. | |
bool | ref_if_nonzero () const |
Atomically increases the reference count of this object if it is not zero. | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
virtual bool | unref () const |
Explicitly decrements the reference count. | |
bool | unref_if_one () const |
Atomically decreases the reference count of this object if it is one. | |
WeakReferenceList * | weak_ref () |
Adds the indicated PointerToVoid as a weak reference to this object. | |
void | weak_unref () |
Removes the indicated PointerToVoid as a weak reference to this object. | |
Public Attributes | |
bool | _error |
Filename | _filename |
Mutex | _lock |
![]() | |
get_type | |
![]() | |
get_ref_count | |
Returns the current reference count. | |
Additional Inherited Members | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.
The loader should be reusable.
Definition at line 45 of file assimpLoader.h.
AssimpLoader::AssimpLoader | ( | ) |
Definition at line 99 of file assimpLoader.cxx.
|
virtual |
Definition at line 111 of file assimpLoader.cxx.
void AssimpLoader::build_graph | ( | ) |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node.
Definition at line 195 of file assimpLoader.cxx.
References Filename::get_basename().
void AssimpLoader::get_extensions | ( | std::string & | ext | ) | const |
Returns a space-separated list of extensions that Assimp can load, without the leading dots.
Definition at line 120 of file assimpLoader.cxx.
bool AssimpLoader::read | ( | const Filename & | filename | ) |
Reads from the indicated file.
Definition at line 140 of file assimpLoader.cxx.
bool AssimpLoader::_error |
Definition at line 56 of file assimpLoader.h.
Filename AssimpLoader::_filename |
Definition at line 58 of file assimpLoader.h.
Mutex AssimpLoader::_lock |
Definition at line 59 of file assimpLoader.h.