Class TLspImageProjectionStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.layer.imageprojection.TLspImageProjectionStyle
- All Implemented Interfaces:
ILspWorldElevationStyle
,ILspStyler
Style for an
ILspImageProjectionLayer
.
The style defines an image
that should be projected onto the 3D terrain in an
ILspView
according to the projector
.- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder used to create image projection styles.Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspWorldElevationStyle
ILspWorldElevationStyle.ElevationMode
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.boolean
Always returnsILspWorldElevationStyle.ElevationMode.ON_TERRAIN
, since the image is projected on the terrain.getImage()
Returns the image to be projected onto the terrain.float
Returns the opacity (alpha value) of the projected image.Returns the projector associated with this style.int
hashCode()
boolean
Always returns false, since projected images are always draped, and therefore no distinction between opaque and transparent images is needed.Creates a new builder for image projection styles.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Method Details
-
newBuilder
Creates a new builder for image projection styles.- Returns:
- a new builder for image projection styles
-
asBuilder
Creates a new builder initialized with all the properties of this style. -
isTransparent
public boolean isTransparent()Always returns false, since projected images are always draped, and therefore no distinction between opaque and transparent images is needed.- Specified by:
isTransparent
in classALspStyle
- Returns:
false
-
getElevationMode
Always returnsILspWorldElevationStyle.ElevationMode.ON_TERRAIN
, since the image is projected on the terrain.- Specified by:
getElevationMode
in interfaceILspWorldElevationStyle
- Returns:
ILspWorldElevationStyle.ElevationMode.ON_TERRAIN
-
getProjector
Returns the projector associated with this style. The projector's coordinates must be defined in model coordinates.- Returns:
- an image projector
-
getImage
Returns the image to be projected onto the terrain. The image is provided in the form of anALspTextureObject
instance for the sake of efficiency. A projector could, for instance, be used to project a video feed onto the 3D terrain, in which case it would be important to avoid unnecessary data processing on the video frames. Using texture objects allows implementations to use the shortest possible path from the image source to the GPU. The downside to this is some additional implementation complexity: to ensure proper management of GPU memory, the returned texture object should be added to the view'sILspGLResourceCache
and the styler must be prepared to recreate the image if it is evicted from the cache.- Returns:
- the image to be projected on the terrain
-
getOpacity
public float getOpacity()Returns the opacity (alpha value) of the projected image. If the image has an alpha channel itself, it is multiplied by this value.- Returns:
- the opacity of the projected image
-
equals
-
hashCode
public int hashCode()
-