artofillusion.animation.distortion
Class Distortion

java.lang.Object
  extended by artofillusion.animation.distortion.Distortion
Direct Known Subclasses:
BendDistortion, CustomDistortion, IKDistortion, PoseDistortion, ScaleDistortion, ShatterDistortion, SkeletonShapeDistortion, TransformDistortion, TwistDistortion

public abstract class Distortion
extends java.lang.Object

This interface defines an object that transforms one mesh into another one.


Constructor Summary
Distortion()
           
 
Method Summary
abstract  Distortion duplicate()
          Create a duplicate of this object.
 Distortion getPreviousDistortion()
          Get the previous distortion that should be applied before this one.
abstract  boolean isIdenticalTo(Distortion d)
          Determine whether this distortion is identical to another one.
 void setPreviousDistortion(Distortion previous)
          Set another distortion which should be applied before this one.
abstract  Mesh transform(Mesh obj)
          Apply the Distortion, and return a transformed mesh.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Distortion

public Distortion()
Method Detail

setPreviousDistortion

public void setPreviousDistortion(Distortion previous)
Set another distortion which should be applied before this one. This allows Distortions to be chained.


getPreviousDistortion

public Distortion getPreviousDistortion()
Get the previous distortion that should be applied before this one. This may be null.


isIdenticalTo

public abstract boolean isIdenticalTo(Distortion d)
Determine whether this distortion is identical to another one.


duplicate

public abstract Distortion duplicate()
Create a duplicate of this object.


transform

public abstract Mesh transform(Mesh obj)
Apply the Distortion, and return a transformed mesh.



Copyright © 1999-2011 by Peter Eastman.