Class SelectedProjection
java.lang.Object
com.luciad.layers.projectedimagery.SelectedProjection
- All Implemented Interfaces:
AutoCloseable
A projection to display, together with its blend weight.
Several projections can be selected at once so that, for example, a navigation controller can cross-fade between them by animating the weights. The weight scales the whole projection: the effective opacity is the style opacity times the weight, and the effective sky opacity is the style sky opacity times the weight.
- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SelectedProjection
Creates a selected projection.- Parameters:
id- the ID of the projection to display.weight- the blend weight. Must be in the range[0, 1].- Throws:
IllegalArgumentException- when weight < 0 or weight > 1.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getId
Returns the ID of the projection to display.- Returns:
- the ID of the projection to display.
-
getWeight
public double getWeight()Returns the blend weight.- Returns:
- the blend weight.
-
hashCode
public int hashCode() -
equals
-