Class TLspBounds3DIcon

All Implemented Interfaces:
ILcdBounded, ILsp3DIcon

public class TLspBounds3DIcon extends Object implements ILsp3DIcon
An ILsp3DIcon that paints the 3D bounds of a delegate ILcdBounded object.

NOTE: this icon implementation only paints the 3D bounds of the delegate bounded, it is up to the user to make sure that the delegate bounded itself is also painted.

  • Constructor Details

    • TLspBounds3DIcon

      public TLspBounds3DIcon(ILcdBounded aDelegate)
      Creates a new icon that paints the bounds of aDelegate
      aDelegate - The delegate icon from which the bounds to be painted is derived.
  • Method Details

    • getColor

      public final Color getColor()
      Returns the color that is used when painting the bounds. By default this is set to red.
      A color.
    • setColor

      public final void setColor(Color aColor)
      Sets the color that is to be used to paint the bounds.
      aColor - The new color to use.
    • paint

      public void paint(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext)
      Description copied from interface: ILsp3DIcon
      Paints the icon to the specified ILcdGLDrawable.

      The caller is responsible for setting up any desired transformations or other application-specific OpenGL state beforehand.

      The icon should not paint anything outside of the bounding box it returns from its getBounds() method.

      Specified by:
      paint in interface ILsp3DIcon
      aGLState - a GL state that defines transformations that must be applied to the basic icon before painting it.
      aGLDrawable - an ILcdGLDrawable
      aPass - the current paint pass
      aContext - provides context information
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.