PNMFileTypeRegistry
from panda3d.core import PNMFileTypeRegistry
- class PNMFileTypeRegistry
Bases:
DTOOL_SUPER_BASE
This class maintains the set of all known PNMFileTypes in the universe.
Inheritance diagram
- __init__(*args, **kwargs)
- getGlobalPtr()
C++ Interface: get_global_ptr()
- /**
Returns a pointer to the global PNMFileTypeRegistry object.
*/
- getNumTypes()
C++ Interface: get_num_types(PNMFileTypeRegistry self)
- /**
Returns the total number of types registered.
*/
- getType()
C++ Interface: get_type(PNMFileTypeRegistry self, int n)
- /**
Returns the nth type registered.
*/
- getTypeByHandle()
C++ Interface: get_type_by_handle(PNMFileTypeRegistry self, TypeHandle handle)
- /**
Returns the PNMFileType instance stored in the registry for the given
TypeHandle, e.g. as retrieved by a previous call to get_type() on the type
instance.
*/
- getTypeFromExtension()
C++ Interface: get_type_from_extension(PNMFileTypeRegistry self, str filename)
- /**
Tries to determine what the PNMFileType is likely to be for a particular
image file based on its extension. Returns a suitable PNMFileType pointer,
or NULL if no type can be determined.
*/
- getTypeFromMagicNumber()
C++ Interface: get_type_from_magic_number(PNMFileTypeRegistry self, str magic_number)
- /**
Tries to determine what the PNMFileType is likely to be for a particular
image file based on its magic number, the first two bytes read from the
file. Returns a suitable PNMFileType pointer, or NULL if no type can be
determined.
*/
- getTypes()
- get_global_ptr()
C++ Interface: get_global_ptr()
- /**
Returns a pointer to the global PNMFileTypeRegistry object.
*/
- get_num_types()
C++ Interface: get_num_types(PNMFileTypeRegistry self)
- /**
Returns the total number of types registered.
*/
- get_type()
C++ Interface: get_type(PNMFileTypeRegistry self, int n)
- /**
Returns the nth type registered.
*/
- get_type_by_handle()
C++ Interface: get_type_by_handle(PNMFileTypeRegistry self, TypeHandle handle)
- /**
Returns the PNMFileType instance stored in the registry for the given
TypeHandle, e.g. as retrieved by a previous call to get_type() on the type
instance.
*/
- get_type_from_extension()
C++ Interface: get_type_from_extension(PNMFileTypeRegistry self, str filename)
- /**
Tries to determine what the PNMFileType is likely to be for a particular
image file based on its extension. Returns a suitable PNMFileType pointer,
or NULL if no type can be determined.
*/
- get_type_from_magic_number()
C++ Interface: get_type_from_magic_number(PNMFileTypeRegistry self, str magic_number)
- /**
Tries to determine what the PNMFileType is likely to be for a particular
image file based on its magic number, the first two bytes read from the
file. Returns a suitable PNMFileType pointer, or NULL if no type can be
determined.
*/
- get_types()
- types