3.10.1.2.1.3. opengate.actors.base¶
3.10.1.2.1.3.1. Classes¶
This is the base class used for all objects that handle user input in GATE. |
3.10.1.2.1.3.2. Functions¶
|
Hook to be attached to property setter of user input 'attached_to' in all actors. |
Decorator for shortcut methods and properties that may be used only |
3.10.1.2.1.3.3. Module Contents¶
- opengate.actors.base._setter_hook_attached_to(self, attached_to)[source]¶
Hook to be attached to property setter of user input ‘attached_to’ in all actors. Allows the user input ‘attached_to_volume’ to be volume object or a volume name.
- opengate.actors.base.shortcut_for_single_output_actor(func)[source]¶
Decorator for shortcut methods and properties that may be used only with actors that handle a single user output.
- class opengate.actors.base.ActorBase(*args, **kwargs)[source]¶
Bases:
opengate.base.GateObjectThis is the base class used for all objects that handle user input in GATE.
The class is assumed to be processed by process_cls(), either explicitly or via the metaclass MetaUserInfo, before any instances of the class are created. Some class attributes, e.g. inherited_user_info_defaults, are created as part of this processing.
- initialize()[source]¶
This base class method initializes common settings and should be called in all inheriting classes.
- _add_user_output(actor_output_class, name, can_be_deactivated=False, automatically_generate_interface=True, **kwargs)[source]¶
Method to be called internally (not by user) in the specific actor class implementations.