hmi.facegraphics.deformers
Class SmoothDeformer

java.lang.Object
  extended by hmi.xml.XMLStructureAdapter
      extended by hmi.facegraphics.deformers.Deformer
          extended by hmi.facegraphics.deformers.SmoothDeformer
All Implemented Interfaces:
DeformerServer, SmoothDeformerServer, XMLStructure

public class SmoothDeformer
extends Deformer
implements SmoothDeformerServer


Field Summary
private  Bezier2f bez
           
protected  SmoothDeformerClient client
           
private  boolean invertVertexMask
           
private  float scalex
           
private  float scaley
           
private  float scalez
           
private  int smoothCenter
           
private  int smoothSide
           
private  boolean useVertexMask
           
 
Fields inherited from class hmi.facegraphics.deformers.Deformer
fap, fpNeutralPos, fpPos, head, size, value
 
Fields inherited from class hmi.xml.XMLStructureAdapter
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING
 
Constructor Summary
SmoothDeformer()
           
 
Method Summary
 StringBuilder appendContent(StringBuilder buf, XMLFormatting fmt)
          Appends a String to buf that encodes the contents for the XML encoding.
 void copyFrom(Deformer sourceIn)
           
 void decodeContent(XMLTokenizer tokenizer)
          decodes the XML contents, i.e. the XML between the STag and ETag of the encoding.
private  void emitInvertVM(boolean value)
           
private  void emitScalex(float scale)
           
private  void emitScaley(float scale)
           
private  void emitScalez(float scale)
           
private  void emitSmoothCenter(int smoothCenter)
           
private  void emitSmoothSide(int smoothSide)
           
private  void emitUseVM(boolean value)
           
 boolean getInvertVM()
           
 float getScalex()
           
 float getScaley()
           
 float getScalez()
           
 int getSmoothCenter()
           
 int getSmoothSide()
           
 boolean getUseVM()
           
(package private)  float getWeight(int index)
           
private  void setInvertVM(boolean value)
           
private  void setScalex(float scale)
           
private  void setScaley(float scale)
           
private  void setScalez(float scale)
           
private  void setSmoothCenter(int smoothCenter)
           
private  void setSmoothSide(int smoothSide)
           
private  void setUseVM(boolean value)
           
 void updateInvertVM(boolean value)
           
 void updateScalex(float scale)
           
 void updateScaley(float scale)
           
 void updateScalez(float scale)
           
 void updateSmoothCenter(int smoothCenter)
           
 void updateSmoothSide(int smoothSide)
           
 void updateUseVM(boolean value)
           
 
Methods inherited from class hmi.facegraphics.deformers.Deformer
deform, emitSize, emitValue, getDisplacement, getDistance, getFAP, getFullDisplacement, getSize, getValue, getVertexWeights, setClient, setFAP, setHead, setSize, setValue, updateSize, updateValue
 
Methods inherited from class hmi.xml.XMLStructureAdapter
appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttributes, appendAttributes, appendAttributeString, appendAttributeString, appendBooleans, appendCloseEmptyTag, appendCloseSTag, appendComment, appendContent, appendDoubleElement, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendETag, appendETag, appendFloatArrayElement, appendFloatElement, appendFloats, appendIntArrayElement, appendIntElement, appendInts, appendLongElement, appendNewLine, appendNewLine, appendNewLine, appendOpenSTag, appendOptionalDoubleElement, appendOptionalFloatElement, appendOptionalIntElement, appendOptionalLongElement, appendSpaces, appendSpaces, appendSTag, appendSTag, appendSTag, appendStringArrayElement, appendStrings, appendSystemNewLine, appendTab, appendTextElement, appendXML, appendXML, appendXML, appendXML, appendXML, appendXMLStructure, appendXMLStructureList, appendXMLTextElementList, countTokens, countTokens, decodeAttribute, decodeAttribute, decodeAttributes, decodeBoolean, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeDouble, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeFloat, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeInt, decodeIntArray, decodeIntArray, decodeIntArray, decodeIntArray, decodeLong, decodeStringArray, decodeStringArray, decodeStringArray, decodeStringArray, decodeXMLStructureList, decodeXMLValueElement, getNamespace, getOptionalAttribute, getOptionalAttribute, getOptionalBooleanAttribute, getOptionalDoubleAttribute, getOptionalFloatAttribute, getOptionalIntAttribute, getOptionalLongAttribute, getRequiredAttribute, getRequiredBooleanAttribute, getRequiredDoubleAttribute, getRequiredFloatAttribute, getRequiredIntAttribute, getRequiredLongAttribute, getTagLine, getXMLTag, hasContent, parseXMLElement, postProcess, preProcess, readXML, readXML, readXML, setConsoleAttributeEnabled, setDefaultRecoverMode, setRecoverMode, spaces, toString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML, writeXML, xmlTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hmi.facegraphics.deformers.DeformerServer
getSize, getValue, updateSize, updateValue
 

