ShapeAttributes

open class ShapeAttributes(var isDrawInterior: Boolean, var isDrawOutline: Boolean, var isDrawVerticals: Boolean, var isDepthTest: Boolean, var isLightingEnabled: Boolean, interiorColor: Color, outlineColor: Color, var outlineWidth: Float, var interiorImageSource: ImageSource?, var outlineImageSource: ImageSource?, var isPickInterior: Boolean, var isPickOutline: Boolean, var shadowMode: ShadowMode = ShadowMode.ENABLED)

Holds attributes applied to geographic shapes.

Constructors

Link copied to clipboard
constructor(isDrawInterior: Boolean, isDrawOutline: Boolean, isDrawVerticals: Boolean, isDepthTest: Boolean, isLightingEnabled: Boolean, interiorColor: Color, outlineColor: Color, outlineWidth: Float, interiorImageSource: ImageSource?, outlineImageSource: ImageSource?, isPickInterior: Boolean, isPickOutline: Boolean, shadowMode: ShadowMode = ShadowMode.ENABLED)
constructor()
constructor(attributes: ShapeAttributes)

Properties

Link copied to clipboard

Indicates the color and opacity of shape interiors.

Link copied to clipboard

Indicates the image source applied to shape interiors. When null, shape interiors are displayed in the interior color. When non-null, image pixels appear in shape interiors, with each image pixel multiplied by the interior RGBA color. Use a white interior color to display unmodified image pixels.
By default, interior image sources are displayed as a repeating pattern across shape interiors. The pattern matches image pixels to screen pixels, such that the image appears to repeat in screen coordinates.

Link copied to clipboard

Indicates whether shape depth-testing is enabled. When true, shapes may be occluded by terrain and other shapes in certain viewing situations. When false, shapes will not be occluded by terrain and other shapes.

Link copied to clipboard

Indicates whether shape interiors are enabled.

Link copied to clipboard

Indicates whether shape outlines are enabled.

Link copied to clipboard

Indicates whether shape vertical outlines are enabled. Not all shapes display vertical outlines. Those that do not ignore this property. When enabled, those that do display vertical lines extending from the shape's specified positions to the ground.

Link copied to clipboard

Sets whether shape lighting is enabled. When true, the appearance of a shape's color and image source may be modified by shading applied from a global light source. Lambertian shading currently only applies to mesh shapes (TriangleMesh / GeographicMesh); other shape types ignore this flag. Shadow casting/receiving is controlled independently by shadowMode, matching GIS industrial conventions.

Link copied to clipboard

Allows to pick interior elements of shape

Link copied to clipboard

Allows to pick outline elements of shape

Link copied to clipboard

Indicates the color and opacity of shape outlines.

Link copied to clipboard

Indicates the image source applied to shape outlines.

Link copied to clipboard

Indicates the width of shape outlines.

Link copied to clipboard

Whether the shape participates in cascaded sun shadows when earth.worldwind.layer.shadow.ShadowLayer is in the layer list. See ShadowMode for the cast/receive matrix. Default ShadowMode.ENABLED means the shape both casts and receives. Decoupled from isLightingEnabled so an unlit shape can still drop a shadow, and a lit shape can opt out of casting onto terrain.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int