hmi.faceanimation.converters
Class EmotionConverter

java.lang.Object
  extended by hmi.faceanimation.converters.EmotionConverter

public class EmotionConverter
extends Object


Nested Class Summary
static class EmotionConverter.AE
           
private static class EmotionConverter.Category
           
private static class EmotionConverter.Profile
           
private static class EmotionConverter.Range
           
 
Field Summary
private  float aeWidth
           
private  ArrayList<FAP> fapsEverUsed
           
private static org.slf4j.Logger logger
           
(package private)  HashMap<EmotionConverter.AE,Integer> preferredProfiles
           
private  EmotionConverter.AE primaryAE
           
(package private)  HashMap<EmotionConverter.AE,ArrayList<EmotionConverter.Profile>> profiles
           
private  EmotionConverter.AE secondaryAE
           
 
Constructor Summary
EmotionConverter()
           
EmotionConverter(Resources r, String filename)
           
 
Method Summary
 MPEG4Configuration convert(float angle, float activation)
           
private  EmotionConverter.Category convertDetermineCategory(float angle)
           
private  EmotionConverter.Profile convertInBetween(float angle, float activation)
           
private  EmotionConverter.Profile convertSimilar(float angle, float activation)
           
 int getNumProfiles(EmotionConverter.AE ae)
           
 int getPreferredProfile(EmotionConverter.AE ae)
           
private  void loadRanges(Resources r, String filename)
           
private  EmotionConverter.Range mergeRanges(FAP key, EmotionConverter.Profile profileOut, EmotionConverter.Range rangePrimary, EmotionConverter.Range rangeSecondary, float angleRatioPrimary, float angleRatioSecondary)
           
 void setPreferredProfile(EmotionConverter.AE ae, int preferredProfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.slf4j.Logger logger

profiles

HashMap<EmotionConverter.AE,ArrayList<EmotionConverter.Profile>> profiles

preferredProfiles

HashMap<EmotionConverter.AE,Integer> preferredProfiles

fapsEverUsed

private ArrayList<FAP> fapsEverUsed

aeWidth

private float aeWidth

primaryAE

private EmotionConverter.AE primaryAE

secondaryAE

private EmotionConverter.AE secondaryAE
Constructor Detail

EmotionConverter

public EmotionConverter()

EmotionConverter

public EmotionConverter(Resources r,
                        String filename)
Method Detail

getNumProfiles

public int getNumProfiles(EmotionConverter.AE ae)

setPreferredProfile

public void setPreferredProfile(EmotionConverter.AE ae,
                                int preferredProfile)

getPreferredProfile

public int getPreferredProfile(EmotionConverter.AE ae)

convert

public MPEG4Configuration convert(float angle,
                                  float activation)

convertDetermineCategory

private EmotionConverter.Category convertDetermineCategory(float angle)

convertSimilar

private EmotionConverter.Profile convertSimilar(float angle,
                                                float activation)

convertInBetween

private EmotionConverter.Profile convertInBetween(float angle,
                                                  float activation)

mergeRanges

private EmotionConverter.Range mergeRanges(FAP key,
                                           EmotionConverter.Profile profileOut,
                                           EmotionConverter.Range rangePrimary,
                                           EmotionConverter.Range rangeSecondary,
                                           float angleRatioPrimary,
                                           float angleRatioSecondary)

loadRanges

private void loadRanges(Resources r,
                        String filename)