Interface Transformer

All Known Implementing Classes:
Rotate, Scale, Translate, TranslateDrawable

public interface Transformer
A Transformer is able to execute a transformation into the OpenGL ModelView Matrix. A Transformer is basically a Functor object that stores a transformation, and performs the effective GL2 call to perform the transformation.
Author:
Martin Pernollet
  • Method Summary

    Modifier and Type
    Method
    Description
    Apply the transformations to the input coordinates.
    void
    execute(IPainter painter)
    Execute the transformation to the current GL context.
  • Method Details

    • execute

      void execute(IPainter painter)
      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.
      Parameters:
      painter - TODO
    • compute

      Coord3d compute(Coord3d input)
      Apply the transformations to the input coordinates. Computation is performed by CPU.