/// <summary>
        /// Writes the value expressed as a <c>cornerType</c>, which is the corner style.
        /// </summary>
        /// <param name="value">The style of a corner.</param>
        public void WriteCornerType(CesiumCornerType value)
        {
            const string PropertyName = CornerTypePropertyName;

            if (ForceInterval)
            {
                OpenIntervalIfNecessary();
            }
            if (IsInterval)
            {
                Output.WritePropertyName(PropertyName);
            }
            Output.WriteValue(CesiumFormattingHelper.CornerTypeToString(value));
        }
示例#2
0
        /// <summary>
        /// Converts a <see cref="CesiumCornerType"/> to the corresponding string in a CZML stream.
        /// </summary>
        /// <param name="value">The value to convert.</param>
        /// <returns>The string representing the specified value.</returns>
        public static string CornerTypeToString(CesiumCornerType value)
        {
            switch (value)
            {
            case CesiumCornerType.Rounded:
                return("ROUNDED");

            case CesiumCornerType.Mitered:
                return("MITERED");

            case CesiumCornerType.Beveled:
                return("BEVELED");

            default:
                throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value");
            }
        }
        public void TestCornerTypeToString(CesiumCornerType value)
        {
            string s = CesiumFormattingHelper.CornerTypeToString(value);

            Assert.IsNotNull(s);
        }
 /// <summary>
 /// Converts a <see cref="CesiumCornerType"/> to the corresponding string in a CZML stream.
 /// </summary>
 /// <param name="value">The value to convert.</param>
 /// <returns>The string representing the specified value.</returns>
 public static string CornerTypeToString(CesiumCornerType value)
 {
     switch (value)
     {
         case CesiumCornerType.Rounded:
             return "ROUNDED";
         case CesiumCornerType.Mitered:
             return "MITERED";
         case CesiumCornerType.Beveled:
             return "BEVELED";
         default:
             throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value");
     }
 }