|
LuciadCPillar 2026.1
|
A projection to display, together with its blend weight. More...
#include <luciad/layers/projectedimagery/ProjectedImageryLayer.h>
Public Member Functions | |
| SelectedProjection (std::string id, double weight) | |
| Creates a selected projection. | |
| const std::string & | getId () const |
| Returns the ID of the projection to display. | |
| double | getWeight () const |
| Returns the blend weight. | |
| bool | operator== (const SelectedProjection &other) const =default |
| Compares two selected projections for equality. | |
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.
| luciad::SelectedProjection::SelectedProjection | ( | std::string | id, |
| double | weight ) |
Creates a selected projection.
| id | the ID of the projection to display. |
| weight | the blend weight. Must be in the range [0, 1]. |
| luciad::InvalidArgumentException | when weight < 0 or weight > 1. |
|
inline |
Returns the ID of the projection to display.
|
inline |
Returns the blend weight.
|
default |
Compares two selected projections for equality.
| other | the selected projection to compare with. |