Exemplo n.º 1
0
        public void Undo_ModifyObjectData(int l_unexecute_tire, ICommand command)
        {
            ///<summary>
            /// This code is to undo the modification action which the user has performed
            /// </summary>

            try
            {
                #region Undo the tire modification
                ICommand cmd = Assy_List_Tire[l_unexecute_tire];
                Assy_List_Tire[l_unexecute_tire]._RedocommandsTire.Push(cmd);

                Assy_List_Tire[l_unexecute_tire] = (Tire)command;

                PopulateDataTable(l_unexecute_tire);

                TireGUI.DisplayTireItem(Assy_List_Tire[l_unexecute_tire]);

                Kinematics_Software_New.Tire_ModifyInVehicle(l_unexecute_tire, Assy_List_Tire[l_unexecute_tire]);


                #endregion
            }
            catch (Exception) { }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Fires when the Create Suspension Button of the CoordinateMap UserCOntrol is clicked. This method creates a new Suspension item for each corner
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void simpleButtonCreateSuspension_Click(object sender, EventArgs e)
        {
            ///<summary>Getting the Object of the Main Form </summary>
            Kinematics_Software_New R1 = Kinematics_Software_New.AssignFormVariable();

            R1.GeometryType(DoubleWishboneFront, DoubleWishboneRear, McPhersonFront, McPhersonRear);
            R1.ActuationType(PushrodFront, PullrodFront, PushrodRear, PullrodRear);
            R1.AntiRollBarType(UARBFront, TARBFront, UARBRear, TARBRear);
            R1.NoOfCouplings(NoOfCouplings);
            R1.FrontSymmetry             = FrontSymmetry;
            R1.RearSymmetry              = RearSymmetry;
            R1.CurrentSuspensionIsMapped = SuspensionCreationMode.Mapping;

            #region Creating new Suspension Coordinate items for each corner
            R1.barButtonSCFLItem.PerformClick();
            R1.barButtonItemSCFRItem.PerformClick();
            R1.barButtonItemSCRLItem.PerformClick();
            R1.barButtonItemSCRRItem.PerformClick();
            #endregion

            #region Invoking the CAD Creator
            R1.CreateFrontInputCAD(SuspensionCoordinatesFront.SCFLCounter - 1, false);
            R1.CreateRearInputCAD(SuspensionCoordinatesRear.SCRLCounter - 1, false);
            #endregion
        }
Exemplo n.º 3
0
 public SuspensionType(bool _onlyTemplate_DesignMode)
 {
     R1 = Kinematics_Software_New.AssignFormVariable();
     InitializeComponent();
     InitializeVariables();
     OnlyTemplate_DesignMode = _onlyTemplate_DesignMode;
 }
Exemplo n.º 4
0
 public void Kinematics_Software_New_ObjectInitializer(Kinematics_Software_New _r1)
 {
     //
     // Seperate function added here because there is a need to initialize the Main form's variable inside the Input Sheet
     IS.Kinematics_Software_New_ObjectInitializer(r1);
     r1 = _r1;
 }
Exemplo n.º 5
0
        public void PopulateSuspensionGridControl(Kinematics_Software_New _R1, VehicleGUI _vehicleGUI, Vehicle _vehicleGridControlPopulation, int OutputIndex)
        {
            _vehicleGUI.ocGUI_FL.bandedGridView_Outputs        = CustomBandedGridView.CreateNewBandedGridView(1, 4, "Front Left Suspension Coordinates");
            _vehicleGUI.GridControlOutputs_SCFL.BindingContext = new BindingContext();
            _vehicleGUI.GridControlOutputs_SCFL.DataSource     = null;
            _vehicleGUI.GridControlOutputs_SCFL.ForceInitialize();
            _vehicleGUI.GridControlOutputs_SCFL.MainView = _vehicleGUI.ocGUI_FL.bandedGridView_Outputs;
            GridControlDataSource(_vehicleGUI.GridControlOutputs_SCFL, _vehicleGridControlPopulation.oc_FL[OutputIndex].OC_SC_DataTable, _vehicleGUI.ocGUI_FL.bandedGridView_Outputs, _R1);

            _vehicleGUI.ocGUI_FR.bandedGridView_Outputs        = CustomBandedGridView.CreateNewBandedGridView(1, 4, "Front Right Suspension Coordinates");
            _vehicleGUI.GridControlOutputs_SCFR.BindingContext = new BindingContext();
            _vehicleGUI.GridControlOutputs_SCFR.DataSource     = null;
            _vehicleGUI.GridControlOutputs_SCFR.ForceInitialize();
            _vehicleGUI.GridControlOutputs_SCFR.MainView = _vehicleGUI.ocGUI_FR.bandedGridView_Outputs;
            GridControlDataSource(_vehicleGUI.GridControlOutputs_SCFR, _vehicleGridControlPopulation.oc_FR[OutputIndex].OC_SC_DataTable, _vehicleGUI.ocGUI_FR.bandedGridView_Outputs, _R1);

            _vehicleGUI.ocGUI_RL.bandedGridView_Outputs        = CustomBandedGridView.CreateNewBandedGridView(1, 4, "Rear Left Suspension Coordinates");
            _vehicleGUI.GridControlOutputs_SCRL.BindingContext = new BindingContext();
            _vehicleGUI.GridControlOutputs_SCRL.DataSource     = null;
            _vehicleGUI.GridControlOutputs_SCRL.ForceInitialize();
            _vehicleGUI.GridControlOutputs_SCRL.MainView = _vehicleGUI.ocGUI_RL.bandedGridView_Outputs;
            GridControlDataSource(_vehicleGUI.GridControlOutputs_SCRL, _vehicleGridControlPopulation.oc_RL[OutputIndex].OC_SC_DataTable, _vehicleGUI.ocGUI_RL.bandedGridView_Outputs, _R1);

            _vehicleGUI.ocGUI_RR.bandedGridView_Outputs        = CustomBandedGridView.CreateNewBandedGridView(1, 4, "Rear Right Suspension Coordinates");
            _vehicleGUI.GridControlOutputs_SCRR.BindingContext = new BindingContext();
            _vehicleGUI.GridControlOutputs_SCRR.DataSource     = null;
            _vehicleGUI.GridControlOutputs_SCRR.ForceInitialize();
            _vehicleGUI.GridControlOutputs_SCRR.MainView = _vehicleGUI.ocGUI_RR.bandedGridView_Outputs;
            GridControlDataSource(_vehicleGUI.GridControlOutputs_SCRR, _vehicleGridControlPopulation.oc_RR[OutputIndex].OC_SC_DataTable, _vehicleGUI.ocGUI_RR.bandedGridView_Outputs, _R1);
        }
        /// <summary>
        /// Method to obtain the information regardin the <see cref="BatchRunGUI"/> and by extension the <see cref="List{T}"/> of <see cref="LoadCase"/> inside the <see cref="BatchRunForm.BatchRunloadCases"/>
        /// </summary>
        /// <param name="_batchRunGUI"></param>
        public void GetBatchRunData(List <BatchRunGUI> _batchRunGUI)
        {
            R1 = Kinematics_Software_New.AssignFormVariable();

            int BatchRunIndex = 0;

            for (int i = 0; i < _batchRunGUI.Count; i++)
            {
                if (_batchRunGUI[i].navBarGroupBatchRunResults.Name == R1.navBarControlResults.ActiveGroup.Name)
                {
                    BatchRunIndex = i;
                    break;
                }
            }

            BatchRunGUI_ForHeatMap = BatchRunGUI.batchRuns_GUI[BatchRunIndex];

            LoadCaseList_ForHeatMap = BatchRunGUI_ForHeatMap.batchRun.BatchRunloadCases;

            GetOutputChannelData();

            textEditBatchRun.Text = BatchRunGUI_ForHeatMap.Name;

            if (BatchRunGUI_ForHeatMap.batchRunVehicle.sc_FL.SuspensionMotionExists)
            {
                OutputMode = BatchRunOutputMode.MultipleOutputChannel;
                toolStripStatusLabelOPChannelModeValue.Text = "Multiple Channels";
            }
            else
            {
                OutputMode = BatchRunOutputMode.SingleOutputChannel;
                toolStripStatusLabelOPChannelModeValue.Text = "Single Channel";
            }
        }
Exemplo n.º 7
0
        public CusNavBarItem LinkClickedEventCreater(CusNavBarItem _navBaritemMotion, Kinematics_Software_New _r1)
        {
            _navBaritemMotion.LinkClicked += _navBaritemMotion_LinkClicked;
            r1 = _r1;

            return(_navBaritemMotion);
        }
Exemplo n.º 8
0
        }                      // This constructor is created here only so that the Vehicle object can be initialized without having to pass any arguments.

        // This is needed because otherwise the Vehicle object will not be instantiated untill a Vehicle item is created.
        // If the user wants to save the file without creating a Vehicle object he will not be able to do so unless this constructor is used to create the Vehicle object


        public VehicleGUI(Kinematics_Software_New _r1, VehicleVisualizationType _vVisualizationType)
        {
            r1 = _r1;
            //IS.Kinematics_Software_New_ObjectInitializer(r1);
            ProgressBarVehicleGUI = r1.progressBar;
            //Vehicle_MotionExists = Vehicle.List_Vehicle[Vehicle.VehicleCounter].sc_FL.SuspensionMotionExists;
            IndexOfOutput = 0;

            ///<summary>Constructing the <see cref="CAD"/> usercontrol here to prevent overcrowding the memory by initializing the controls in the declaration itself</summary>
            if (_vVisualizationType == VehicleVisualizationType.Generic)
            {
                CADVehicleInputs  = new CAD();
                CadIsTobeImported = false;
                VisualizationType = VehicleVisualizationType.Generic;
            }
            else if (_vVisualizationType == VehicleVisualizationType.ImportedCAD)
            {
                importCADForm     = new XUC_ImportCAD();
                CadIsTobeImported = true;
                VisualizationType = VehicleVisualizationType.ImportedCAD;
            }

            ocGUI_FL = new OutputClassGUI();
            ocGUI_FR = new OutputClassGUI();
            ocGUI_RL = new OutputClassGUI();
            ocGUI_RR = new OutputClassGUI();
        }
