Newer
Older
GHFX_REFACTOR / RedlineResult.cs
wxn on 9 Nov 2016 2 KB 冗余代码整理
using System.Collections.Generic;
using GeoScene.Data;

namespace Cyberpipe
{
    class RedlineResult
    {
        public string layertype;
        public string featurename;
        public string distance;
        public string state;
        public GSOPoint3d marker; 

        //////////////////////////////////
        public string maxdis;
        public string mindis;
        public GSOPoint3d maxpt;
        public GSOPoint3d maxcpt;
        public GSOPoint3d minpt;
        public GSOPoint3d mincpt;

        /////////////////////////////////
        public GSOPoint3d cpt;//垂点
        public List<GSOPoint3d> inpts;//在区域内的点集合
        public GSOGeoPolygon3D poly;//切后的区域
        public string area;

        /// <summary>
        /// ////////////////////////////
        /// </summary>
        /// <param name="_layertype"></param>
        /// <param name="_featurename"></param>
        /// <param name="_distance"></param>
        /// <param name="_state"></param>
        /// <param name="_marker"></param>

        public RedlineResult(string _layertype, string _featurename, string _distance,string _state,GSOPoint3d _marker) {
            layertype = _layertype;
            featurename = _featurename;
            distance = _distance;
            state = _state;
            marker = _marker;
        }

        public RedlineResult(string _layertype,string _distance ,GSOPoint3d _marker) {
            layertype = _layertype; 
            distance = _distance; 
            marker = _marker; 
        }

        public RedlineResult(string _layertype, string _maxdis, string _mindis, GSOPoint3d _maxpt, GSOPoint3d _maxcpt, GSOPoint3d _minpt, GSOPoint3d _mincpt,string _dist,string _area) {
            layertype = _layertype;
            maxdis = _maxdis;
            mindis = _mindis;
            maxpt = _maxpt;
            maxcpt = _maxpt;
            minpt = _minpt;
            mincpt = _mincpt;
            distance = _dist;
            area = _area;
        }

        public RedlineResult(GSOGeoPolygon3D _poly,  GSOPoint3d _cpt, List<GSOPoint3d> _inpts, string _pdArea)
        {
            poly = _poly;
            cpt = _cpt;
            inpts = _inpts;
            area = _pdArea;
        } 
    }
}