|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lip6.sma.simulacion.avatar.AvatarImageCollection
public class AvatarImageCollection
Classe pour une collection d'images pour toutes les attitudes d'un avatar pour un affichage particulier.
Test
,
Serialized FormField Summary | |
---|---|
static String |
LAYER_HORIZONTAL_ORIENTATION
Orientation horizontale. |
static String |
LAYER_ORIENTATION_KEY
Clé pour les orientations des couches. |
static String |
LAYER_SLICES_KEY
Clé pour les tranches des couches. |
static String |
LAYER_VERTICAL_ORIENTATION
Orientation verticale. |
private Map |
mAttitudes
Référence sur le dictionnaire contenant les images pour les attitudes |
Constructor Summary | |
---|---|
AvatarImageCollection(Map inAttitudes)
Constructeur à partir d'un tableau (dictionnaire). |
Method Summary | |
---|---|
Set |
getAttitudes()
Accesseur sur l'ensemble des attitudes (séquences d'images). |
Map[] |
getLayers(String inAttitude)
Accesseur sur les couches pour une attitude particulière. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LAYER_ORIENTATION_KEY
public static final String LAYER_HORIZONTAL_ORIENTATION
public static final String LAYER_VERTICAL_ORIENTATION
public static final String LAYER_SLICES_KEY
private final Map mAttitudes
Constructor Detail |
---|
public AvatarImageCollection(Map inAttitudes)
Les clés du tableau sont les noms des attitudes. Les valeurs sont des tableaux représentant les couches. On a, pour chaque couche, l'orientation (clé LAYER_ORIENTATION_KEY) et les tranches correspondantes (clé LAYER_SLICES_KEY). Les tranches sont des vecteurs, chaque élément représentant une tranche et étant lui- même un vecteur d'image (pour l'animation).
Je reprends avec un dessin pour ceux qui ne suivent pas au fond.
inAttitudes
- dictionnaire contenant les imagesMethod Detail |
---|
public final Set getAttitudes()
public final Map[] getLayers(String inAttitude)
inAttitude
- attitude dont on veut les couches.
null
si
l'attitude n'est pas définie.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |