Exemple #1
0
        private SlopeMap CreateSlope()
        {
            Rectangle2D rect  = Rectangle2D.Empty;
            SlopeMap    slope = new SlopeMap(m_sceneControl.Scene);

            slope.Opacity       = m_opacity;
            slope.BorderVisible = m_bShowBorer;

            slope.DisplayStyle = m_fillMode;

            //设置坡度坡向调色板
            ColorDictionary colorDict = new ColorDictionary();

            colorDict[0]          = Color.Blue;
            colorDict[10]         = Color.Green;
            colorDict[30]         = Color.Red;
            slope.ColorDictTable  = colorDict;
            slope.MaxVisibleSlope = m_maxVisibleSlope;
            slope.MinVisibleSlope = m_minVisibleSlope;

            slope.Build();

            return(slope);
        }