Class TriangleTreeVisitor.TriangleTreeDecodedVisitor

java.lang.Object
org.elasticsearch.lucene.spatial.TriangleTreeVisitor.TriangleTreeDecodedVisitor
All Implemented Interfaces:
TriangleTreeVisitor
Direct Known Subclasses:
Component2DVisitor
Enclosing interface:
TriangleTreeVisitor

public abstract static class TriangleTreeVisitor.TriangleTreeDecodedVisitor extends Object implements TriangleTreeVisitor
Visitor for triangle interval tree which decodes the coordinates
  • Constructor Details

    • TriangleTreeDecodedVisitor

      protected TriangleTreeDecodedVisitor(CoordinateEncoder encoder)
  • Method Details

    • visitPoint

      public final void visitPoint(int x, int y)
      Description copied from interface: TriangleTreeVisitor
      visit a node point.
      Specified by:
      visitPoint in interface TriangleTreeVisitor
    • visitDecodedPoint

      protected abstract void visitDecodedPoint(double x, double y)
      Equivalent to visitPoint(int, int) but coordinates are decoded.
    • visitLine

      public final void visitLine(int aX, int aY, int bX, int bY, byte metadata)
      Description copied from interface: TriangleTreeVisitor
      visit a node line.
      Specified by:
      visitLine in interface TriangleTreeVisitor
    • visitDecodedLine

      protected abstract void visitDecodedLine(double aX, double aY, double bX, double bY, byte metadata)
      Equivalent to visitLine(int, int, int, int, byte) but coordinates are decoded.
    • visitTriangle

      public final void visitTriangle(int aX, int aY, int bX, int bY, int cX, int cY, byte metadata)
      Description copied from interface: TriangleTreeVisitor
      visit a node triangle.
      Specified by:
      visitTriangle in interface TriangleTreeVisitor
    • visitDecodedTriangle

      protected abstract void visitDecodedTriangle(double aX, double aY, double bX, double bY, double cX, double cY, byte metadata)
      Equivalent to visitTriangle(int, int, int, int, int, int, byte) but coordinates are decoded.
    • pushX

      public final boolean pushX(int minX)
      Description copied from interface: TriangleTreeVisitor
      Should the visitor visit nodes that have bounds greater or equal than the minX provided.
      Specified by:
      pushX in interface TriangleTreeVisitor
    • pushDecodedX

      protected abstract boolean pushDecodedX(double minX)
      Equivalent to pushX(int) but coordinates are decoded.
    • pushY

      public final boolean pushY(int minY)
      Description copied from interface: TriangleTreeVisitor
      Should the visitor visit nodes that have bounds greater or equal than the minY provided.
      Specified by:
      pushY in interface TriangleTreeVisitor
    • pushDecodedY

      protected abstract boolean pushDecodedY(double minX)
      Equivalent to pushY(int) but coordinates are decoded.
    • push

      public final boolean push(int maxX, int maxY)
      Description copied from interface: TriangleTreeVisitor
      Should the visitor visit nodes that have bounds lower or equal than the maxX and minX provided.
      Specified by:
      push in interface TriangleTreeVisitor
    • pushDecoded

      protected abstract boolean pushDecoded(double maxX, double maxY)
      Equivalent to push(int, int) but coordinates are decoded.
    • push

      public final boolean push(int minX, int minY, int maxX, int maxY)
      Description copied from interface: TriangleTreeVisitor
      Should the visitor visit the tree given the bounding box of the tree. Called before visiting the tree.
      Specified by:
      push in interface TriangleTreeVisitor
    • pushDecoded

      protected abstract boolean pushDecoded(double minX, double minY, double maxX, double maxY)
      Equivalent to push(int, int, int, int) but coordinates are decoded.