示例#1
0
        /// <summary>
        /// 设置偏移点
        /// </summary>
        /// <param name="IRect"></param>
        /// <param name="Col_x"></param>
        /// <param name="Row_y"></param>
        /// <param name="Angle_a"></param>
        /// <returns></returns>
        public bool Set_PianYiDian(IRectShuJu IRect, double Col_x, double Row_y, double Angle_a)
        {
            bool ok = false;

            //IRect.Col_x = Col_x;
            //IRect.Row_y = Row_y;
            //IRect.Angle_a = Angle_a;

            ok = true;
            return(ok);
        }
示例#2
0
        ///// <summary>
        ///// 设置原点
        ///// </summary>
        ///// <param name="IRect"></param>
        ///// <param name="Yuan_dian_col_x"></param>
        ///// <param name="Yuan_dian_row_y"></param>
        ///// <param name="Yuan_dian_angle_a"></param>
        ///// <returns></returns>
        //public bool Set_Orgin(IRectShuJu IRect, double Yuan_dian_col_x, double Yuan_dian_row_y, double Yuan_dian_angle_a)
        //{
        //    bool ok = false;
        //    IRect.Yuan_dian_col_x = Yuan_dian_col_x;
        //    IRect.Yuan_dian_row_y = Yuan_dian_row_y;
        //    IRect.Yuan_dian_angle_a = Yuan_dian_angle_a;
        //    ok = true;
        //    return ok;
        //}
        #endregion

        /// <summary>
        /// 设置原点
        /// </summary>
        /// <param name="IRect_"></param>
        /// <param name="IRectShuJuPianYi_"></param>
        /// <returns></returns>
        public bool Set_Orgin(IRectShuJu IRect_, IRectShuJuPianYi IRectShuJuPianYi_)
        {
            bool ok = false;

            IRect_.Yuan_dian_col_x    = IRectShuJuPianYi_.Column;
            IRect_.Yuan_dian_row_y    = IRectShuJuPianYi_.Row;
            IRect_.Yuan_dian_angle_a  = IRectShuJuPianYi_.Angle;
            IRect_.IRect_shuju_pianyi = IRectShuJuPianYi_;

            ok = true;
            return(ok);
        }
示例#3
0
        private void ParentFrm_Load(object sender, EventArgs e)
        {
            #region  初始化树 定位树

            #region  无用代码
            //TreeNode tr_0 = new TreeNode();
            //tr_0.Text = "驱动1";
            //tr_0.Name = "System_1"; //新建一个驱动

            //if (treeView1.Nodes != null)
            //{
            //    treeView1.Nodes.Clear();
            //}//清空树

            //TreeStatic.load_MultTreeNode_To_TreeNode_ContainsSelf(tr_0, _ICheckStr.Check_Root);

            //treeView1.Nodes.Add(tr_0);//添加一个检测
            //treeView1.ExpandAll();
            #endregion

            MultTree.operationTreeViewTool.initTreeView(treeView1, _ICheckStr.Check_Root);

            #endregion

            #region   初始化 工具跟随定位树

            #region  无用代码
            //TreeNode tr_1 = new TreeNode();
            //tr_1.Text = "驱动1";
            //tr_1.Name = "System_1"; //新建一个驱动

            //if (treeView2.Nodes != null)
            //{
            //    treeView2.Nodes.Clear();
            //}//清空树

            //TreeStatic.load_MultTreeNode_To_TreeNode_ContainsSelf(tr_1, _ICheckStr.Check_Root);

            //treeView2.Nodes.Add(tr_1);//添加一个检测
            //treeView2.ExpandAll();
            #endregion

            MultTree.operationTreeViewTool.initTreeView(treeView2, _ICheckStr.Check_Root);

            #endregion

#if DEBUG == true
            if (TreeStatic.Mult_Tree_Node.Obj == null)
            {
                _IRect = new RectLibrary.RectShuJu();
            }
            else
            {
                _IRect = (RectShuJu)TreeStatic.Mult_Tree_Node.Obj;
            }
#else
            _IRect = (RectShuJu)TreeStatic.Mult_Tree_Node.Obj;
#endif

            #region    显示路径
            this._IRect.Tool_Path = this._SerRectShuJu.ShuaXinToolJiHe(this._IRect.Tool_Path, listBox_GenSuiGongJu);

            this._IRect.BeiGenSuiDingWeiGongJu = this._SerRectShuJu.panDuanToolShiFouCunZai(this._IRect.BeiGenSuiDingWeiGongJu);

            #endregion

            #region  显示原点   及定位工具
            if (this._IRect.BeiGenSuiDingWeiGongJu == "")
            {
                _IRect.Yuan_dian_row_y = null;
            }
            else
            {
                message.Text = "原点x:" + _IRect.Yuan_dian_col_x.ToString() + "__y:" + _IRect.Yuan_dian_row_y.ToString() + "__angle:" + _IRect.Yuan_dian_angle_a.ToString();

                listBox_DingWeiGongJu.Items.Clear();

                listBox_DingWeiGongJu.Items.Add(this._IRect.BeiGenSuiDingWeiGongJu);
            }
            #endregion
        }