Field Detail

scalex

private float scalex

scaley

private float scaley

scalez

private float scalez

smoothCenter

private int smoothCenter

smoothSide

private int smoothSide

useVertexMask

private boolean useVertexMask

invertVertexMask

private boolean invertVertexMask

bez

private Bezier2f bez

client

protected SmoothDeformerClient client
Constructor Detail

SmoothDeformer

public SmoothDeformer()
Method Detail

updateSmoothCenter

public void updateSmoothCenter(int smoothCenter)
Specified by:
updateSmoothCenter in interface SmoothDeformerServer

setSmoothCenter

private void setSmoothCenter(int smoothCenter)

getSmoothCenter

public int getSmoothCenter()
Specified by:
getSmoothCenter in interface SmoothDeformerServer

updateSmoothSide

public void updateSmoothSide(int smoothSide)
Specified by:
updateSmoothSide in interface SmoothDeformerServer

setSmoothSide

private void setSmoothSide(int smoothSide)

getSmoothSide

public int getSmoothSide()
Specified by:
getSmoothSide in interface SmoothDeformerServer

updateScalex

public void updateScalex(float scale)
Specified by:
updateScalex in interface SmoothDeformerServer

setScalex

private void setScalex(float scale)

getScalex

public float getScalex()
Specified by:
getScalex in interface SmoothDeformerServer

updateScaley

public void updateScaley(float scale)
Specified by:
updateScaley in interface SmoothDeformerServer

setScaley

private void setScaley(float scale)

getScaley

public float getScaley()
Specified by:
getScaley in interface SmoothDeformerServer

updateScalez

public void updateScalez(float scale)
Specified by:
updateScalez in interface SmoothDeformerServer

setScalez

private void setScalez(float scale)

getScalez

public float getScalez()
Specified by:
getScalez in interface SmoothDeformerServer

updateUseVM

public void updateUseVM(boolean value)
Specified by:
updateUseVM in interface SmoothDeformerServer

setUseVM

private void setUseVM(boolean value)

getUseVM

public boolean getUseVM()
Specified by:
getUseVM in interface SmoothDeformerServer

updateInvertVM

public void updateInvertVM(boolean value)
Specified by:
updateInvertVM in interface SmoothDeformerServer

setInvertVM

private void setInvertVM(boolean value)

getInvertVM

public boolean getInvertVM()
Specified by:
getInvertVM in interface SmoothDeformerServer

getWeight

float getWeight(int index)
Overrides:
getWeight in class Deformer

copyFrom

public void copyFrom(Deformer sourceIn)
Specified by:
copyFrom in class Deformer

emitSmoothCenter

private void emitSmoothCenter(int smoothCenter)

emitSmoothSide

private void emitSmoothSide(int smoothSide)

emitScalex

private void emitScalex(float scale)

emitScaley

private void emitScaley(float scale)

emitScalez

private void emitScalez(float scale)

emitUseVM

private void emitUseVM(boolean value)

emitInvertVM

private void emitInvertVM(boolean value)

appendContent

public StringBuilder appendContent(StringBuilder buf,
                                   XMLFormatting fmt)
Description copied from class: XMLStructureAdapter
Appends a String to buf that encodes the contents for the XML encoding. MUST BE OVERWRITTEN BY IMPLEMENTATIONS. (The default implementation appends nothing). The encoding should start on a new line, using indentation equal to tab. There should be no newline after the encoding.

Overrides:
appendContent in class Deformer

decodeContent

public void decodeContent(XMLTokenizer tokenizer)
                   throws IOException
Description copied from class: XMLStructureAdapter
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. MUST BE OVERWRITTEN BY IMPLEMENTATIONS.

Overrides:
decodeContent in class Deformer
Throws:
IOException