/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 16, Configuration.FieldSeparator), Id, ProviderAdjustmentNumber?.ToDelimitedString(), PayerAdjustmentNumber?.ToDelimitedString(), AdjustmentSequenceNumber.HasValue ? AdjustmentSequenceNumber.Value.ToString(culture) : null, AdjustmentCategory?.ToDelimitedString(), AdjustmentAmount?.ToDelimitedString(), AdjustmentQuantity?.ToDelimitedString(), AdjustmentReasonPa?.ToDelimitedString(), AdjustmentDescription, OriginalValue.HasValue ? OriginalValue.Value.ToString(Consts.NumericFormat, culture) : null, SubstituteValue.HasValue ? SubstituteValue.Value.ToString(Consts.NumericFormat, culture) : null, AdjustmentAction?.ToDelimitedString(), ProviderAdjustmentNumberCrossReference?.ToDelimitedString(), ProviderProductServiceLineItemNumberCrossReference?.ToDelimitedString(), AdjustmentDate.HasValue ? AdjustmentDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ResponsibleOrganization?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
public void ZoomOut(AdjustmentAmount AdjAmount) { if (AdjAmount == AdjustmentAmount.All) { projector.ResetPanning(); camera.ZoomTarget = this.MinimumPixelsPerRadian; } else { camera.ZoomTarget = validateZoom(camera.ZoomTarget / getZoomAdjustmentAmount(AdjAmount)); } showZoomMessage(); }
private void zoomIn(AdjustmentAmount AdjAmount) { if (AdjAmount == AdjustmentAmount.All) { projector.ResetPanning(); camera.ZoomTarget = fullZoomAmount((camera.DesiredPosition - camera.BodyBeingViewed.Position).Magnitude, camera.BodyBeingViewed); } else { camera.ZoomTarget = validateZoom(camera.ZoomTarget * getZoomAdjustmentAmount(AdjAmount)); } showZoomMessage(); }
private void slowDown(AdjustmentAmount AdjAmount) { if (physics.StartupDone) { if (physics.SlowDown(AdjAmount)) { messageWidget.SetMessage(String.Format("Slow Down Time: {0:0}x", physics.TimeFactor)); } else { messageWidget.SetMessage("Real Time"); } } }
private void speedUp(AdjustmentAmount AdjAmount) { if (physics.StartupDone) { if (physics.SpeedUp(AdjAmount)) { messageWidget.SetMessage(String.Format("Speed Up Time: {0:0}x", physics.TimeFactor)); } else { messageWidget.SetMessage("Maximum Speed"); } } }
private double getPanAdjustmentAmount(AdjustmentAmount AdjAmount) { switch (AdjAmount) { case AdjustmentAmount.All: case AdjustmentAmount.Large: return(5); case AdjustmentAmount.Normal: return(1); case AdjustmentAmount.Fine: default: return(0.25); } }
private double getZoomAdjustmentAmount(AdjustmentAmount AdjAmount) { switch (AdjAmount) { case AdjustmentAmount.All: case AdjustmentAmount.Large: return(5); case AdjustmentAmount.Normal: return(1.15); case AdjustmentAmount.Fine: default: return(1.04); } }
private double getSpeedFactor(AdjustmentAmount AdjAmount) { switch (AdjAmount) { case AdjustmentAmount.All: return(double.MaxValue); case AdjustmentAmount.Large: return(32.0); case AdjustmentAmount.Normal: return(2.0); case AdjustmentAmount.Fine: default: return(1.25); } }
protected override void SetAmount(FixedAdjustmentAmount value) { Amount = value; }
protected override void SetAmount(PercentageAdjustmentAmount value) { Amount = value; }
public bool SlowDown(AdjustmentAmount AdjAmount) { return(changeSpeed(TimeFactor / getSpeedFactor(AdjAmount))); }
public bool SpeedUp(AdjustmentAmount AdjAmount) { return(changeSpeed(TimeFactor * getSpeedFactor(AdjAmount))); }
private void tiltLeft(AdjustmentAmount AdjAmount) { messageWidget.SetMessage("Tilt Left"); projector.PanRotate(getPanAdjustmentAmount(AdjAmount)); }
private void panDown(AdjustmentAmount AdjAmount) { messageWidget.SetMessage("Pan Down"); projector.PanInclination(-getPanAdjustmentAmount(AdjAmount) / camera.Zoom); }
private void panRight(AdjustmentAmount AdjAmount) { messageWidget.SetMessage("Pan Right"); projector.PanAzimuth(-getPanAdjustmentAmount(AdjAmount) / camera.Zoom); }