artofillusion.animation.distortion
Class BendDistortion

java.lang.Object
  extended by artofillusion.animation.distortion.BendDistortion
All Implemented Interfaces:
Distortion

public class BendDistortion
extends java.lang.Object
implements Distortion


Field Summary
static int NEG_X
           
static int NEG_Y
           
static int NEG_Z
           
static int POS_X
           
static int POS_Y
           
static int POS_Z
           
static int X_AXIS
           
static int Y_AXIS
           
static int Z_AXIS
           
 
Constructor Summary
BendDistortion(int axis, int direction, double angle, boolean forward, Mat4 preTransform, Mat4 postTransform)
           
 
Method Summary
 Distortion duplicate()
          Create a duplicate of this object.
 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.
 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
 

Field Detail

POS_X

public static final int POS_X
See Also:
Constant Field Values

NEG_X

public static final int NEG_X
See Also:
Constant Field Values

POS_Y

public static final int POS_Y
See Also:
Constant Field Values

NEG_Y

public static final int NEG_Y
See Also:
Constant Field Values

POS_Z

public static final int POS_Z
See Also:
Constant Field Values

NEG_Z

public static final int NEG_Z
See Also:
Constant Field Values

X_AXIS

public static final int X_AXIS
See Also:
Constant Field Values

Y_AXIS

public static final int Y_AXIS
See Also:
Constant Field Values

Z_AXIS

public static final int Z_AXIS
See Also:
Constant Field Values
Constructor Detail

BendDistortion

public BendDistortion(int axis,
                      int direction,
                      double angle,
                      boolean forward,
                      Mat4 preTransform,
                      Mat4 postTransform)
Method Detail

setPreviousDistortion

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

Specified by:
setPreviousDistortion in interface Distortion

isIdenticalTo

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

Specified by:
isIdenticalTo in interface Distortion

duplicate

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

Specified by:
duplicate in interface Distortion

transform

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

Specified by:
transform in interface Distortion


Copyright © 1999-2008 by Peter Eastman.