當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。