Blender V2.61 - r43446
|
#include <BlendType.h>
Public Member Functions | |
BlendType (const char *name) | |
constructor | |
PyObj * | checkType (PyObject *obj) |
check blender type and return pointer to contained object or NULL (if type is not valid) | |
PyObj * | parseArg (PyObject *args) |
parse arguments to get object | |
Protected Attributes | |
const char * | m_name |
name of Python type | |
PyTypeObject * | m_objType |
pointer to Python type |
class allows check type of blender python object and access its contained object MUST ONLY BE USED FOR KX classes that are descendent of PyObjectPlus
Definition at line 33 of file BlendType.h.
constructor
Definition at line 37 of file BlendType.h.
PyObj* BlendType< PyObj >::checkType | ( | PyObject * | obj | ) | [inline] |
check blender type and return pointer to contained object or NULL (if type is not valid)
Definition at line 40 of file BlendType.h.
References BlendType< PyObj >::m_name, BlendType< PyObj >::m_objType, and NULL.
Referenced by BlendType< PyObj >::parseArg().
PyObj* BlendType< PyObj >::parseArg | ( | PyObject * | args | ) | [inline] |
parse arguments to get object
Definition at line 62 of file BlendType.h.
References BlendType< PyObj >::checkType(), and NULL.
name of Python type
Definition at line 75 of file BlendType.h.
Referenced by BlendType< PyObj >::checkType().
pointer to Python type
Definition at line 77 of file BlendType.h.
Referenced by BlendType< PyObj >::checkType().