Exemplo n.º 1
0
 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);
        }
Exemplo n.º 3
0
        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)));
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 public NaserModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries)
     : base(mesh, manualBoundaries)
 {
 }