Package org.graphstream.ui.view.camera
Interface Backend
public interface Backend
Class used by DefaultCamera, implementation in gs-ui-...
-
Method Summary
Modifier and Type Method Description voidbeginTransform()Begin the work on the actual transformation matrix.voidendTransform()End the work on the actual transformation matrix, installing it as the actual modelview matrix.Point3inverseTransform(double x, double y, double z)Pass a point in transformed coordinates (pixels) into the reverse transform (into graph units).Point3inverseTransform(Point3 p)Transform a point in pixel units into graph units, the given point is transformed in place and also returned.voidpopTransform()Pop the actual transformation of the matrix stack, restoring the previous one in the stack.voidpushTransform()Push the actual transformation on the matrix stack, installing a copy of it on the top of the stack.voidrotate(double angle, double ax, double ay, double az)Multiply the top-most matrix by a rotation matrix.voidscale(double sx, double sy, double sz)Multiply the top-most matrix by a scaling matrix.voidsetAntialias(Boolean on)Enable or disable anti-aliasing.voidsetIdentity()Make the top-most matrix as an identity matrix.voidsetQuality(Boolean on)Enable or disable the hi-quality mode.Point3transform(double x, double y, double z)Transform a point in graph units into pixel units.Point3transform(Point3 p)Transform a point in graph units into pixel units, the given point is transformed in place and also returned.voidtranslate(double tx, double ty, double tz)Multiply the to-most matrix by a translation matrix.
-
Method Details
-
transform
Transform a point in graph units into pixel units.- Returns:
- the transformed point.
-
inverseTransform
Pass a point in transformed coordinates (pixels) into the reverse transform (into graph units).- Returns:
- the transformed point.
-
transform
Transform a point in graph units into pixel units, the given point is transformed in place and also returned. -
inverseTransform
Transform a point in pixel units into graph units, the given point is transformed in place and also returned. -
pushTransform
void pushTransform()Push the actual transformation on the matrix stack, installing a copy of it on the top of the stack. -
beginTransform
void beginTransform()Begin the work on the actual transformation matrix. -
setIdentity
void setIdentity()Make the top-most matrix as an identity matrix. -
translate
void translate(double tx, double ty, double tz)Multiply the to-most matrix by a translation matrix. -
rotate
void rotate(double angle, double ax, double ay, double az)Multiply the top-most matrix by a rotation matrix. -
scale
void scale(double sx, double sy, double sz)Multiply the top-most matrix by a scaling matrix. -
endTransform
void endTransform()End the work on the actual transformation matrix, installing it as the actual modelview matrix. If you do not call this method, all the scaling, translation and rotation are lost. -
popTransform
void popTransform()Pop the actual transformation of the matrix stack, restoring the previous one in the stack. -
setAntialias
Enable or disable anti-aliasing. -
setQuality
Enable or disable the hi-quality mode.
-