Exemplo n.º 1
0
        /// <summary>
        /// 给最后一行花纹库进行比例尺转换
        /// </summary>
        /// <param name="height"></param>
        /// <returns></returns>
        public double scaleConversionForLastPattern(double height)
        {
            ScaleConversion scale = new ScaleConversion();

            height = scale.getPaintNumber(height, plottingScale);
            return(height);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加花纹库的方法
        /// </summary>
        public void addPattern(string mrockName, double startDeep, double endDeep)
        {
            mPatternLibrary pattern = new mPatternLibrary();

            ScaleConversion scale = new ScaleConversion();

            startDeep = scale.getPaintNumber(startDeep, plottingScale);
            endDeep   = scale.getPaintNumber(endDeep, plottingScale);
            //调用添加花纹的方法
            pattern.getPattern(model, mrockName, startDeep, endDeep);
        }