本文整理匯總了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);
}