コード例 #1
0
        public void Test_TAGProcessorStateBase_SetElevationMappingModeState()
        {
            var state = new TAGProcessorStateBase();

            state.ElevationMappingMode.Should().Be(ElevationMappingMode.LatestElevation);

            state.SetElevationMappingModeState(ElevationMappingMode.MinimumElevation);
            state.ElevationMappingMode.Should().Be(ElevationMappingMode.MinimumElevation);
        }
コード例 #2
0
        public override bool ProcessUnsignedIntegerValue(TAGValueMatcherState state, TAGProcessorStateBase valueSink,
                                                         TAGDictionaryItem valueType, uint value)
        {
            if (valueType.Type == TAGDataType.t8bitUInt &&
                (value == (byte)ElevationMappingMode.LatestElevation ||
                 value == (byte)ElevationMappingMode.MinimumElevation))
            {
                valueSink.SetElevationMappingModeState((ElevationMappingMode)value);
                return(true);
            }

            return(false);
        }