LoaderFileType
-
class LoaderFileType
Bases:
TypedObject
This is the base class for a family of scene-graph file types that the Loader supports. Each kind of loader that’s available should define a corresponding LoaderFileType object and register itself.
Inheritance diagram
-
virtual std::string get_additional_extensions(void) const
Returns a space-separated list of extension, in addition to the one returned by
get_extension()
, that are recognized by this loader.
-
virtual bool get_allow_disk_cache(LoaderOptions const &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(LoaderOptions const &options) const
Returns true if the loader flags allow retrieving the model from the in- memory
ModelPool
cache, false otherwise.
-
static TypeHandle get_class_type(void)
-
virtual std::string get_extension(void) const = 0
-
virtual std::string get_name(void) const = 0
-
virtual bool supports_compressed(void) const
Returns true if this file type can transparently load compressed files (with a .pz or .gz extension), false otherwise.
-
virtual bool supports_load(void) const
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.
-
virtual bool supports_save(void) const
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.
-
virtual std::string get_additional_extensions(void) const