public class TLspBounds3DIcon extends java.lang.Object implements ILsp3DIcon
ILsp3DIconthat paints the 3D bounds of a delegate
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 and Description|
Creates a new icon that paints the bounds of
|Modifier and Type||Method and Description|
Returns the color that is used when painting the bounds.
Paints the icon to the specified ILcdGLDrawable.
Sets the color that is to be used to paint the bounds.
public TLspBounds3DIcon(ILcdBounded aDelegate)
aDelegate- The delegate icon from which the bounds to be painted is derived.
public final java.awt.Color getColor()
public final void setColor(java.awt.Color aColor)
aColor- The new color to use.
public void paint(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext)
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.
public ILcdBounds getBounds()
ILcdBoundsby which the geometry of this
ILcdBoundedobject 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
You can create undefined bounds using the default constructors