本文整理汇总了C#中Altaxo.AddArray方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.AddArray方法的具体用法?C# Altaxo.AddArray怎么用?C# Altaxo.AddArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.AddArray方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
Altaxo.Data.DateTimeColumn s = (Altaxo.Data.DateTimeColumn)obj;
// serialize the base class
info.AddBaseValueEmbedded(s, typeof(Altaxo.Data.DataColumn));
if (null == info.GetProperty("Altaxo.Data.DataColumn.SaveAsTemplate"))
info.AddArray("Data", s._data, s._count);
else
info.AddArray("Data", s._data, 0);
}
示例2: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
FitElement s = (FitElement)obj;
info.AddValue("FitFunction",s._fitFunction);
info.AddValue("NumberOfRows",s._rangeOfRows.Count);
info.AddValue("FirstRow",s._rangeOfRows.First);
info.AddArray("IndependentVariables",s._independentVariables,s._independentVariables.Length);
info.AddArray("DependentVariables",s._dependentVariables,s._dependentVariables.Length);
info.AddArray("VarianceEvaluation",s._errorEvaluation,s._errorEvaluation.Length);
info.AddArray("ParameterNames",s._parameterNames,s._parameterNames.Length);
info.AddValue("ParameterNameStart",s._parameterNameStart);
}
示例3: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (AsciiImportDataSource)obj;
info.AddValue("ImportOptions", s._importOptions);
info.AddValue("AsciiImportOptions", s._asciiImportOptions);
info.AddArray("AsciiFiles", s._asciiFiles.ToArray(), s._asciiFiles.Count);
}
示例4: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
FitFunctionToScalarFunctionDDWrapper s = (FitFunctionToScalarFunctionDDWrapper)obj;
info.AddValue("IndependentVariable",s._independentVariable);
info.AddValue("DependentVariable",s._dependentVariable);
info.AddArray("ParameterValues",s._parameter,s._parameter.Length);
if(s._fitFunction==null || info.IsSerializable(s._fitFunction))
info.AddValue("FitFunction",s._fitFunction);
else
info.AddValue("FitFunction",new Altaxo.Serialization.Xml.AssemblyAndTypeSurrogate(s._fitFunction));
}
示例5: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
ProductFunction s = (ProductFunction)obj;
info.AddArray("Coefficients", s._coefficients, s._coefficients.Length);
info.CreateArray("Functions", s._functions.Length);
for (int i = 0; i < s._functions.Length; i++)
info.AddValue("e", s._functions[i]);
info.CommitArray();
}
示例6: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
FitElement s = (FitElement)obj;
s.InternalCheckAndCorrectArraySize(true, false); // make sure the fit function has not changed unnoticed
info.AddValue("FitFunction", s._fitFunction);
info.AddValue("DataTable", s._dataTable);
info.AddValue("GroupNumber", s._groupNumber);
info.AddValue("RowSelection", s._rangeOfRows);
info.AddArray("IndependentVariables", s._independentVariables, s._independentVariables.Length);
info.AddArray("DependentVariables", s._dependentVariables, s._dependentVariables.Length);
info.AddArray("VarianceEvaluation", s._errorEvaluation, s._errorEvaluation.Length);
info.AddArray("ParameterNames", s._parameterNames, s._parameterNames.Length);
info.AddValue("ParameterNameStart", s._parameterNameStart);
}
示例7: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
PenX s = (PenX)obj;
Configured cp = PenX._GetConfiguredPropertiesVariable(s);
if (s.Cached) cp |= PenX.Configured.InCachedMode;
info.AddValue("Configured", (int)cp);
if (0 != (cp & PenX.Configured.PenType))
info.AddEnum("Type", s.PenType);
if (0 != (cp & PenX.Configured.Alignment))
info.AddEnum("Alignment", s.Alignment);
if (0 != (cp & PenX.Configured.Brush))
info.AddValue("Brush", s.BrushHolder);
if (0 != (cp & PenX.Configured.Color))
info.AddValue("Color", s.Color);
if (0 != (cp & PenX.Configured.CompoundArray))
info.AddArray("CompoundArray", s.CompoundArray, s.CompoundArray.Length);
if (null != s._dashPattern && !Drawing.DashPatterns.Solid.Instance.Equals(s._dashPattern))
{
info.AddValue("DashPattern", s._dashPattern);
if (0 != (cp & PenX.Configured.DashCap))
info.AddEnum("DashCap", s.DashCap);
}
if (0 != (cp & PenX.Configured.EndCap))
{
info.AddValue("EndCap", s.EndCap.Name);
info.AddValue("EndCapAbsSize", s._endCap.MinimumAbsoluteSizePt);
info.AddValue("EndCapRelSize", s._endCap.MinimumRelativeSize);
}
if (0 != (cp & PenX.Configured.LineJoin))
info.AddEnum("LineJoin", s.LineJoin);
if (0 != (cp & PenX.Configured.MiterLimit))
info.AddValue("MiterLimit", s.MiterLimit);
if (0 != (cp & PenX.Configured.StartCap))
{
info.AddValue("StartCap", s.StartCap.Name);
info.AddValue("StartCapAbsSize", s._startCap.MinimumAbsoluteSizePt);
info.AddValue("StartCapRelSize", s._startCap.MinimumRelativeSize);
}
if (0 != (cp & PenX.Configured.Transform))
info.AddArray("Transform", s.Transform.Elements, s.Transform.Elements.Length);
if (0 != (cp & PenX.Configured.Width))
info.AddValue("Width", s.Width);
}
示例8: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (FixedColumnWidthWithTabSeparationStrategy)obj;
info.AddArray("StartPositions", s._startPositions, s._startPositions.Length);
info.AddValue("TabSize", s._tabSize);
}
示例9: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
MultivariateContentMemento s = (MultivariateContentMemento)obj;
info.AddValue("TableName",s.TableName); // name of the Table
info.AddValue("SpectrumIsRow",s.SpectrumIsRow);
info.AddValue("SpectralIndices",s.SpectralIndices);
info.AddValue("ConcentrationIndices",s.ConcentrationIndices);
info.AddValue("MeasurementIndices",s.MeasurementIndices);
info.AddValue("PreferredNumberOfFactors", s._PreferredNumberOfFactors); // the property columns of that table
// new in version 1
info.AddArray("SpectralPreprocessingRegions",s._spectralPreprocessing.Regions,s._spectralPreprocessing.Regions.Length);
info.AddEnum("SpectralPreprocessingMethod", s._spectralPreprocessing.Method);
info.AddValue("SpectralPreprocessingDetrending", s._spectralPreprocessing.DetrendingOrder);
info.AddValue("SpectralPreprocessingEnsembleScale",s._spectralPreprocessing.EnsembleScale);
// new in version 2
info.AddValue("ClassNameOfAnalysisClass",s._ClassNameOfAnalysisClass);
}
示例10: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
FitFunctionScript s = (FitFunctionScript)obj;
// Update the user defined paramter names
if (s._scriptObject != null && s.IsUsingUserDefinedParameterNames)
{
IFitFunction ff = (IFitFunction)s._scriptObject;
if (s._UserDefinedParameterNames == null || s._UserDefinedParameterNames.Length != ff.NumberOfParameters)
s._UserDefinedParameterNames = new string[ff.NumberOfParameters];
for (int i = 0; i < ff.NumberOfParameters; ++i)
s._UserDefinedParameterNames[i] = ff.ParameterName(i);
}
info.AddValue("Category", s.FitFunctionCategory);
info.AddValue("Name", s.FitFunctionName);
info.AddValue("CreationTime", s._fitFunctionCreationTime);
info.AddValue("Description", s.FitFunctionName);
info.AddBaseValueEmbedded(s, typeof(AbstractScript));
info.AddValue("NumberOfParameters", s.NumberOfParameters);
info.AddValue("UserDefinedParameters", s.IsUsingUserDefinedParameterNames);
if (s.IsUsingUserDefinedParameterNames)
{
info.AddArray("UserDefinedParameterNames", s._UserDefinedParameterNames, s._UserDefinedParameterNames.Length);
}
info.AddArray("IndependentVariableNames", s._IndependentVariablesNames, s._IndependentVariablesNames.Length);
info.AddArray("DependentVariableNames", s._DependentVariablesNames, s._DependentVariablesNames.Length);
}
示例11: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
PenX s = (PenX)obj;
Configured cp = PenX._GetConfiguredPropertiesVariable(s);
if (s.Cached) cp |= PenX.Configured.InCachedMode;
info.AddValue("Configured", (int)cp);
if (0 != (cp & PenX.Configured.PenType))
info.AddEnum("Type", s.PenType);
if (0 != (cp & PenX.Configured.Alignment))
info.AddEnum("Alignment", s.Alignment);
if (0 != (cp & PenX.Configured.Brush))
info.AddValue("Brush", s.BrushHolder);
if (0 != (cp & PenX.Configured.Color))
info.AddValue("Color", s.Color);
if (0 != (cp & PenX.Configured.CompoundArray))
info.AddArray("CompoundArray", s.CompoundArray, s.CompoundArray.Length);
if (0 != (cp & PenX.Configured.DashStyle))
info.AddEnum("DashStyle", s.DashStyle);
if (0 != (cp & PenX.Configured.DashCap))
info.AddEnum("DashCap", s.DashCap);
if (0 != (cp & PenX.Configured.DashOffset))
info.AddValue("DashOffset", s.DashOffset);
if (0 != (cp & PenX.Configured.DashPattern))
info.AddArray("DashPattern", s.DashPattern, s.DashPattern.Length);
if (0 != (cp & PenX.Configured.EndCap))
{
info.AddValue("EndCap", s.EndCap.Name);
info.AddValue("EndCapSize", s.m_EndCap.Size);
}
if (0 != (cp & PenX.Configured.LineJoin))
info.AddEnum("LineJoin", s.LineJoin);
if (0 != (cp & PenX.Configured.MiterLimit))
info.AddValue("MiterLimit", s.MiterLimit);
if (0 != (cp & PenX.Configured.StartCap))
{
info.AddValue("StartCap", s.StartCap.Name);
info.AddValue("StartCapSize", s.m_StartCap.Size);
}
if (0 != (cp & PenX.Configured.Transform))
info.AddArray("Transform", s.Transform.Elements, s.Transform.Elements.Length);
if (0 != (cp & PenX.Configured.Width))
info.AddValue("Width", s.Width);
}