Exemplo n.º 9
0
        /// <summary>
        /// Method to Create the LinkClickedEvent of the Load Cases' NavBarItem
        /// </summary>
        /// <param name="_navBarItemLoadCase"></param>
        /// <param name="_r1"></param>
        /// <returns></returns>
        public CusNavBarItem LinkClickedEventCreator(CusNavBarItem _navBarItemLoadCase, Kinematics_Software_New _r1)
        {
            _navBarItemLoadCase.LinkClicked += _navBaritemLoadCase_LinkClicked;
            r1 = _r1;

            return(_navBarItemLoadCase);
        }
Exemplo n.º 10
0
        public static void InitializeImportCADForm(Kinematics_Software_New _r1)
        {
            int  index = Vehicle.List_Vehicle.Count - 1;
            bool SuspensionIsCreated = false;
            bool WAIsCreated         = false;


            //Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm = new /*ImportCADForm()*/ XUC_ImportCAD();
            //Kinematics_Software_New.M1_Global.vehicleGUI[index].CadIsTobeImported = true;
            Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm.AssignVehicleGUIObject(Kinematics_Software_New.M1_Global.vehicleGUI[index]);
            ///<summary>Below lines of code were used when the importCADForm was a form and not a User control.</summary>
            //Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm.Show();
            //Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm.BringToFront();

            if (SuspensionCoordinatesFront.Assy_List_SCFL.Count != 0)
            {
                SuspensionIsCreated = true;
            }
            if (WheelAlignment.Assy_List_WA.Count != 0)
            {
                WAIsCreated = true;
            }

            Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm.AssignFormVariables(SuspensionIsCreated, WAIsCreated, index);
            Kinematics_Software_New.M1_Global.vehicleGUI[index].importCADForm.InitializeForm();
        }
