Panda3D
Public Member Functions | Static Public Member Functions | List of all members
LoaderFileType Class Reference

This is the base class for a family of scene-graph file types that the Loader supports. More...

Inheritance diagram for LoaderFileType:
TypedObject

Public Member Functions

str getAdditionalExtensions ()
 Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this loader. More...
 
bool getAllowDiskCache (const LoaderOptions options)
 Returns true if the loader flags allow retrieving the model from the on- disk bam cache (if it is enabled), false otherwise. More...
 
bool getAllowRamCache (const LoaderOptions options)
 Returns true if the loader flags allow retrieving the model from the in- memory ModelPool cache, false otherwise. More...
 
str getExtension ()
 
str getName ()
 
bool supportsCompressed ()
 Returns true if this file type can transparently load compressed files (with a .pz or .gz extension), false otherwise. More...
 
bool supportsLoad ()
 Returns true if the file type can be used to load files, and load_file() is supported. More...
 
bool supportsSave ()
 Returns true if the file type can be used to save files, and save_file() is supported. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 

Detailed Description

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.

Member Function Documentation

◆ getAdditionalExtensions()

str getAdditionalExtensions ( )

Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this loader.

◆ getAllowDiskCache()

bool getAllowDiskCache ( const LoaderOptions  options)

Returns true if the loader flags allow retrieving the model from the on- disk bam cache (if it is enabled), false otherwise.

◆ getAllowRamCache()

bool getAllowRamCache ( const LoaderOptions  options)

Returns true if the loader flags allow retrieving the model from the in- memory ModelPool cache, false otherwise.

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getExtension()

str getExtension ( )

◆ getName()

str getName ( )

◆ supportsCompressed()

bool supportsCompressed ( )

Returns true if this file type can transparently load compressed files (with a .pz or .gz extension), false otherwise.

◆ supportsLoad()

bool supportsLoad ( )

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.

◆ supportsSave()

bool supportsSave ( )

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.