Class Transform

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

public class Transform extends 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 Details

    • Transform

      public Transform()
      Initialize a list of Transformer.
    • Transform

      public Transform(Transformer transformer)
      Initialize a list of Transformer with a single Transformer as sequence.
    • Transform

      public Transform(Transformer... transformer)
    • Transform

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

    • add

      public void add(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(IPainter painter)
      Load the identity matrix and executes the stored sequence of Transformer.
      Parameters:
      painter - TODO
    • execute

      public void execute(IPainter painter, boolean loadIdentity)
    • compute

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

      public String toString()
      Overrides:
      toString in class Object