org.jzy3d.plot3d.transform
Class Transform

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

public class Transform
extends java.lang.Object

A Transform stores a sequence of Transformers, that are of concrete type Rotate, Scale, Translate. When a Transform is executed by default, it first loads the identity matrix before executing the sequence of Transformers.

Author:
Martin Pernollet

Constructor Summary
Transform()
          Initialize a list of Transformer.
Transform(Transform transform)
          Initialize a list of Transformer with the sequence hold by the given Transform.
Transform(org.jzy3d.plot3d.transform.Transformer transformer)
          Initialize a list of Transformer with a single Transformer as sequence.
 
Method Summary
 void add(Transform transform)
          Appends a Transform to the current Transform.
 void add(org.jzy3d.plot3d.transform.Transformer next)
          Appends a Transformer to the sequence that this Transform must performs.
 Coord3d compute(Coord3d input)
          Apply the transformations to the input coordinate
 void execute(javax.media.opengl.GL gl)
          Load the identity matrix and executes the stored sequence of Transformer.
 void execute(javax.media.opengl.GL gl, boolean loadIdentity)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transform

public Transform()
Initialize a list of Transformer.


Transform

public Transform(org.jzy3d.plot3d.transform.Transformer transformer)
Initialize a list of Transformer with a single Transformer as sequence.


Transform

public Transform(Transform transform)
Initialize a list of Transformer with the sequence hold by the given Transform.

Method Detail

add

public void add(org.jzy3d.plot3d.transform.Transformer next)
Appends a Transformer to the sequence that this Transform must performs.

Parameters:
next -

add

public void add(Transform transform)
Appends a Transform to the current Transform.

Parameters:
next -

execute

public void execute(javax.media.opengl.GL gl)
Load the identity matrix and executes the stored sequence of Transformer.

Parameters:
gl - OpenGL context

execute

public void execute(javax.media.opengl.GL gl,
                    boolean loadIdentity)

compute

public Coord3d compute(Coord3d input)
Apply the transformations to the input coordinate


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object