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 Detail

      • execute

        void execute​(IPainter painter)
        Execute the transformation to the current GL context. As Transformer are usually help by an {@ AbstractDrawable}, the transformation will apply to this {@ 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.