# PNMFileType

from pandac.PandaModules import PNMFileType

Class : PNMFileType
Description : This is the base class of a family of classes that represent particular image file types that PNMImage supports.

## Inheritance:

PNMFileType: TypedWritable
TypedWritable: TypedObject
TypedObject:

## Methods of PNMFileType:

getClassType
getExtension
getName
getNumExtensions
getSuggestedExtension

## Methods of TypedWritable:

getClassType

## Methods of TypedObject:

getBestParentFromSet
getClassType
getType
getTypeIndex
isExactType
isOfType

getClassType static TypeHandle PNMFileType::get_class_type(void); Undocumented function.

getExtension virtual string PNMFileType::get_extension(int n) const; Description: Returns the nth possible filename extension associated with this particular file type, without a leading dot.

getName virtual string PNMFileType::get_name(void) const = 0; Undocumented function.

getNumExtensions virtual int PNMFileType::get_num_extensions(void) const; Description: Returns the number of different possible filename extensions associated with this particular file type.

getSuggestedExtension virtual string PNMFileType::get_suggested_extension(void) const; Description: Returns a suitable filename extension (without a leading dot) to suggest for files of this type, or empty string if no suggestions are available.

getClassType static TypeHandle TypedWritable::get_class_type(void); Undocumented function.

getBestParentFromSet int TypedObject::get_best_parent_from_Set(set< int > const &) const; Description: Returns true if the current object is the indicated type exactly.

getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function.

getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type().

getTypeIndex int TypedObject::get_type_index(void) const; Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index().

isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly.

isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type.