Class TranslateDrawable

java.lang.Object
org.jzy3d.plot3d.transform.TranslateDrawable
All Implemented Interfaces:
Transformer

public class TranslateDrawable extends Object implements Transformer
Translate drawable to (0,0,0) or back to its previous position according to the input parameters.
  • Field Details

    • drawable

      protected Drawable drawable
    • reverse

      protected boolean reverse
  • Constructor Details

    • TranslateDrawable

      public TranslateDrawable(Drawable drawable, boolean reverse)
  • Method Details

    • execute

      public void execute(IPainter painter)
      Description copied from interface: Transformer
      Execute the transformation to the current GL context. As Transformer are usually help by an invalid input: '{@' AbstractDrawable}, the transformation will apply to this invalid input: '{@' AbstractDrawable}. Computation is performed by GPU.
      Specified by:
      execute in interface Transformer
      Parameters:
      painter - TODO
    • translateTo

      public void translateTo(IPainter painter, Coord3d center, boolean reverse)
    • compute

      public Coord3d compute(Coord3d input)
      Description copied from interface: Transformer
      Apply the transformations to the input coordinates. Computation is performed by CPU.
      Specified by:
      compute in interface Transformer
    • getDrawable

      public Drawable getDrawable()
    • setDrawable

      public void setDrawable(Drawable drawable)
    • isReverse

      public boolean isReverse()
    • setReverse

      public void setReverse(boolean reverse)
    • toString

      public String toString()
      Overrides:
      toString in class Object