Package pyffi :: Module spells :: Module nif :: Class NifSpell
[hide private]
[frames] | no frames]

Class NifSpell

source code

object --+    
         |    
     Spell --+
             |
            NifSpell
Known Subclasses:

Base class for spells for nif files.
Instance Methods [hide private]
bool
_datainspect(self)
This is called after pyffi.object_models.FileFormat.Data.inspect has been called, and before pyffi.object_models.FileFormat.Data.read is called.
source code
bool
inspectblocktype(self, block_type)
This function heuristically checks whether the given block type is used in the nif file, using header information only.
source code

Inherited from Spell: __init__, branchentry, branchexit, branchinspect, dataentry, dataexit, datainspect, recurse

Inherited from Spell (private): _branchinspect

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from Spell: get_toast_stream, toastentry, toastexit

Class Variables [hide private]

Inherited from Spell: READONLY, SPELLNAME, changed, data, stream, toaster

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_datainspect(self)

source code 
This is called after pyffi.object_models.FileFormat.Data.inspect has been called, and before pyffi.object_models.FileFormat.Data.read is called.
Returns: bool
True if the file must be processed, False otherwise.
Overrides: Spell._datainspect
(inherited documentation)

inspectblocktype(self, block_type)

source code 
This function heuristically checks whether the given block type is used in the nif file, using header information only. When in doubt, it returns True.
Parameters:
Returns: bool
False if the nif has no block of the given type, with certainty. True if the nif has the block, or if it cannot be determined.