Click or drag to resize

MarkerBatchPrimitiveSetCartographic Method (CentralBody, IEnumerableCartographic, MarkerBatchPrimitiveOptionalParameters, RenderPassHint)

For convenience. Defines the positions and optional per-marker parameters of markers in a marker batch using Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. renderPassHint is provided for efficiency. This is equivalent to converting each position in positions to Cartesian and calling Set(IEnumerableCartesian, MarkerBatchPrimitiveOptionalParameters, RenderPassHint).

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.2.399.0 (19.2.399.0)
Syntax
public void SetCartographic(
	CentralBody centralBody,
	IEnumerable<Cartographic> positions,
	MarkerBatchPrimitiveOptionalParameters optionalParameters,
	RenderPassHint renderPassHint
)

Parameters

centralBody
Type: AGI.Foundation.CelestialCentralBody
The central body the positions are defined on.
positions
Type: System.Collections.GenericIEnumerableCartographic
The new positions for markers in the marker batch.
optionalParameters
Type: AGI.Foundation.GraphicsMarkerBatchPrimitiveOptionalParameters
Optional per-marker parameters corresponding to positions. Each per-marker parameter must have the same number of elements as positions.
renderPassHint
Type: AGI.Foundation.Graphics.AdvancedRenderPassHint
An optimization hint indicating the RenderPass implied by per-marker colors defined in optionalParameters.
Exceptions
ExceptionCondition
ArgumentNullExceptioncentralBody is .
InvalidOperationException The primitive's ReferenceFrame is not equal to centralBody fixed frame.
Remarks

centralBody is used to convert positions to Cartesian. The primitive's ReferenceFrame must be equal to the centralBody fixed frame. If the primitive's ReferenceFrame is changed after calling this method, the Cartesian positions stored by the primitive are not modified and are unlikely to represent the original Cartographic positions provided to this method.

See Set(IEnumerableCartesian, MarkerBatchPrimitiveOptionalParameters, RenderPassHint) for a full discussion.

See Also