|
Panda3D
|
Public Member Functions | |
| __init__ (self) | |
| create (self, type, *args, **kwArgs) | |
| nullCtor (self, *args, **kwArgs) | |
Static Public Attributes | |
| notify = directNotify.newCategory('Factory') | |
Protected Member Functions | |
| _registerType (self, type, ctor) | |
| _registerTypes (self, type2ctor) | |
Protected Attributes | |
| dict | _type2ctor = {} |
This class manages a list of object types and their corresponding constructors. Objects may be created on-demand from their type. Object types may be any hashable piece of unique data (such as a string). This class is intended to be derived from. Subclasses should call self._registerTypes to set up type constructors.
| __init__ | ( | self | ) |
|
protected |
|
protected |
| create | ( | self, | |
| type, | |||
| * | args, | ||
| ** | kwArgs ) |
| nullCtor | ( | self, | |
| * | args, | ||
| ** | kwArgs ) |
|
protected |
|
static |