Exemplo n.º 11
0
        public Simulation(string _simulationName, int _simulationID, Kinematics_Software_New _r1)
        {
            r1 = _r1;

            SimulationName       = _simulationName;
            navBarItemSimulation = new CusNavBarItem(_simulationName, _simulationID, this);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Method to define the template of the Suspension AND also create that Suspension
        /// </summary>
        /// <param name="r1"></param>
        private void CreatedSuspension_EntireSuspension(Kinematics_Software_New r1)
        {
            object    sender = new object();
            EventArgs e      = new EventArgs();

            #region Invoking the Geometry, Actuation and ARB Type definer methods
            R1.GeometryType(DoubleWishboneFront, DoubleWishboneRear, McPhersonFront, McPhersonRear);

            R1.ActuationType(PushrodFront, PullrodFront, PushrodRear, PullrodRear);

            R1.AntiRollBarType(UARBFront, TARBFront, UARBRear, TARBRear);

            R1.NoOfCouplings(NoOfCouplings);
            #endregion

            R1.CurrentSuspensionIsMapped = SuspensionCreationMode.Normal;

            #region Creating new Suspension Coordinate items for each corner
            R1.barButtonSCFLItem.PerformClick();
            R1.barButtonItemSCFRItem.PerformClick();
            R1.barButtonItemSCRLItem.PerformClick();
            R1.barButtonItemSCRRItem.PerformClick();
            #endregion

            #region Invoking the CAD Creator
            R1.CreateFrontInputCAD(SuspensionCoordinatesFront.SCFLCounter - 1, false);
            R1.CreateRearInputCAD(SuspensionCoordinatesRear.SCRLCounter - 1, false);
            #endregion
        }
Exemplo n.º 13
0
 public SuspensionType(bool _importCAD, XUC_CoordinateMap _coordinateMap)
 {
     R1 = Kinematics_Software_New.AssignFormVariable();
     InitializeComponent();
     InitializeVariables();
     OnlyTemplate_ImportCAD = _importCAD;
     coordinateMap          = _coordinateMap;
 }
Exemplo n.º 14
0
        public void Update_ARBGUI(Kinematics_Software_New _r1, int l_arb)
        {
            r1 = _r1;

            #region Anti-Roll Bar Parameters Initialization
            _AntiRollBarRate = ARBDataTableGUI.Rows[0].Field <double>(1);
            #endregion
        }
Exemplo n.º 15
0
        public CusNavBarItem LinkClickedEventCreator(CusNavBarItem _navBarItemResults, Kinematics_Software_New _r1)
        {
            _navBarItemResults.LinkClicked += new NavBarLinkEventHandler(navBarItemResults_LinkClicked);

            r1 = _r1;

            return(_navBarItemResults);
        }
Exemplo n.º 16
0
        /// <summary>
        /// Method to edit the actual Setup Change class' object
        /// </summary>
        /// <param name="setupChangeMaster"></param>
        /// <param name="identifier"></param>
        public void EditSetupChangeDeltas(SetupChange_CornerVariables setupChangeMaster, int identifier)
        {
            R1 = Kinematics_Software_New.AssignFormVariable();

            int indexSetup = R1.navBarGroupSetupChange.SelectedLinkIndex;

            SetupChange.List_SetupChange[indexSetup].InitOrEditDeltas(this, setupChangeMaster, identifier);
        }
Exemplo n.º 17
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Kinematics_Software_New R1 = new Kinematics_Software_New();

            //OpenTKInputForm OTKi = new OpenTKInputForm();
            Application.Run(R1);
        }
