org.jzy3d.plot3d.transform
Class Scale

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

public class Scale
extends Object

Scale is a Transformer that stores the scaling factor required to perform the effective OpenGL2 scaling in the ModelView Matrix.

Author:
Martin Pernollet

Constructor Summary
Scale(Coord3d scale)
          Initialize a Scale.
 
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

Scale

public Scale(Coord3d scale)
Initialize a Scale.

Parameters:
scale - scaling factor.
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