本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}