Class Grid2DLayout

  • All Implemented Interfaces:
    Layout<Object,​Grid>

    public class Grid2DLayout
    extends Object
    implements Layout<Object,​Grid>
    Layout for a 2D single occupancy grid.
    Version:
    $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
    Author:
    Nick Collier
    • Field Detail

      • point

        protected float[] point
    • Constructor Detail

      • Grid2DLayout

        public Grid2DLayout()
      • Grid2DLayout

        public Grid2DLayout​(Grid grid)
    • Method Detail

      • setProjection

        public void setProjection​(Grid grid)
        Description copied from interface: Layout
        Sets the projection associated with this Layout.
        Specified by:
        setProjection in interface Layout<Object,​Grid>
        Parameters:
        grid - the associated projection.
      • getLocation

        public float[] getLocation​(Object obj)
        Description copied from interface: Layout
        Gets the location of the specified object as determined by this layout.
        Specified by:
        getLocation in interface Layout<Object,​Grid>
        Parameters:
        obj - the object whose location we want.
        Returns:
        the location of the object.
      • update

        public void update()
        Description copied from interface: Layout
        Updates this layout.
        Specified by:
        update in interface Layout<Object,​Grid>
      • getName

        public String getName()
        Description copied from interface: Layout
        Gets the name of the layout
        Specified by:
        getName in interface Layout<Object,​Grid>
        Returns:
        name of the layout type
      • getBoundingBox

        public Box getBoundingBox()
        Description copied from interface: Layout
        Gets a bounding box that describes the extent of this layout in location coordinates.
        Specified by:
        getBoundingBox in interface Layout<Object,​Grid>
        Returns:
        a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.