Base class for loadable, parameterizable classes.
A loadable class is one that can be loaded from a module at run time by specifying the location of the source file or library for that module.
To allow maximum flexibility of loadable classes, parameters for this class can also be loaded at run time by adding them to the parameters map in the Loadable class.
There are a few basic requirements for loadable classes: 1. They must derive from the Loadable base class. 2. The module where the class is defined must contain an instantiate() method that returns an instance of that class. 3. (Temporary limitation) The module file passed to createFromFile currently must be found in the default import path in Python.
#include <class_loadable_1_1_loadable.h>
Public Member Functions |
|
__init__ () | |
__eq__ () | |
__ne__ () | |
name () | |
createFromFile () | |
Instantiates an object of the Loadable
subclass defined in the module contained in fileName. |
|
basename () | |
Return a basename that will be used to build
names and labels. |
|
Public Attributes |
|
moduleName |
Loadable.Loadable.__init__ | ( | ) |
Reimplemented in Behavior.Behavior, FbxBehavior.FbxBehavior, KeyPress.KeyPress, KeyframeAnimation.KeyframeAnimation, MasterBehavior.MasterBehavior, PercentageBehavior.PercentageBehavior, RegionEnter.RegionEnter, RegionExit.RegionExit, RegionTrigger.RegionTrigger, RotateAboutAxis.RotateAboutAxis, RotateTranslate.RotateTranslate, ShowHide.ShowHide, TransformBehavior.TransformBehavior, Translate.Translate, Trigger.Trigger, TriggerBehavior.TriggerBehavior, TurnTable.TurnTable, TurnTableBehavior.TurnTableBehavior, and VisibilitySwitch.VisibilitySwitch.
Loadable.Loadable.__eq__ | ( | ) |
Reimplemented in Behavior.Behavior, and Trigger.Trigger.
Loadable.Loadable.__ne__ | ( | ) |
Reimplemented in Behavior.Behavior, and Trigger.Trigger.
Loadable.Loadable.name | ( | ) |
Loadable.Loadable.createFromFile | ( | ) |
Instantiates an object of the Loadable subclass defined in the module contained in fileName.
If fileName does not contain a proper module, or if that module does not define the instantiate() method, then this function returns None.
Loadable.Loadable.basename | ( | ) |
Return a basename that will be used to build names and labels.
Derived classes will typically override this method.
Reimplemented in Behavior.Behavior, FbxBehavior.FbxBehavior, KeyframeAnimation.KeyframeAnimation, MasterBehavior.MasterBehavior, PercentageBehavior.PercentageBehavior, TransformBehavior.TransformBehavior, TriggerBehavior.TriggerBehavior, and TurnTableBehavior.TurnTableBehavior.