def initObstaclesModel(self): ObstacleTable.MocMultiplier = self.parametersPanel.mocSpinBox.value() self.obstaclesModel = HoldingRnpObstacles( self.surfaceList, Altitude(float(self.parametersPanel.txtMoc.text())), Altitude(float(self.parametersPanel.txtAltitude.text()), AltitudeUnits.FT)) return FlightPlanBaseDlg.initObstaclesModel(self)
def initObstaclesModel(self): if self.surfaceArea == None: return self.obstaclesModel = VisualSegmentSurfaceObstacles([self.surfaceArea], self.ui.chbHideDisregardableObst.isChecked()) try: double_0 = float(self.parametersPanel.txtRwyDir.Value) except ValueError: raise UserWarning, "Runway Direction is invalid!" try: double_1 = math.tan(Unit.ConvertDegToRad(float(self.parametersPanel.txtDescAngle.Value.Degrees) - 1.12)) except ValueError: raise UserWarning, "DescAngle is invalid!" point3d_0 = MathHelper.distanceBearingPoint(self.parametersPanel.pnlTHR.getPoint3D(), double_0, 60) self.obstaclesModel.ptStart = point3d_0; self.obstaclesModel.ptStart2 = MathHelper.distanceBearingPoint(point3d_0, double_0 - 1.5707963267949, 100); self.obstaclesModel.outbound = double_0; self.obstaclesModel.tang = double_1; return FlightPlanBaseDlg.initObstaclesModel(self)
def initObstaclesModel(self): self.obstaclesModel.MocMultiplier = self.parametersPanel.mocSpinBox.value( ) return FlightPlanBaseDlg.initObstaclesModel(self)
def initObstaclesModel(self): ObstacleTable.MocMultiplier = self.parametersPanel.mocSpinBox.value() self.obstaclesModel = HoldingRnpObstacles(self.surfaceList) return FlightPlanBaseDlg.initObstaclesModel(self)