Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
LoaderFileType Class Reference

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

#include "loaderFileType.h"

Inheritance diagram for LoaderFileType:
TypedObject MemoryBase LoaderFileTypeAssimp LoaderFileTypeBam LoaderFileTypeDae LoaderFileTypeEgg LoaderFileTypePandatool LoaderFileTypeSrt LoaderFileTypeStf

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
virtual 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 loader.
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.
virtual string get_extension () const =0
virtual string get_name () const =0
virtual TypeHandle get_type () const
virtual PT (PandaNode) load_file(const Filename &path
virtual bool supports_compressed () const
 Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise.

Static Public Member Functions

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 LoaderOptionsoptions

Protected Attributes

int _no_cache_flags

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.

Definition at line 36 of file loaderFileType.h.


Member Function Documentation

string LoaderFileType::get_additional_extensions ( ) const [virtual]

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

Reimplemented in LoaderFileTypePandatool, LoaderFileTypeAssimp, and LoaderFileTypeDae.

Definition at line 54 of file loaderFileType.cxx.

Referenced by LoaderFileTypeRegistry::register_type(), and LoaderFileTypeRegistry::write().

bool LoaderFileType::get_allow_disk_cache ( const LoaderOptions options) const [virtual]

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

Definition at line 78 of file loaderFileType.cxx.

bool LoaderFileType::get_allow_ram_cache ( const LoaderOptions options) const [virtual]

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

Definition at line 90 of file loaderFileType.cxx.

static void LoaderFileType::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from TypedObject.

Reimplemented in LoaderFileTypePandatool, LoaderFileTypeAssimp, LoaderFileTypeSrt, LoaderFileTypeStf, LoaderFileTypeDae, LoaderFileTypeEgg, and LoaderFileTypeBam.

Definition at line 63 of file loaderFileType.h.

References TypedObject::init_type().

Referenced by LoaderFileTypeEgg::init_type(), LoaderFileTypeBam::init_type(), LoaderFileTypeDae::init_type(), LoaderFileTypeStf::init_type(), LoaderFileTypeSrt::init_type(), LoaderFileTypeAssimp::init_type(), and LoaderFileTypePandatool::init_type().

bool LoaderFileType::supports_compressed ( ) const [virtual]

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

Reimplemented in LoaderFileTypePandatool, LoaderFileTypeAssimp, LoaderFileTypeSrt, LoaderFileTypeStf, LoaderFileTypeDae, LoaderFileTypeEgg, and LoaderFileTypeBam.

Definition at line 66 of file loaderFileType.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations