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


C# Altaxo类代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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