org.jzy3d.plot3d.transform
Class Translate

java.lang.Object
  extended by org.jzy3d.plot3d.transform.Translate

public class Translate
extends Object

Translate is a Transformer that stores the offset required to perform the effective OpenGL2 translation in the ModelView Matrix.

Author:
Martin Pernollet

Constructor Summary
Translate(Coord3d shift)
          Initialize a Translate.
 
Method Summary
 Coord3d compute(Coord3d input)
          Apply the transformations to the input coordinates.
 void execute(javax.media.opengl.GL2 gl)
          Execute the effective GL transformation held by this Transformer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translate

public Translate(Coord3d shift)
Initialize a Translate.

Parameters:
shift - translation offset.
Method Detail

execute

public void execute(javax.media.opengl.GL2 gl)
Execute the effective GL transformation held by this Transformer.

Parameters:
gl - OpenGL context.

compute

public Coord3d compute(Coord3d input)
Apply the transformations to the input coordinates. Warning: this method is a utility that may not be implemented.


toString

public String toString()
Overrides:
toString in class Object