Skip navigation links
LuciadFusion
2023.1.07

Package com.luciad.view.lightspeed.style

Provides a generic model for styles.

See: Description

Package com.luciad.view.lightspeed.style Description

Provides a generic model for styles. The goal of this package is to describe style in a way that is independent of particular painter implementations. In other words, it is up to the painter to determine which OpenGL state needs to be set in order to apply a particular style.

Style is modeled by ALspStyle and its descendants:

The concrete style classes use the builder pattern for convenient construction of new styles.

This styler subpackage provides the interface ILspStyler to associate styles with domain objects. For convenience, the above styles also implement the ILspStyler interface by always returning themselves.

Stylers use an event mechanism which allows them to notify a painter explicitly when the style of a particular object (or of all objects) has changed. This enables the painter to perform more efficient rendering and caching, e.g. by grouping objects with the same style and rendering them in a single batch.

Since:
2012.0
Skip navigation links
LuciadFusion
2023.1.07