Package org.jzy3d.plot3d.transform
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.
-
-
Constructor Summary
Constructors Constructor Description TranslateDrawable(Drawable drawable, boolean reverse)
-
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.Drawable
getDrawable()
boolean
isReverse()
void
setDrawable(Drawable drawable)
void
setReverse(boolean reverse)
String
toString()
void
translateTo(IPainter painter, Coord3d center, boolean reverse)
-
-
-
Field Detail
-
drawable
protected Drawable drawable
-
reverse
protected boolean reverse
-
-
Constructor Detail
-
TranslateDrawable
public TranslateDrawable(Drawable drawable, boolean reverse)
-
-
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
-
getDrawable
public Drawable getDrawable()
-
setDrawable
public void setDrawable(Drawable drawable)
-
isReverse
public boolean isReverse()
-
setReverse
public void setReverse(boolean reverse)
-
-