getGlobalPtr static PNMFileTypeRegistry *PNMFileTypeRegistry::get_global_ptr(void); Description: Returns a pointer to the global PNMFileTypeRegistry object. |
getNumTypes int PNMFileTypeRegistry::get_num_types(void) const; Description: Returns the total number of types registered. |
getType PNMFileType *PNMFileTypeRegistry::get_type(int n) const; Description: Returns the nth type registered. |
getTypeByHandle PNMFileType *PNMFileTypeRegistry::get_type_by_handle(TypeHandle handle) const; Description: 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 PNMFileType *PNMFileTypeRegistry::get_type_from_extension(string const &filename) const; Description: 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 PNMFileType *PNMFileTypeRegistry::get_type_from_magic_number(string const &magic_number) const; Description: 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. |
write void PNMFileTypeRegistry::write(ostream &out, int indent_level = (0)) const; Description: Writes a list of supported image file types to the indicated output stream, one per line. |