/// <summary> /// Writes the value expressed as a <c>ArcType</c>, which is the arc type. /// </summary> /// <param name="value">The style of an arc.</param> public void WriteArcType(CesiumArcType value) { const string PropertyName = ArcTypePropertyName; if (ForceInterval) { OpenIntervalIfNecessary(); } if (IsInterval) { Output.WritePropertyName(PropertyName); } Output.WriteValue(CesiumFormattingHelper.ArcTypeToString(value)); }
public static string ArcTypeToString(CesiumArcType value) { switch (value) { case CesiumArcType.None: return("NONE"); case CesiumArcType.Geodesic: return("GEODESIC"); case CesiumArcType.Rhumb: return("RHUMB"); default: throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value"); } }