This class maintains the set of all known PNMFileTypes in the universe. More...
#include "pnmFileTypeRegistry.h"
List of all members.
This class maintains the set of all known PNMFileTypes in the universe.
Definition at line 31 of file pnmFileTypeRegistry.h.
[static]
Returns a pointer to the global PNMFileTypeRegistry object.
Definition at line 267 of file pnmFileTypeRegistry.cxx.
Referenced by ProgramBase::dispatch_image_type(), PNMFileTypePfm::make_PNMFileTypePfm(), PNMImageHeader::make_reader(), and PNMImageHeader::make_writer().
Returns the total number of types registered.
Definition at line 98 of file pnmFileTypeRegistry.cxx.
Returns the nth type registered.
Definition at line 111 of file pnmFileTypeRegistry.cxx.
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.
Definition at line 218 of file pnmFileTypeRegistry.cxx.
Referenced by PNMFileTypePfm::make_PNMFileTypePfm().
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.
Definition at line 125 of file pnmFileTypeRegistry.cxx.
Referenced by ProgramBase::dispatch_image_type(), TexturePool::get_texture_type(), PNMImageHeader::make_reader(), PNMImageHeader::make_writer(), and TexturePool::write_texture_types().
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.
Definition at line 192 of file pnmFileTypeRegistry.cxx.
References PNMFileType::has_magic_number(), and PNMFileType::matches_magic_number().
Defines a new PNMFileType in the universe.
Definition at line 52 of file pnmFileTypeRegistry.cxx.
References PNMFileType::get_extension(), and PNMFileType::get_num_extensions().
0
Writes a list of supported image file types to the indicated output stream, one per line.
Definition at line 235 of file pnmFileTypeRegistry.cxx.
Referenced by ProgramBase::dispatch_image_type(), and TexturePool::write_texture_types().