TextureLayer
Description
- Derived from
-
TerrainLayerProvider abstract
ILightingProperty
A scene entity that adds a texture layer to the terrain.
Up to three IPixelPyramid objects may be used as input for a texture layer. The content mapping specifies how the color channels of each input pixel pyramid shall be interpreted (see ContentMapping).
The default value for the ILightingProperty.Lighting property is true
.
Public / Constructors
TextureLayer
Creates a new instance of TextureLayer.
The number of content pixel pyramids (see ContentCount) is determined from the values of the atlasId*
arguments that are passed to this constructor. Their values cannot be changed later. The texture and content cache IDs may be changed later by using CacheId2.
Public / Methods
CacheId
2 overloads
Returns the cache ID of the given content index.
Sets the cache ID of the given content index.
ContentAt
2 overloads
Returns the index in-th pixel pyramid content.
- See also
Sets the index in-th pixel pyramid content.
ContentPreparedAt
Returns the prepared content of this texture layer.
The returned pixel pyramid takes into account all layer properties:
Use this pyramid to export the texture layer to a dataset.
ExportDataset
Exports the prepared content of this texture layer to a dataset.
- IOException
-
If an I/O error has occurred while creating the output dataset.
- See also
Public / Attributes
ContentMapping
The terrain slot mapping for the input pixel pyramids.
The default mapping uses the red, green and blue channels of the pixel pyramid at index zero for TerrainSlotMapping.Albedo and the alpha channel of the same pixel pyramid as TerrainSlotMapping.Opacity.
GroundSampleDistance
Restricts the set of content tiles to the given ground sample distance range.
The ground sample distance of a content tile is the real-world distance that corresponds to the edge length of a tile pixel.
Defaults to RangeD.Pos.
IsLocked
Is this texture layer currently in locked mode?
In locked mode, only those pyramid files that are already present in the cache will be returned. In effect, the underlying content pyramid will never be accessed.
Opaque
Is this texture layer opaque?
If a texture layer is opaque, it will occlude all layers below, i.e. those with smaller sort index values.
Defaults to false
.
Preload
Shall the content at index 0
of this texture layer be preloaded in the background?
Defaults to false
.
- See also