Package org.jzy3d.plot3d.transform
Class Translate
- java.lang.Object
-
- org.jzy3d.plot3d.transform.Translate
-
- All Implemented Interfaces:
Transformer
public class Translate extends Object implements Transformer
Translate is aTransformer
that stores the offset required to perform the effective OpenGL2 translation in the ModelView Matrix.- Author:
- Martin Pernollet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coord3d
compute(Coord3d input)
Apply the transformations to the input coordinates.void
execute(IPainter painter)
Execute the transformation to the current GL context.String
toString()
-
-
-
Constructor Detail
-
Translate
protected Translate()
-
Translate
public Translate(Coord3d shift)
Initialize a Translate.- Parameters:
shift
- translation offset.
-
-
Method Detail
-
execute
public void execute(IPainter painter)
Description copied from interface:Transformer
Execute the transformation to the current GL context. AsTransformer
are usually help by an {@ AbstractDrawable}, the transformation will apply to this {@ AbstractDrawable}. Computation is performed by GPU.- Specified by:
execute
in interfaceTransformer
- Parameters:
painter
- TODO
-
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 interfaceTransformer
-
-