public void SetManualBoundaries(ManualBoundaries manualBoundaries) { if (manualBoundaries != ManualBoundaries.Auto) { SetBoundaries( manualBoundaries.StartX, manualBoundaries.EndX, manualBoundaries.StartY, manualBoundaries.EndY); } }
public AnalyticToCartesianModelConverter(AnalyticModel analyticModel, ManualBoundaries mb, ILogger logger = null) { if (analyticModel == null) { throw new ArgumentNullException(nameof(analyticModel)); } _analyticModel = analyticModel; _logger = logger; SetBoundaries(mb.StartX, mb.EndX, mb.StartY, mb.EndY); }
private static XElement ToXElement(ManualBoundaries manualBoundaries) { if (manualBoundaries == ManualBoundaries.Auto) { return(null); } return(new XElement("ManualBoundaries", new XElement("StartX", manualBoundaries.StartX), new XElement("EndX", manualBoundaries.EndX), new XElement("StartY", manualBoundaries.StartY), new XElement("EndY", manualBoundaries.EndY))); }
public ModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries) { if (mesh == null) { throw new ArgumentNullException(nameof(mesh)); } if (manualBoundaries == null) { throw new ArgumentNullException(nameof(manualBoundaries)); } Mesh = mesh; ManualBoundaries = manualBoundaries; }
public NaserModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries) : base(mesh, manualBoundaries) { }