当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.AddArray方法代码示例

本文整理汇总了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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:DateTimeColumn.cs

示例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);
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:14,代码来源:FitElement.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:AsciiImportDataSource.cs

示例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));
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:FitFunctionToScalarFunctionDDWrapper.cs

示例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();
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:10,代码来源:XYFunctionPlotData.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:18,代码来源:FitElement.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:46,代码来源:PenX.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:6,代码来源:AsciiSeparationStrategy.cs

示例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);

      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:MultivariateContentMemento.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:31,代码来源:FitFunctionScript.cs

示例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);
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:44,代码来源:PenX.cs


注:本文中的Altaxo.AddArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。