コード例 #1
0
        public void ClearToolRoiData(EnumToolType ToolType)
        {
            switch (ToolType)
            {
            case EnumToolType.LineTool:
                _lineRectData = "";
                break;

            case EnumToolType.PairTool:
                _pairRectData = "";
                break;

            case EnumToolType.FlagTool:
                if (_geometryRegion != null)
                {
                    _geometryRegion.Dispose();
                    _geometryRegion = null;
                }
                HOperatorSet.GenEmptyObj(out _geometryRegion);
                GeometryPose = new HTuple();
                break;

            case EnumToolType.CircleTool:

                _circleData = "";

                break;

            default:
                break;
            }
        }
コード例 #2
0
        public ItemTool(int id, float time, EnumToolType toolType, EnumBlockType effectiveOn) : base(id)
        {
            this.time        = time;
            this.toolType    = toolType;
            this.effectiveOn = effectiveOn;

            this.setMaxStackSize(1);
        }
コード例 #3
0
        //private HTuple
        protected string GetRectData(EnumToolType ToolType, HTuple Row, HTuple Col, HTuple Pi, HTuple L1, HTuple L2)
        {
            switch (ToolType)
            {
            case EnumToolType.LineTool:
                return(_lineRectData = $"{Row.D}&{Col.D}&{Pi.D}&{L1.D}&{L2.D}");

            case EnumToolType.PairTool:
                return(_pairRectData = $"{Row.D}&{Col.D}&{Pi.D}&{L1.D}&{L2.D}");

            default:
                return("");
            }
        }