private void AddMotionRecord() { mGrfxRec = new clsMotionRecord(); { mGrfxRec.BeginProfile = mNewProfile; mGrfxRec.WrkPlane = (int)mPlane; mGrfxRec.Tool = mTool; mGrfxRec.DrawClr = Color16(mCurrentColor); mGrfxRec.Yold = mPrevY + mCurMachine.ViewShift[1]; mGrfxRec.Ycentr = mYcentr + mCurMachine.ViewShift[1]; mGrfxRec.Ypos = mYpos + mCurMachine.ViewShift[1]; mGrfxRec.Codestring = mCodeText; mGrfxRec.MotionType = mMode; mGrfxRec.Rpoint = mRpoint + mCurMachine.ViewShift[2]; mGrfxRec.DrillClear = mDrillClear; mGrfxRec.Xold = mPrevX + mCurMachine.ViewShift[0]; mGrfxRec.Xpos = mXpos + mCurMachine.ViewShift[0]; mGrfxRec.Rad = mRad; mGrfxRec.Xcentr = mXcentr + mCurMachine.ViewShift[0]; mGrfxRec.Zold = mPrevZ + mCurMachine.ViewShift[2]; mGrfxRec.Zpos = mZpos + mCurMachine.ViewShift[2]; mGrfxRec.Zcentr = mZcentr + mCurMachine.ViewShift[2]; mGrfxRec.Rotate = mRotating; mGrfxRec.NewRotaryPos = mABC; mGrfxRec.OldRotaryPos = mPrevABC; mGrfxRec.RotaryDir = mRotDir; // * mcurmachine.nRotaryDir mGrfxRec.Speed = mSpeed; mGrfxRec.Feed = mFeed; mGrfxRec.Sang = mSang; mGrfxRec.Eang = mEang; } mGfxRecs.Add(mGrfxRec); }
private void CreateDisplayLists() { mDisplayLists.Clear(); mPoints.Clear(); mLastPos.X = 0; mLastPos.Y = 0; for (mGfxIndex = 0; mGfxIndex <= mBreakPoint; mGfxIndex++) { mCurGfxRec = MotionBlocks[mGfxIndex]; DrawEachElmt(); //Draws geometry } }