示例#1
0
            public override void ComputeLookupTableForAnalysis(double sensorElevation)
            {
                var slopeRange = new VisualisationRangeWithColor
                {
                    ValueStart = 0,
                    ValueEnd   = 100,
                    ColorStart = new ColorHSL(1.0, 1.0, 1.0), // White
                    ColorEnd   = new ColorHSL(1.0, 1.0, 0.3)  // Dark Red
                };

                ComputeLinearRanges(slopeRange);
            }
示例#2
0
            public override void ComputeLookupTableForAnalysis(double sensorElevation)
            {
                var rightAspect = new VisualisationRangeWithColor
                {
                    ValueStart = 0,
                    ValueEnd   = 180,
                    ColorStart = new ColorHSL(1.0, 1.0, 1.0), // White
                    ColorEnd   = new ColorHSL(1.0, 1.0, 0.3)  // Dark Red
                };
                var leftAspect = new VisualisationRangeWithColor
                {
                    ValueStart = 180,                         // For the other side of the aspect we loop back to the 0 value
                    ValueEnd   = 359,
                    ColorStart = new ColorHSL(1.0, 1.0, 0.3), // Dark Red
                    ColorEnd   = new ColorHSL(1.0, 1.0, 1.0)  // White
                };

                ComputeLinearRanges(rightAspect, leftAspect);
            }
示例#3
0
            public override void ComputeLookupTableForAnalysis(double sensorElevation)
            {
                var normalElevationRange = new VisualisationRangeWithColor
                {
                    ValueStart = 0,
                    ValueEnd   = (int)sensorElevation - 201,
                    ColorStart = new ColorHSL(0.20, 0.35, 0.02),
                    ColorEnd   = new ColorHSL(0.50, 0.85, 0.85)
                }; // A clear gradient for pixels inside the expected normal model height

                var extraElevationRange = new VisualisationRangeWithColor
                {
                    ValueStart = (int)sensorElevation - 200,
                    ValueEnd   = (int)sensorElevation + 1,
                    ColorStart = new ColorHSL(1.00, 0.85, 0.76),
                    ColorEnd   = new ColorHSL(0.50, 0.85, 0.99)
                }; // A fallback gradiend for those outside (TODO: set sensible colors here)

                ComputeLinearRanges(normalElevationRange, extraElevationRange);
            }