Module imp

Class Overlay

java.lang.Object
de.grogra.imp.overlay.Overlay

public class Overlay extends Object
A set of Nodes that are displayed on top of a View.
  • Constructor Details

    • Overlay

      public Overlay()
  • Method Details

    • add

      public void add(OverlayShape n)
    • clear

      public void clear()
    • isEmpty

      public boolean isEmpty()
    • isInShape

      public boolean isInShape(Point2f n)
      Test if the given node is in the shapes of the overlay
    • draw

      public void draw(Object renderer)
      The renderer is the managing object that deal with the rendering. (RenderState in imp 3d)
      Parameters:
      renderer -
    • getCenter

      public Point2f getCenter()
      Get the center point of the shapes.
    • getRadius

      public float getRadius()
      Get radius of the shapes. aka the biggest distance between the center and the outer part of the shape.