コード例 #1
0
 /// <summary>
 /// Method to add the user selected <see cref="AdjustmentTools"/>
 /// </summary>
 /// <param name="camberTool"></param>
 /// <param name="toeTool"></param>
 /// <param name="casterTool"></param>
 /// <param name="kpiTool"></param>
 /// <param name="rideHeightTool"></param>
 public void InitAdjustmentToolsDictionary(AdjustmentTools camberTool, AdjustmentTools toeTool, AdjustmentTools casterTool, AdjustmentTools kpiTool, AdjustmentTools rideHeightTool)
 {
     AdjToolsDictionary.Add("CamberChange", camberTool);
     AdjToolsDictionary.Add("ToeChange", toeTool);
     AdjToolsDictionary.Add("CasterChange", casterTool);
     AdjToolsDictionary.Add("KPIChange", kpiTool);
     AdjToolsDictionary.Add("RideHeightChange", rideHeightTool);
     //LinkLengthsWhichHaveNotChanged = new List<int>();
     //LinkLengthsWhichHaveNotChanged.AddRange(new int[] { 1, 2, 3, 4 });
 }
コード例 #2
0
 /// <summary>
 /// Method to decide whether the Top or Bottom Wishbone/Camber Mount will be used to make the adjustments
 /// </summary>
 /// <param name="adjustmentTools"></param>
 public void DecideAdjustmentTools(AdjustmentTools adjustmentTools)
 {
 }
        /// <summary>
        /// Method to perform the Link Length Change Operations of Link Length change and Wheel Assembly Rotate which are methods in the <see cref="SolverMasterClass"/>
        /// </summary>
        /// <param name="_deltaLinkLength">Change in Link Length of the Concerned Link requested by the user</param>
        /// <param name="_linkLine">List of the Link Line in the <see cref="AdjustmentOptions"/> Class</param>
        /// <param name="_linkVector">List of the Link Vectors in the <see cref="AdjustmentOptions"/> Class</param>
        /// <param name="_adjTool">Object of the <see cref="AdjustmentTools"/> Enum</param>
        /// <param name="_finalLinkLengthList"> List which holds the history of the deltas of the Concerned Link Length. Ex - <see cref="Final_TopFrontArm"/></param>
        private void ClosedLoop_ChangeLinkLengths(double _deltaLinkLength, List <Line> _linkLine, List <Vector3D> _linkVector, AdjustmentTools _adjTool, List <double> _finalLinkLengthList)
        {
            //Start:

            //if (_finalLinkLengthList.Count == 0)
            //{
            //    return;
            //}

            //if (ClosedLoop_LinkLengthCheck(_deltaLinkLength, _finalLinkLengthList[_finalLinkLengthList.Count - 1], 1))
            //{
            //    return;
            //}
            //else
            //{
            //    /////<summary>
            //    /////Finding the angle to be rotated by the Upright because of the Wishbone length Change. The 3 points of the Triangle are passed as it is.
            //    /////The will worked upon inside the <see cref="SolverMasterClass.SetupChange_WishboneLengthChanged(double, List{Line}, List{Vector3D}, Point3D, Point3D, Point3D, AdjustmentTools)"/> method
            //    /////</summary>
            //    //Angle AngleToBeRotated = SMC.SetupChange_WishboneLengthChanged(_deltaLinkLength, _linkLine, _linkVector,
            //    //                                                           SetupChange_DB.UBJ, SetupChange_DB.LBJ, SetupChange_DB.ToeLinkUpright, _adjTool);
            //    /////<summary>Link Length Changed Operations</summary>
            //    //SMC.SetupChange_LinkLengthChange(AngleToBeRotated.Degrees, _deltaLinkLength, OC[0], SetupChange_DB.LBJToToeLink.Line.DeltaLine[SetupChange_DB.LBJToToeLink.Line.DeltaLine.Count - 1],
            //    //                                                  _linkLine, _linkVector, _finalLinkLengthList, 0);
            //    //goto Start;
            //}
        }