Ejemplo n.º 1
0
        /// <summary>
        /// コンストラクタ。CMPに配置することを前提にしてLinkedListから構築
        /// </summary>
        /// <param name="ptOrigin"></param>
        /// <param name="strReerence"></param>
        /// <param name="objLList"></param>
        public MbeObjComponent(Point ptOrigin, string strReference, LinkedList <MbeObj> objLList)
        {
            posCount      = 1;
            posArray      = new Point[posCount];
            selectFlag    = new bool[posCount];
            selectFlag[0] = false;

            layer = MbeLayer.LayerValue.CMP;

            refNum       = new MbeObjText();
            refNum.Layer = MbeLayer.LayerValue.PLC;

            packageName = "";
            remarksText = "";
            angleX10    = -1;

            posArray[0] = ptOrigin;
            Point ptRef = new Point(10000, -10000);

            ptRef.Offset(ptOrigin);
            refNum.SetPos(ptRef, 0);
            refNum.SigName = strReference;

            SetContentsWithLinkedList(objLList);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public MbeObjComponent()
        {
            posCount      = 1;
            posArray      = new Point[posCount];
            selectFlag    = new bool[posCount];
            selectFlag[0] = false;
            layer         = MbeLayer.LayerValue.NUL;            //未初期化を表す。

            refNum       = new MbeObjText();
            refNum.Layer = MbeLayer.LayerValue.NUL;             //未初期化を表す。
            Point ptZero = new Point(10000, -10000);

            refNum.SetPos(ptZero, 0);
            contentsObj = null;
            posArray[0] = new Point(0, 0);
            angleX10    = -1;
            packageName = "";
            remarksText = "";
        }