当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.GetDouble方法代码示例

本文整理汇总了C#中Altaxo.GetDouble方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetDouble方法的具体用法?C# Altaxo.GetDouble怎么用?C# Altaxo.GetDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.GetDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        Log10Scale s = null!=o ? (Log10Scale)o : new Log10Scale();

        s._log10Org = (double)info.GetDouble("Log10Org");
        s._log10End = (double)info.GetDouble("Log10End");

        s._decadesPerMajorTick = (int)info.GetInt32("DecadesPerMajor");

        bool AxisOrgFixed = (bool)info.GetBoolean("OrgFixed");
        bool AxisEndFixed = (bool)info.GetBoolean("EndFixed");

        s._dataBounds = (PositiveFiniteNumericalBoundaries)info.GetValue("Bounds",typeof(PositiveFiniteNumericalBoundaries));
    
        s._dataBounds.BoundaryChanged += new BoundaryChangedHandler(s.OnBoundariesChanged);


        s._rescaling = new LogarithmicAxisRescaleConditions();
        s._rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);

        LogarithmicAxisRescaleConditions rescaling = new LogarithmicAxisRescaleConditions();
        rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);
        s._rescaling = rescaling;

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:27,代码来源:Log10Scale.cs

示例2: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				double smoothness = info.GetDouble("Smoothness");
				double metalness = info.GetDouble("Metalness");
				double indexOfRefraction = info.GetDouble("IndexOfRefraction");

				return new MaterialWithoutColorOrTexture(smoothness, metalness, indexOfRefraction);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:MaterialWithoutColorOrTexture.cs

示例3: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = null != o ? (VisibleLightSpectrum)o : new VisibleLightSpectrum();
				info.GetBaseValueEmbedded(s, typeof(ColorProviderBase), parent);
				s._gamma = info.GetDouble("Gramma");
				s._brightness = info.GetDouble("Brightness");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:VisibleLightSpectrum.cs

示例4: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				double smoothness = info.GetDouble("Smoothness");
				double metalness = info.GetDouble("Metalness");
				double indexOfRefraction = info.GetDouble("IndexOfRefraction");
				var color = (NamedColor)info.GetValue("Color", null);

				return new MaterialWithUniformColor(color, smoothness, metalness, indexOfRefraction);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:MaterialWithUniformColor.cs

示例5: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (HatchBrushBase)o;

				s._repeatLengthPt = info.GetDouble("RepeatLength");
				s._structureFactor = info.GetDouble("StructureFactor");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:HatchBrushBase.cs

示例6: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (RandomCircles)o ?? new RandomCircles();
				info.GetBaseValueEmbedded(s, s.GetType().BaseType, parent);

				s._randomSeed = info.GetInt32("RandomSeed");
				s._circleDiameterPt = info.GetDouble("CircleDiameter");
				s._fillingFactor = info.GetDouble("FillingFactor");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:RandomCircles.cs

示例7: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				RectangleD2D s = null != o ? (RectangleD2D)o : new RectangleD2D();
				s.X = info.GetDouble("X");
				s.Y = info.GetDouble("Y");
				s.Width = info.GetDouble("Width");
				s.Height = info.GetDouble("Height");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:RectangleD2D.cs

示例8: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				WaterfallTransform s = null != o ? (WaterfallTransform)o : new WaterfallTransform();
				s._scaleXInc = info.GetDouble("XScale");
				s._scaleYInc = info.GetDouble("YScale");
				s._useClipping = info.GetBoolean("UseClipping");
				s._xinc = info.GetDouble("XInc");
				s._yinc = info.GetDouble("YInc");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:WaterfallTransform.cs

示例9: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (PointLight)o ?? new PointLight(info);
				s._isAffixedToCamera = info.GetBoolean("IsAffixedToCamera");
				s._lightAmplitude = info.GetDouble("LightAmplitude");
				s._color = (NamedColor)info.GetValue("Color", s);
				s._position = (PointD3D)info.GetValue("Position", s);
				s._range = info.GetDouble("Range");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:PointLight.cs

示例10: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        NumericalBoundaries s = (NumericalBoundaries)o;

        s._numberOfItems = info.GetInt32("NumberOfItems");  
        s._minValue = info.GetDouble("MinValue");
        s._maxValue = info.GetDouble("MaxValue");

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:11,代码来源:NumericalBoundaries.cs

示例11: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (OrthographicCamera)o ?? new OrthographicCamera();
				s._upVector = (VectorD3D)info.GetValue("UpVector", s);
				s._eyePosition = (PointD3D)info.GetValue("EyePosition", s);
				s._targetPosition = (PointD3D)info.GetValue("TargetPosition", s);
				s._zNear = info.GetDouble("ZNear");
				s._zFar = info.GetDouble("ZFar");
				s._widthAtZNear = info.GetDouble("Width");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:OrthographicCamera.cs

示例12: SDeserialize

			protected virtual LinkedScaleParameters SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				LinkedScaleParameters s = null != o ? (LinkedScaleParameters)o : new LinkedScaleParameters();

				s._orgA = info.GetDouble("OrgA");
				s._orgB = info.GetDouble("OrgB");
				s._endA = info.GetDouble("EndA");
				s._endB = info.GetDouble("EndB");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:LinkedScaleParameters.cs

示例13: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				double offset = info.GetDouble("DashOffset");
				int count = info.OpenArray("Pattern");
				double[] pattern = new double[count];
				for (int i = 0; i < pattern.Length; ++i)
					pattern[i] = info.GetDouble("e");
				info.CloseArray(count);

				return DeserializeV0(new Custom(offset, pattern), info, parent);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:Custom.cs

示例14: Deserialize

			public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				ParameterSetElement s = o != null ? (ParameterSetElement)o : new ParameterSetElement();

				s.Name = info.GetString("Name");
				s.Parameter = info.GetDouble("Value");
				s.Variance = info.GetDouble("Variance");
				s.Vary = info.GetBoolean("Vary");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:ParameterSet.cs

示例15: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = null != o ? (GraphExportOptions)o : new GraphExportOptions();

				s._imageFormat = (ImageFormat)info.GetValue("ImageFormat", s);
				s._pixelFormat = (PixelFormat)info.GetEnum("PixelFormat", typeof(PixelFormat));
				s.BackgroundBrush = (BrushX)info.GetValue("Background", s);
				s._sourceDpiResolution = info.GetDouble("SourceResolution");
				s._destinationDpiResolution = info.GetDouble("DestinationResolution");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:GraphExportOptions.cs


注:本文中的Altaxo.GetDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。