Interface Backend


public interface Backend
Class used by DefaultCamera, implementation in gs-ui-...
  • Method Summary

    Modifier and Type Method Description
    void beginTransform()
    Begin the work on the actual transformation matrix.
    void endTransform()
    End the work on the actual transformation matrix, installing it as the actual modelview matrix.
    Point3 inverseTransform​(double x, double y, double z)
    Pass a point in transformed coordinates (pixels) into the reverse transform (into graph units).
    Point3 inverseTransform​(Point3 p)
    Transform a point in pixel units into graph units, the given point is transformed in place and also returned.
    void popTransform()
    Pop the actual transformation of the matrix stack, restoring the previous one in the stack.
    void pushTransform()
    Push the actual transformation on the matrix stack, installing a copy of it on the top of the stack.
    void rotate​(double angle, double ax, double ay, double az)
    Multiply the top-most matrix by a rotation matrix.
    void scale​(double sx, double sy, double sz)
    Multiply the top-most matrix by a scaling matrix.
    void setAntialias​(Boolean on)
    Enable or disable anti-aliasing.
    void setIdentity()
    Make the top-most matrix as an identity matrix.
    void setQuality​(Boolean on)
    Enable or disable the hi-quality mode.
    Point3 transform​(double x, double y, double z)
    Transform a point in graph units into pixel units.
    Point3 transform​(Point3 p)
    Transform a point in graph units into pixel units, the given point is transformed in place and also returned.
    void translate​(double tx, double ty, double tz)
    Multiply the to-most matrix by a translation matrix.
  • Method Details

    • transform

      Point3 transform​(double x, double y, double z)
      Transform a point in graph units into pixel units.
      Returns:
      the transformed point.
    • inverseTransform

      Point3 inverseTransform​(double x, double y, double z)
      Pass a point in transformed coordinates (pixels) into the reverse transform (into graph units).
      Returns:
      the transformed point.
    • transform

      Point3 transform​(Point3 p)
      Transform a point in graph units into pixel units, the given point is transformed in place and also returned.
    • inverseTransform

      Point3 inverseTransform​(Point3 p)
      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

      void setAntialias​(Boolean on)
      Enable or disable anti-aliasing.
    • setQuality

      void setQuality​(Boolean on)
      Enable or disable the hi-quality mode.