Exemplo n.º 18
0
        public void Update_TireGUI(Kinematics_Software_New _r1, int l_tire)
        {
            r1 = _r1;

            #region Initialization of the Tire GUI Class using User Interface Object
            _TireRate  = TireDataTableGUI.Rows[0].Field <double>(1);
            _TireWidth = TireDataTableGUI.Rows[1].Field <double>(1);
            #endregion
        }
Exemplo n.º 19
0
        /// <summary>
        /// Link Clicked event of the <see cref="NavBarItem"/>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void _navBaritemSetupChange_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            R1 = Kinematics_Software_New.AssignFormVariable();

            int index = R1.navBarGroupSetupChange.SelectedLinkIndex;

            Kinematics_Software_New.TabControl_Outputs.SelectedTabPageIndex = Kinematics_Software_New.TabControl_Outputs.TabPages.IndexOf(List_SetupChangeGUI[index].TabPage_SetupChangeGUI);
            Kinematics_Software_New.TabControl_Outputs.TabPages[Kinematics_Software_New.TabControl_Outputs.SelectedTabPageIndex].PageVisible = true;
        }
Exemplo n.º 20
0
 public MotionGUI(string _motionName, int _motionID, Kinematics_Software_New _r1)
 {
     r1 = _r1;
     motionGUI_MotionChart = new MotionChart(this);
     _MotionGUIName        = _motionName + _motionID;
     navBaritemMotionGUI   = new CusNavBarItem(_motionName, _motionID, this);
     TabPage_MotionGUI     = CustomXtraTabPage.CreateNewTabPage_ForInputs(_motionName, _motionID);
     //TabPage_MotionGUI = CustomXtraTabPage.AddUserControlToTabPage(motionGUI_MotionChart, TabPage_MotionGUI, DockStyle.Fill);
 }
