PointBatchPrimitiveSetPartialCartographic Method (CentralBody, IEnumerableCartographic, IEnumerableColor, IEnumerableInt32, IndicesOrderHint, RenderPassHint) |
For convenience. Updates a subset of positions and/or colors in a point batch using
Cartographic positions.
Longitude and latitude are in radians, and altitude is in meters.
This is equivalent to
converting each position in
positions to
Cartesian and calling
SetPartial
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public void SetPartialCartographic(
CentralBody centralBody,
IEnumerable<Cartographic> positions,
IEnumerable<Color> colors,
IEnumerable<int> indices,
IndicesOrderHint indicesOrderHint,
RenderPassHint renderPassHint
)
Public Sub SetPartialCartographic (
centralBody As CentralBody,
positions As IEnumerable(Of Cartographic),
colors As IEnumerable(Of Color),
indices As IEnumerable(Of Integer),
indicesOrderHint As IndicesOrderHint,
renderPassHint As RenderPassHint
)
public:
void SetPartialCartographic(
CentralBody^ centralBody,
IEnumerable<Cartographic>^ positions,
IEnumerable<Color>^ colors,
IEnumerable<int>^ indices,
IndicesOrderHint indicesOrderHint,
RenderPassHint renderPassHint
)
member SetPartialCartographic :
centralBody : CentralBody *
positions : IEnumerable<Cartographic> *
colors : IEnumerable<Color> *
indices : IEnumerable<int> *
indicesOrderHint : IndicesOrderHint *
renderPassHint : RenderPassHint -> unit
Parameters
- centralBody
- Type: AGI.Foundation.CelestialCentralBody
The central body the positions are defined on. - positions
- Type: System.Collections.GenericIEnumerableCartographic
A collection of new positions used to update a subset of positions in the point batch. - colors
- Type: System.Collections.GenericIEnumerableColor
A collection of new colors used to update a subset of colors in the point batch.
There must be one color for each position in positions.
- indices
- Type: System.Collections.GenericIEnumerableInt32
A collection of zero-based indices that map a corresponding position in
positions to a position already in the primitive.
For example, if a primitive is first given 5 positions with
a call to Set, positions 1 and 3 can be modified
with SetPartial by passing in positions containing
two new positions and an indices collection with two
elements, e.g. [1, 3]. The first position in positions
will modify the position at index 1 in the primitive and the second
will modify the position at index 3.
- indicesOrderHint
- Type: AGI.Foundation.Graphics.AdvancedIndicesOrderHint
An optimization hint indicating how indices are sorted.
- renderPassHint
- Type: AGI.Foundation.Graphics.AdvancedRenderPassHint
An optimization hint indicating the RenderPass
implied by colors.
Exceptions 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
SetPartial
for a full discussion.
See Also