Class TLspBounds3DIcon
java.lang.Object
com.luciad.view.lightspeed.painter.mesh.TLspBounds3DIcon
- All Implemented Interfaces:
ILcdBounded
,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.
- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionTLspBounds3DIcon
(ILcdBounded aDelegate) Creates a new icon that paints the bounds ofaDelegate
-
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.final Color
getColor()
Returns the color that is used when painting the bounds.void
paint
(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext) Paints the icon to the specified ILcdGLDrawable.final void
Sets the color that is to be used to paint the bounds.
-
Constructor Details
-
TLspBounds3DIcon
Creates a new icon that paints the bounds ofaDelegate
- Parameters:
aDelegate
- The delegate icon from which the bounds to be painted is derived.
-
-
Method Details
-
getColor
Returns the color that is used when painting the bounds. By default this is set to red.- Returns:
- A color.
- Since:
- 2013.0
-
setColor
Sets the color that is to be used to paint the bounds.- Parameters:
aColor
- The new color to use.- Since:
- 2013.0
-
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 interfaceILsp3DIcon
- Parameters:
aGLState
- a GL state that defines transformations that must be applied to the basic icon before painting it.aGLDrawable
- an ILcdGLDrawableaPass
- the current paint passaContext
- provides context information
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
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 ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-