Exemplo n.º 21
0
        public void Update_SpringGUI(Kinematics_Software_New _r1, int l_spring)
        {
            r1 = _r1;

            #region Initialization of the Spring GUI Class using User Interface Object
            _SpringRate       = SpringDataTableGUI.Rows[0].Field <double>(1);
            _SpringPreload    = SpringDataTableGUI.Rows[1].Field <double>(1);
            _SpringFreeLength = SpringDataTableGUI.Rows[2].Field <double>(1);
            #endregion
        }
        public void Update_WheelAlignmentGUI(Kinematics_Software_New _r1, int l_tire)
        {
            r1 = _r1;

            #region Initialization of the Wheel Alignment GUI Class using User Interface Object
            _StaticCamber  = (WADataTableGUI.Rows[0].Field <double>(1));
            _StaticToe     = (WADataTableGUI.Rows[1].Field <double>(1));
            _SteeringRatio = (WADataTableGUI.Rows[2].Field <double>(1));
            #endregion
        }
Exemplo n.º 23
0
        public void Update_DamperGUI(Kinematics_Software_New _r1, int l_tire)
        {
            r1 = _r1;

            #region Initialization of the Damper GUI Class using User Interface Object
            _DamperGasPressure = DamperDataTableGUI.Rows[0].Field <double>(1);
            _DamperShaftDia    = DamperDataTableGUI.Rows[1].Field <double>(1);
            _DamperFreeLength  = DamperDataTableGUI.Rows[2].Field <double>(1);
            _DamperStroke      = DamperDataTableGUI.Rows[3].Field <double>(1);
            #endregion
        }
