ShadedReliefFunction

Base Type: RasterFunction

A class for a raster shaded relief function.

Remarks

Generates a shaded relief from a given elevation model and color map.

Examples

C#

RenderingRule renderRule = new RenderingRule();

ShadedReliefFunction function = new ShadedReliefFunction();

ShadedReliefFunctionArguments argument = new ShadedReliefFunctionArguments();

 

HsvColor fromColor = new HsvColor();

fromColor.Hue = 0; //red

fromColor.Saturation = 100;

fromColor.Value = 100;

HsvColor toColor = new HsvColor();

toColor.Hue = 240; //blue

toColor.Saturation = 100;

toColor.Value = 100;

AlgorithmicColorRamp ramp = new AlgorithmicColorRamp();

ramp.FromColor = fromColor;

ramp.ToColor = toColor;

argument.Names = new string[] {"ColorRamp", "Altitude", "Azimuth", "ZFactor"};

argument.Values = new object[] { (ColorRamp)ramp, altitude, azimuth, zfactor }; //all double numbers

renderRule.Arguments = argument;

renderRule.Function = function;

renderRule.VariableName = "Raster"; //use Raster

10/23/2013