本文整理汇总了C#中Altaxo类的典型用法代码示例。如果您正苦于以下问题:C# Altaxo类的具体用法?C# Altaxo怎么用?C# Altaxo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Altaxo类属于命名空间,在下文中一共展示了Altaxo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
WhiteOut s = null!=o ? (WhiteOut)o : new WhiteOut();
return s;
}
示例2: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
ColorProviderBGMYR s = null != o ? (ColorProviderBGMYR)o : new ColorProviderBGMYR();
info.GetBaseValueEmbedded(s, typeof(ColorProviderBase), parent);
return s;
}
示例3: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
IntegerRangeAsCollection s = (IntegerRangeAsCollection)obj;
info.AddValue("Start",s._start);
info.AddValue("Count",s._count);
}
示例4: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
PositiveFiniteNumericalBoundaries s = null!=o ? (PositiveFiniteNumericalBoundaries)o : new PositiveFiniteNumericalBoundaries();
info.GetBaseValueEmbedded(s,typeof(PositiveFiniteNumericalBoundaries).BaseType,parent);
return s;
}
示例5: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (FreeLabelFormatting)o ?? new FreeLabelFormatting();
info.GetBaseValueEmbedded(s, typeof(FreeLabelFormatting).BaseType, parent);
s._formatString = info.GetString("FormatString");
return s;
}
示例6: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
NumericLabelFormattingAuto s = null != o ? (NumericLabelFormattingAuto)o : new NumericLabelFormattingAuto();
info.GetBaseValueEmbedded(s, typeof(NumericLabelFormattingBase), parent);
return s;
}
示例7: FormatItem
protected override string FormatItem(Altaxo.Data.AltaxoVariant item)
{
if (item.IsType(Altaxo.Data.AltaxoVariant.Content.VDouble))
return FormatItem((double)item);
else
return item.ToString();
}
示例8: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
OpenPathShapeBase s = (OpenPathShapeBase)obj;
info.AddBaseValueEmbedded(s, typeof(OpenPathShapeBase).BaseType);
info.AddValue("LinePen", s._linePen);
}
示例9: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (ItemLocationDirectAspectPreserving)obj;
info.AddValue("OriginalSize", s._originalItemSize);
info.AddEnum("AspectPreserving", s._aspectPreserving);
info.AddBaseValueEmbedded(obj, typeof(ItemLocationDirectAspectPreserving).BaseType);
}
示例10: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (DecomposeByColumnContentOptions)obj;
info.AddEnum("DestinationOutput", s._destinationOutput);
info.AddEnum("DestinationColumnSorting", s._destinationColumnSorting);
}
示例11: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
int independentVariable = info.GetInt32("IndependentVariable");
int dependentVariable = info.GetInt32("DependentVariable");
double[] parameter;
info.GetArray("ParameterValues",out parameter);
object fo = info.GetValue("FitFunction");
if( fo is Altaxo.Serialization.Xml.AssemblyAndTypeSurrogate)
fo = ((Altaxo.Serialization.Xml.AssemblyAndTypeSurrogate)fo).CreateInstance();
FitFunctionToScalarFunctionDDWrapper s;
if(o == null)
{
s = new FitFunctionToScalarFunctionDDWrapper(fo as IFitFunction,dependentVariable,independentVariable,parameter);
}
else
{
s = (FitFunctionToScalarFunctionDDWrapper)o;
s = (FitFunctionToScalarFunctionDDWrapper)o;
s._independentVariable = independentVariable;
s._dependentVariable = dependentVariable;
s._parameter = parameter;
s._fitFunction = fo as IFitFunction;
}
return s;
}
示例12: Deserialize
public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (ReadableColumnProxyForStandaloneColumns)o ?? new ReadableColumnProxyForStandaloneColumns(null);
object node = info.GetValue("Column", s);
s._column = (IReadableColumn)node;
return s;
}
示例13: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
System.Drawing.PointF s = (System.Drawing.PointF)obj;
info.AddValue("X", s.X);
info.AddValue("Y", s.Y);
}
示例14: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
XYColumnPlotData pa = (XYColumnPlotData)info.GetValue("Data", null);
XYLineScatterPlotStyle lsps = (XYLineScatterPlotStyle)info.GetValue("Style", null);
if (lsps.XYPlotLineStyle != null)
lsps.XYPlotLineStyle.UseSymbolGap = lsps.LineSymbolGap; // this has changed and is now hosted in the LineStyle itself
G2DPlotStyleCollection ps = new G2DPlotStyleCollection(new IG2DPlotStyle[] { lsps.XYPlotLineStyle, lsps.ScatterStyle, lsps.XYPlotLabelStyle });
if (lsps.XYPlotLabelStyle != null)
{
XmlSerializationSurrogate0 surr = new XmlSerializationSurrogate0();
surr._item = pa;
surr._label = lsps.XYPlotLabelStyle;
info.DeserializationFinished += new Altaxo.Serialization.Xml.XmlDeserializationCallbackEventHandler(surr.info_DeserializationFinished);
}
if (null == o)
{
return new XYColumnPlotItem(pa, ps);
}
else
{
XYColumnPlotItem s = (XYColumnPlotItem)o;
s.Data = pa;
s.Style = ps;
return s;
}
}
示例15: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (VisibleLightSpectrum)obj;
info.AddBaseValueEmbedded(s, typeof(ColorProviderBase));
info.AddValue("Gamma", s._gamma);
info.AddValue("Brightness", s._brightness);
}