Exemplo n.º 24
0
        /// <summary>
        /// Method to Handle the GUI Operations of Adding User Control to the Tab Page, navBarItems to the NavBarGroups and TabPages to the TabControl
        /// </summary>
        /// <param name="_navBarGroup">Object of the NavBarGroup inside the Simulation NavBarControl which refers to the Load Case</param>
        /// <param name="_navBarControl">NavBarControl Simulation</param>
        /// <param name="_r1">Object of the Main Class Form</param>
        /// <param name="Index">Index referes to the List Index of the LoadCase List. This is <c>_LoadCaseID<c> - 1.</param>
        public void HandleGUI(NavBarGroup _navBarGroup, NavBarControl _navBarControl, Kinematics_Software_New _r1, int Index, bool _defaultItemBeingCreated)
        {
            r1 = _r1;
            ///<remarks>
            ///Adding the Grid Controls to the Group Controls of the Load Case User Control
            /// </remarks>
            LC.groupControlNSMFL.Controls.Add(Grid_NSM_FL);
            Grid_NSM_FL.Dock = DockStyle.Fill;
            LC.groupControlNSMFR.Controls.Add(Grid_NSM_FR);
            Grid_NSM_FR.Dock = DockStyle.Fill;
            LC.groupControlNSMRL.Controls.Add(Grid_NSM_RL);
            Grid_NSM_RL.Dock = DockStyle.Fill;
            LC.groupControlNSMRR.Controls.Add(Grid_NSM_RR);
            Grid_NSM_RR.Dock = DockStyle.Fill;
            LC.groupControlSuspendedMass.Controls.Add(Grid_Suspended);
            Grid_Suspended.Dock = DockStyle.Fill;
            LC.groupControlFLBearing.Controls.Add(Grid_BearingAttachment_FL);
            Grid_BearingAttachment_FL.Dock = DockStyle.Fill;
            LC.groupControlFRBearing.Controls.Add(Grid_BearingAttachment_FR);
            Grid_BearingAttachment_FR.Dock = DockStyle.Fill;
            LC.groupControlRLBearing.Controls.Add(Grid_BearingAttachment_RL);
            Grid_BearingAttachment_RL.Dock = DockStyle.Fill;
            LC.groupControlRRBearing.Controls.Add(Grid_BearingAttachment_RR);
            Grid_BearingAttachment_RR.Dock = DockStyle.Fill;
            LC.groupControlSteeringColumnBearing.Controls.Add(Grid_BearingAttachment_SteeringColumn);
            Grid_BearingAttachment_SteeringColumn.Dock = DockStyle.Fill;

            ///<remarks>
            ///Adding the User Control to the TabPage
            ///Nxt, Adding the TabPage to the TabControl of the Main Form
            ///Last, Selecting the newly added page
            /// </remarks>
            TabPage_LC = CustomXtraTabPage.AddUserControlToTabPage(LC, TabPage_LC, DockStyle.Fill);
            Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, List_LoadCaseGUI[Index].TabPage_LC);
            if (!_defaultItemBeingCreated)
            {
                Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = List_LoadCaseGUI[Index].TabPage_LC;
            }
            if (_defaultItemBeingCreated)
            {
                for (int i = 0; i < Kinematics_Software_New.TabControl_Outputs.TabPages.Count; i++)
                {
                    Kinematics_Software_New.TabControl_Outputs.TabPages[i].PageVisible = false;
                }
            }

            ///<remarks>
            ///Adding the NavBarItem to the LoadCase Group of the Simulation NavBarControl
            ///Assigning Link Clicked Events
            /// </remarks>
            List_LoadCaseGUI[Index].navBarItemLoadCase.CreateNavBarItem(List_LoadCaseGUI[Index].navBarItemLoadCase, _navBarGroup, _navBarControl);
            List_LoadCaseGUI[Index].navBarItemLoadCase = List_LoadCaseGUI[Index].LinkClickedEventCreator(List_LoadCaseGUI[Index].navBarItemLoadCase, _r1);
        }
        public void FrontSuspensionTypeGUI(Kinematics_Software_New r1)
        {
            #region Determining the Suspension Type for the GUI Class using the User Interface Object
            SuspensionMotionExists = r1.MotionExists;

            #region Initialization of Coordinates of Vehicle Origin with respect to User Coordinates System for Input and Output
            ///<remarks>
            ///This code is added here instead of the EditFrontLeftCoordinatesGUI method so that the InputOrigin data of each suspension objbect is unchanged once created. If this code is added below, then each time the suspension is modified, the InputOrigin Data will
            ///also be modified and this is not safe.
            /// </remarks>
            try
            {
                _InputOriginX = Convert.ToDouble(r1.InputOriginX.Text);
                _InputOriginY = Convert.ToDouble(r1.InputOriginY.Text);
                _InputOriginZ = Convert.ToDouble(r1.InputOriginZ.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("Invalid Input Origin Entered");
                r1.InputOriginX.BackColor = Color.IndianRed;
                r1.InputOriginY.BackColor = Color.IndianRed;
                r1.InputOriginZ.BackColor = Color.IndianRed;

                r1.InputOriginX.Text = "0";
                if (!r1.MotionExists)
                {
                    r1.InputOriginY.Text = "1033";
                }
                else
                {
                    r1.InputOriginY.Text = "0";
                }
                r1.InputOriginZ.Text = "0";
            }

            #endregion

            FrontSymmetryGUI = r1.FrontSymmetry;

            DoubleWishboneIdentifierFront = r1.DoubleWishboneFront_VehicleGUI;
            McPhersonIdentifierFront      = r1.McPhersonFront_VehicleGUI;

            PushrodIdentifierFront = r1.PushrodFront_VehicleGUI;
            PullrodIdentifierFront = r1.PullrodFront_VehicleGUI;

            UARBIdentifierFront = r1.UARBFront_VehicleGUI;
            TARBIdentifierFront = r1.TARBFront_VehicleGUI;

            NoOfCouplings = r1.NoOfCouplings_VehicleGUI;

            #endregion
        }
Exemplo n.º 26
0
        /// <summary>
        /// Method to initialize the <see cref="BatchRunForm"/>
        /// </summary>
        /// <param name="_loadCasesForBatchRun"></param>
        public void InitializeBatchRunForm(List <LoadCase> _loadCasesForBatchRun)
        {
            R1 = Kinematics_Software_New.AssignFormVariable();

            batchRun.toolStripProgressBar1.ProgressBar.Value = 0;
            batchRun.toolStripProgressBar1.ProgressBar.Update();

            batchRun.PopulateBatchRunLoadCases(_loadCasesForBatchRun);

            R1.ComboboxBatchRunVehicleOperations();

            R1.comboBoxBatchRunMotionOperations();
        }
Exemplo n.º 27
0
        public void Update_ChassisGUI(Kinematics_Software_New _r1, int l_chassis)
        {
            r1 = _r1;

            #region Initialization of the Chassis GUI Class using User Interface Object

            #region Suspended Mass Initialization
            SuspendedMass = ChassisDataTableGUI.Rows[0].Field <double>(1);
            #endregion

            #region Non Suspended Masses Initialization

            _NonSuspendedMassFL = ChassisDataTableGUI.Rows[1].Field <double>(1);
            _NonSuspendedMassFR = ChassisDataTableGUI.Rows[2].Field <double>(1);
            _NonSuspendedMassRL = ChassisDataTableGUI.Rows[3].Field <double>(1);
            _NonSuspendedMassRR = ChassisDataTableGUI.Rows[4].Field <double>(1);

            #endregion

            #region Suspended Mass Centre of Gravity Coordinates Initialization

            _SuspendedMassCoGx = ChassisDataTableGUI.Rows[0].Field <double>(2);
            _SuspendedMassCoGy = ChassisDataTableGUI.Rows[0].Field <double>(3);
            _SuspendedMassCoGz = ChassisDataTableGUI.Rows[0].Field <double>(4);

            #endregion

            #region Non Suspended Mass Centres of Gravity Coordinates Initialization

            _NonSuspendedMassFLCoGx = ChassisDataTableGUI.Rows[1].Field <double>(2);
            _NonSuspendedMassFLCoGy = ChassisDataTableGUI.Rows[1].Field <double>(3);
            _NonSuspendedMassFLCoGz = ChassisDataTableGUI.Rows[1].Field <double>(4);

            _NonSuspendedMassFRCoGx = ChassisDataTableGUI.Rows[2].Field <double>(2);
            _NonSuspendedMassFRCoGy = ChassisDataTableGUI.Rows[2].Field <double>(3);
            _NonSuspendedMassFRCoGz = ChassisDataTableGUI.Rows[2].Field <double>(4);

            _NonSuspendedMassRLCoGx = ChassisDataTableGUI.Rows[3].Field <double>(2);
            _NonSuspendedMassRLCoGy = ChassisDataTableGUI.Rows[3].Field <double>(3);
            _NonSuspendedMassRLCoGz = ChassisDataTableGUI.Rows[3].Field <double>(4);

            _NonSuspendedMassRRCoGx = ChassisDataTableGUI.Rows[4].Field <double>(2);
            _NonSuspendedMassRRCoGy = ChassisDataTableGUI.Rows[4].Field <double>(3);
            _NonSuspendedMassRRCoGz = ChassisDataTableGUI.Rows[4].Field <double>(4);

            #endregion

            #endregion
        }
        public void FrontSuspensionTypeGUI(Kinematics_Software_New r1)
        {
            #region Determining the Suspension Type for the GUI Class using the User Interface Object
            FrontSymmetryGUI = r1.FrontSymmetry;

            DoubleWishboneIdentifierFront = r1.DoubleWishboneFront_VehicleGUI;
            McPhersonIdentifierFront      = r1.McPhersonFront_VehicleGUI;

            PushrodIdentifierFront = r1.PushrodFront_VehicleGUI;
            PullrodIdentifierFront = r1.PullrodFront_VehicleGUI;

            UARBIdentifierFront = r1.UARBFront_VehicleGUI;
            TARBIdentifierFront = r1.TARBFront_VehicleGUI;
            #endregion
        }
Exemplo n.º 29
0
        public void MotionCreateOrEdit(bool IsControlInitialized, bool _deflectionExists, bool _steeringExists)
        {
            int index = r1.navBarGroupMotion.SelectedLinkIndex;

            DeflectionExists = _deflectionExists;
            SteeringExists   = _steeringExists;

            Motion.List_Motion[index].GetWheelDeflectionAndSteer(List_MotionGUI[index], IsControlInitialized, DeflectionExists, SteeringExists);
            ChartPoints_WheelDef_X = Motion.List_Motion[index].ChartPoints_WheelDef_X;
            ChartPoints_WheelDef_Y = Motion.List_Motion[index].ChartPoints_WheelDef_Y;
            ChartPoints_Steering_X = Motion.List_Motion[index].ChartPoints_Steering_X;
            ChartPoints_Steering_Y = Motion.List_Motion[index].ChartPoints_Steering_Y;


            Kinematics_Software_New.comboBoxMotionOperations_Invoker();
        }
Exemplo n.º 30
0
        public void RearSuspensionTypeGUI(Kinematics_Software_New _r1)
        {
            r1 = _r1;

            #region Determining the Suspension Type for the GUI Class using the User Interface Object
            RearSymmetryGUI = r1.RearSymmetry;

            DoubleWishboneIdentifierRear = r1.DoubleWishboneRear_VehicleGUI;
            McPhersonIdentifierRear      = r1.McPhersonRear_VehicleGUI;

            PushrodIdentifierRear = r1.PushrodRear_VehicleGUI;
            PullrodIdentifierRear = r1.PullrodRear_VehicleGUI;

            UARBIdentifierRear = r1.UARBRear_VehicleGUI;
            TARBIdentifierRear = r1.TARBRear_VehicleGUI;
            #endregion
        }