本文整理汇总了C#中Altaxo.OpenArray方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.OpenArray方法的具体用法?C# Altaxo.OpenArray怎么用?C# Altaxo.OpenArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.OpenArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: Deserialize
public object Deserialize(object obj, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
int count = info.OpenArray("List");
var s = null != obj ? (System.Collections.Generic.List<object>)obj : new System.Collections.Generic.List<object>(count);
s.Clear();
for (int i = 0; i < count; ++i)
s.Add(info.GetValue("e", parent));
info.CloseArray(count);
return s;
}
示例3: SDeserialize
protected virtual LinkedScaleCollection SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
LinkedScaleCollection s = null != o ? (LinkedScaleCollection)o : new LinkedScaleCollection();
int count = info.OpenArray("Properties");
s._linkedScales = new LinkedScale[count];
for (int i = 0; i < count; ++i)
s.SetLinkedScale((LinkedScale)info.GetValue("e", s), i);
info.CloseArray(count);
return s;
}
示例4: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
int numberOfLevelsDown = info.GetInt32("LevelsDown");
int count = info.OpenArray("Path");
var arr = new string[count];
for (int i = 0; i < count; i++)
arr[i] = info.GetString();
info.CloseArray(count);
return new RelativeDocumentPath(numberOfLevelsDown, arr);
}
示例5: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = null != o ? (ClosedCardinalSpline)o : new ClosedCardinalSpline(info);
info.GetBaseValueEmbedded(s, typeof(ClosedCardinalSpline).BaseType, parent);
s._tension = info.GetDouble("Tension");
s._curvePoints.Clear();
int count = info.OpenArray("Points");
for (int i = 0; i < count; i++)
s._curvePoints.Add((PointD2D)info.GetValue("e", s));
info.CloseArray(count);
return s;
}
示例6: Deserialize
public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
FitEnsemble s = o!=null ? (FitEnsemble)o : new FitEnsemble();
int arraycount = info.OpenArray();
for(int i=0;i<arraycount;++i)
s.Add( (FitElement)info.GetValue(s) );
info.CloseArray(arraycount);
s.CollectParameterNames();
return s;
}
示例7: SDeserialize
protected virtual AdditionalTicks SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
AdditionalTicks s = null != o ? (AdditionalTicks)o : new AdditionalTicks();
int count;
count = info.OpenArray("ByValues");
for (int i = 0; i < count; i++)
s._additionalTicks.Add((AltaxoVariant)info.GetValue("e", s));
info.CloseArray(count);
return s;
}
示例8: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = null != o ? (ShapeGroup)o : new ShapeGroup();
info.GetBaseValueEmbedded(s, typeof(ShapeGroup).BaseType, parent);
int count = info.OpenArray("Elements");
var list = new GraphicBase[count];
for (int i = 0; i < count; i++)
list[i] = (GraphicBase)info.GetValue("e", s);
info.CloseArray(count);
s.AddRange(list);
return s;
}
示例9: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
int count = info.OpenArray("ColorSets");
var colorSets = new Tuple<IColorSet, bool>[count];
for (int i = 0; i < count; ++i)
{
info.OpenElement(); // e
colorSets[i] = new Tuple<IColorSet, bool>((IColorSet)info.GetValue("ColorSet", null), info.GetBoolean("IsPlotColorSet"));
info.CloseElement();
}
info.CloseArray(count);
return new ColorSetBag(colorSets);
}
示例10: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
int count = info.OpenArray("RowSelections");
var list = new List<IRowSelection>();
for (int i = 0; i < count; ++i)
{
list.Add((IRowSelection)info.GetValue("e", parent));
}
info.CloseArray(count);
return new IntersectionOfRowSelections(info, list);
}
示例11: SDeserialize
protected virtual AsciiImportDataSource SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (o == null ? new AsciiImportDataSource() : (AsciiImportDataSource)o);
s._isDeserializationInProgress = true;
s.ChildSetMember(ref s._importOptions, (IDataSourceImportOptions)info.GetValue("ImportOptions", s));
s.ChildSetMember(ref s._asciiImportOptions, (AsciiImportOptions)info.GetValue("AsciiImportOptions", s));
var count = info.OpenArray("AsciiFiles");
for (int i = 0; i < count; ++i)
s._asciiFiles.Add((AbsoluteAndRelativeFileName)info.GetValue("e", s));
info.CloseArray(count);
info.AfterDeserializationHasCompletelyFinished += s.EhAfterDeserializationHasCompletelyFinished;
return s;
}
示例12: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
GraphicCollection s = null!=o ? (GraphicCollection)o : new GraphicCollection();
int count = info.OpenArray();
for(int i=0;i<count;i++)
{
GraphicBase go = (GraphicBase)info.GetValue(s);
s.Add(go);
}
info.CloseArray(count);
return s;
}
示例13: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
AscendingIntegerCollection s = null != o ? (AscendingIntegerCollection)o : new AscendingIntegerCollection();
int count = info.OpenArray();
for (int i = 0; i < count; i++)
{
info.OpenElement();
int rangestart = info.GetInt32("Start");
int rangecount = info.GetInt32("Count");
info.CloseElement();
s.AddRange(rangestart, rangecount);
}
info.CloseArray(count);
return s;
}
示例14: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
WorksheetLayoutCollection s = null!=o ? (WorksheetLayoutCollection)o : new WorksheetLayoutCollection();
int count;
count = info.OpenArray(); // TableLayouts
for(int i=0;i<count;i++)
{
WorksheetLayout style = (WorksheetLayout)info.GetValue("WorksheetLayout",s);
s.m_TableLayouts.Add(style.Guid,style);
}
info.CloseArray(count);
return s;
}
示例15: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string colorSetName = info.GetString("Name");
var colorSetLevel = (Altaxo.Main.ItemDefinitionLevel)info.GetEnum("Level", typeof(Altaxo.Main.ItemDefinitionLevel));
var creationDate = info.GetDateTime("CreationDate");
var isPlotColorSet = info.GetBoolean("IsPlotColorSet");
int count = info.OpenArray("Colors");
var colors = new NamedColor[count];
for (int i = 0; i < count; ++i)
{
string name = info.GetStringAttribute("Name");
string cvalue = info.GetString("e");
colors[i] = new NamedColor(AxoColor.FromInvariantString(cvalue), name);
}
info.CloseArray(count);
return new ColorSet(colorSetName, colors);
}