Class ShapeLineIntersector

    • Field Detail

      • renderables

        protected java.lang.Iterable<Renderable> renderables
    • Constructor Detail

      • ShapeLineIntersector

        public ShapeLineIntersector​(Terrain terrain,
                                    int numThreads)
    • Method Detail

      • getRenderables

        public java.lang.Iterable<Renderable> getRenderables()
      • setRenderables

        public void setRenderables​(java.lang.Iterable<Renderable> renderables)
        Specifies the renderables to intersect with the line.
        Parameters:
        renderables - the renderables to intersect.
      • hasRenderables

        public boolean hasRenderables()
        Indicates whether this intersector has renderables specified.
        Returns:
        true if this intersector has renderables, otherwise false.
      • doPerformIntersection

        protected void doPerformIntersection​(Position position)
                                      throws java.lang.InterruptedException
        Description copied from class: LineIntersector
        Called to execute an intersection test for one position.
        Specified by:
        doPerformIntersection in class LineIntersector
        Parameters:
        position - the position to test.
        Throws:
        java.lang.InterruptedException - if the operation is interrupted.s
      • performRenderableIntersection

        protected java.util.List<Intersection> performRenderableIntersection​(Line line,
                                                                             Renderable renderable)
                                                                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException