Trees | Indices | Help |
|
---|
|
object --+ | MFnCodeGeneratorBase --+ | PythonMFnCodeGenerator
Specialization to generate python code
Flags:
- kDirectCall:
If set, the call return the actual mfn method in the best case, which is a call as direct as it gets. A possibly negative side-effect would be that it the MFnMethod caches the function set and actual MObject/MDagPath, which can be dangerous if held too long
- kIsMObject:
If set, the type we create the method for is not derived from Node, but from MObject. This hint is required in order to generate correct calling code.
- kIsDagNode:
If set, the type we create the method for is derived from DagNode
- kIsStatic:
If set, the method to be wrapped is considered static, no self is needed, nor any object. NOTE: This flag is likely to be removed as it should be part of the method_descriptor, for now though it does not provide that information so we pass it in.
- kWithDocs:
If set, a doc string will be generated the method. In future, this information will come from the method descriptor. Please note that docs should only be attaced in interactive modes, otherwise its a waste of memory.
|
|||
Inherited from Inherited from |
|||
Interface | |||
---|---|---|---|
|
|||
|
|||
Utilities | |||
Inherited from |
|
|||
Inherited from |
|
Generates code as python string which can be used to compile a function. It assumes the following globals to be existing once evaluated: mfncls, mfn_fun, [rvalfunc] Currently supports the following data within method_descriptor:
as well as all flags except kIsStatic. :raise ValueError: if flags are incompatible with each other
|
Note: For all other args, see MFnCodeGeneratorBase.generateMFnClsMethodWrapper |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:13 2011 | http://epydoc.sourceforge.net |