CesiumLanguageWriter.Advanced.CesiumFormattingHelper.HeightReferenceToString C# (CSharp) Méthode

HeightReferenceToString() public static méthode

Converts a CesiumHeightReference to the corresponding string in a CZML stream.
public static HeightReferenceToString ( CesiumHeightReference value ) : string
value CesiumHeightReference The value to convert.
Résultat string
        public static string HeightReferenceToString(CesiumHeightReference value)
        {
            switch (value)
            {
                case CesiumHeightReference.None:
                    return "NONE";
                case CesiumHeightReference.ClampToGround:
                    return "CLAMP_TO_GROUND";
                case CesiumHeightReference.RelativeToGround:
                    return "RELATIVE_TO_GROUND";
                default:
                    throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value");
            }
        }