Package org.jzy3d.plot3d.transform
Class TranslateDrawable
java.lang.Object
org.jzy3d.plot3d.transform.TranslateDrawable
- All Implemented Interfaces:
Transformer
Translate drawable to (0,0,0) or back to its previous position according to the input parameters.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionApply the transformations to the input coordinates.void
Execute the transformation to the current GL context.boolean
void
setDrawable
(Drawable drawable) void
setReverse
(boolean reverse) toString()
void
translateTo
(IPainter painter, Coord3d center, boolean reverse)
-
Field Details
-
drawable
-
reverse
protected boolean reverse
-
-
Constructor Details
-
TranslateDrawable
-
-
Method Details
-
execute
Description copied from interface:Transformer
Execute the transformation to the current GL context. AsTransformer
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 interfaceTransformer
- Parameters:
painter
- TODO
-
translateTo
-
compute
Description copied from interface:Transformer
Apply the transformations to the input coordinates. Computation is performed by CPU.- Specified by:
compute
in interfaceTransformer
-
getDrawable
-
setDrawable
-
isReverse
public boolean isReverse() -
setReverse
public void setReverse(boolean reverse) -
toString
-