Panda3D
|
This defines the Loader interface to files whose converters are defined within the Pandatool package and inherit from SomethingToEggConverter, like FltToEggConverter and LwoToEggConverter. More...
#include "loaderFileTypePandatool.h"
Public Member Functions | |
LoaderFileTypePandatool (SomethingToEggConverter *loader, EggToSomethingConverter *saver=nullptr) | |
virtual TypeHandle | force_init_type () |
virtual std::string | get_additional_extensions () const |
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter. | |
virtual std::string | get_extension () const |
virtual std::string | get_name () const |
virtual TypeHandle | get_type () const |
virtual | PT (PandaNode) load_file(const Filename &path |
virtual void | resolve_filename (Filename &path) const |
Searches for the indicated filename on whatever paths are appropriate to this file type, and updates it if it is found. | |
virtual bool | save_file (const Filename &path, const LoaderOptions &options, PandaNode *node) const |
virtual bool | supports_compressed () const |
Returns true if this file type can transparently load compressed files (with a .pz or .gz extension), false otherwise. | |
virtual bool | supports_load () const |
Returns true if the file type can be used to load files, and load_file() is supported. | |
virtual bool | supports_save () const |
Returns true if the file type can be used to save files, and save_file() is supported. | |
![]() | |
virtual bool | get_allow_disk_cache (const LoaderOptions &options) const |
Returns true if the loader flags allow retrieving the model from the on- disk bam cache (if it is enabled), false otherwise. | |
virtual bool | get_allow_ram_cache (const LoaderOptions &options) const |
Returns true if the loader flags allow retrieving the model from the in- memory ModelPool cache, false otherwise. | |
![]() | |
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) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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. | |
Public Attributes | |
virtual const LoaderOptions BamCacheRecord *record | const |
virtual const LoaderOptions & | options |
![]() | |
virtual const LoaderOptions BamCacheRecord *record | const |
virtual const LoaderOptions & | options |
![]() | |
get_type | |
This defines the Loader interface to files whose converters are defined within the Pandatool package and inherit from SomethingToEggConverter, like FltToEggConverter and LwoToEggConverter.
Definition at line 29 of file loaderFileTypePandatool.h.
LoaderFileTypePandatool::LoaderFileTypePandatool | ( | SomethingToEggConverter * | loader, |
EggToSomethingConverter * | saver = nullptr ) |
Definition at line 30 of file loaderFileTypePandatool.cxx.
|
virtual |
Definition at line 43 of file loaderFileTypePandatool.cxx.
|
inlinevirtual |
Reimplemented from LoaderFileType.
Definition at line 65 of file loaderFileTypePandatool.h.
|
virtual |
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.
Reimplemented from LoaderFileType.
Definition at line 73 of file loaderFileTypePandatool.cxx.
References EggToSomethingConverter::get_additional_extensions(), and SomethingToEggConverter::get_additional_extensions().
|
inlinestatic |
Definition at line 54 of file loaderFileTypePandatool.h.
|
virtual |
Implements LoaderFileType.
Definition at line 61 of file loaderFileTypePandatool.cxx.
|
virtual |
Implements LoaderFileType.
Definition at line 50 of file loaderFileTypePandatool.cxx.
|
inlinevirtual |
Reimplemented from LoaderFileType.
Definition at line 62 of file loaderFileTypePandatool.h.
|
inlinestatic |
Definition at line 57 of file loaderFileTypePandatool.h.
|
virtual |
Reimplemented from LoaderFileType.
|
virtual |
Searches for the indicated filename on whatever paths are appropriate to this file type, and updates it if it is found.
Definition at line 117 of file loaderFileTypePandatool.cxx.
References Filename::resolve_filename().
|
virtual |
Reimplemented from LoaderFileType.
|
virtual |
Returns true if this file type can transparently load compressed files (with a .pz or .gz extension), false otherwise.
Reimplemented from LoaderFileType.
Definition at line 85 of file loaderFileTypePandatool.cxx.
References EggToSomethingConverter::supports_compressed(), and SomethingToEggConverter::supports_compressed().
|
virtual |
Returns true if the file type can be used to load files, and load_file() is supported.
Returns false if load_file() is unimplemented and will always fail.
Reimplemented from LoaderFileType.
Definition at line 98 of file loaderFileTypePandatool.cxx.
|
virtual |
Returns true if the file type can be used to save files, and save_file() is supported.
Returns false if save_file() is unimplemented and will always fail.
Reimplemented from LoaderFileType.
Definition at line 108 of file loaderFileTypePandatool.cxx.
virtual const LoaderOptions BamCacheRecord* record LoaderFileTypePandatool::const |
Definition at line 45 of file loaderFileTypePandatool.h.
virtual const LoaderOptions& LoaderFileTypePandatool::options |
Definition at line 44 of file loaderFileTypePandatool.h.