hmi.faceanimation.model
Class FAP

java.lang.Object
  extended by hmi.faceanimation.model.FAP

public class FAP
extends Object

An MPEG-4 FA FAP. Notice: tongue_roll has two feature points, but this is yet to be accounted for. We ignore it for now since our facial animation engine will not be able to animate this part.

Author:
PaulRC

Nested Class Summary
static class FAP.Direction
           
static class FAP.Directionality
           
static class FAP.Unit
           
 
Field Summary
private  String description
           
private  FAP.Direction direction
           
private  FAP.Directionality directionality
           
private  FeaturePoint fp
           
 int index
           
private  String name
           
 int number
           
private  FAP otherSide
           
private  FAP.Unit unit
           
 
Constructor Summary
FAP()
          Constructor
FAP(int index, int number, String name, String description, FAP.Unit unit, FAP.Directionality directionality, FAP.Direction direction, FeaturePoint fp)
          Constructor
FAP(int index, int number, String name, String description, FeaturePoint fp)
          Constructor for multi-purpose FAPs (viseme, expression).
 
Method Summary
 boolean equals(FAP fap)
           
 boolean equals(Object obj)
           
 String getDescription()
           
 FAP.Direction getDirection()
           
 FAP.Directionality getDirectionality()
           
 FeaturePoint getFeaturePoint()
           
 int getIndex()
           
 String getName()
           
 int getNumber()
           
 FAP getOtherSide()
           
 FAP.Unit getUnit()
           
 int hashCode()
           
 void setOtherSide(FAP otherSide)
          Sets the other side of this FAP (e.g., stretch_l_cornerlip for stretch_r_cornerlip)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public int index

number

public int number

name

private String name

description

private String description

unit

private FAP.Unit unit

directionality

private FAP.Directionality directionality

direction

private FAP.Direction direction

fp

private FeaturePoint fp

otherSide

private FAP otherSide
Constructor Detail

FAP

public FAP()
Constructor


FAP

public FAP(int index,
           int number,
           String name,
           String description,
           FAP.Unit unit,
           FAP.Directionality directionality,
           FAP.Direction direction,
           FeaturePoint fp)
Constructor


FAP

public FAP(int index,
           int number,
           String name,
           String description,
           FeaturePoint fp)
Constructor for multi-purpose FAPs (viseme, expression).

Method Detail

getIndex

public int getIndex()
Returns:
the index

getNumber

public int getNumber()

getName

public String getName()
Returns:
the name

getDescription

public String getDescription()
Returns:
the description

getUnit

public FAP.Unit getUnit()
Returns:
the unit

getDirectionality

public FAP.Directionality getDirectionality()
Returns:
the directionality

getDirection

public FAP.Direction getDirection()
Returns:
the direction

getFeaturePoint

public FeaturePoint getFeaturePoint()
Returns:
the feature point

getOtherSide

public FAP getOtherSide()
Returns:
the other side

setOtherSide

public void setOtherSide(FAP otherSide)
Sets the other side of this FAP (e.g., stretch_l_cornerlip for stretch_r_cornerlip)

Parameters:
otherSide -

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equals

public boolean equals(FAP fap)