CommandEffect
General
CommandEffect és una classe en FOSS per Python. Heretaris de: Behavior, ICommandEffect.
Representa el comportament de l’efecte del comandament.
Aquesta classe proporciona 9 mètodes per treballar amb objectes CommandEffect en programes de Python. Els mètodes disponibles inclouen: __init__, accumulate, additive, as_i_behavior, command_string, properties, shape_target, timing, type. Tots els membres públics són accessibles a qualsevol aplicació de Python després d’instal·lar el paquet FOSS per Python. Propietats: accumulate, additive, as_i_behavior, command_string, properties, shape_target, i 2 més.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
type | CommandEffectType | Llegir/Escriure | Obté o fixa el tipus. |
command_string | str | Llegir/Escriure | Obté o fixa la cadena de comandes. |
shape_target | IShape | Llegir/Escriure | Obté o fixa la forma del objectiu. |
as_i_behavior | IBehavior | Llegeix. | Té el comportament com jo. |
accumulate | NullableBool | Llegir/Escriure | Obté o fixa l’acumulació. |
additive | BehaviorAdditiveType | Llegir/Escriure | Obté o fixa l’adítiu. |
properties | IBehaviorPropertyCollection | Llegeix. | Obté les propietats. |
timing | ITiming | Llegir/Escriure | Obté o fixa el moment. |
Mètodes
| Signatura | Descripció |
|---|---|
__init__() | |
accumulate() → NullableBool | Representa si s’acumulen comportaments d’animació. |
additive() → BehaviorAdditiveType | Representa si el comportament de l’animació actual es combina amb altres animacions en curs. |
properties() → IBehaviorPropertyCollection | Representa propietats de comportament. |
timing() → ITiming | Representa les propietats de cronometratge per al comportament d’efecte. |
type() → CommandEffectType | Definit el tipus de comportament d’efecte de comanda. |
command_string() → str | Definit la cadena de comandes. |
shape_target() → IShape | Definit la forma del objectiu de l’efecte de comanda. |
as_i_behavior() → IBehavior | Permet obtenir interfície base IBehavior. |