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


C# Altaxo.GetInt32方法代码示例

本文整理汇总了C#中Altaxo.GetInt32方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetInt32方法的具体用法?C# Altaxo.GetInt32怎么用?C# Altaxo.GetInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.GetInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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

示例2: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo  info, object parent)
      {
        IntegerRangeAsCollection s = null!=o ? (IntegerRangeAsCollection)o : new IntegerRangeAsCollection();

        s._start = info.GetInt32("Start");
        s._count = info.GetInt32("Count");

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

示例3: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				NumericLabelFormattingBase s = (NumericLabelFormattingBase)o;
				info.GetBaseValueEmbedded(s, typeof(LabelFormattingBase), parent);
				s._decimalPlaces = info.GetInt32("DecimalPlaces");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:7,代码来源:NumericLabelFormattingBase.cs

示例4: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				RowHeaderStyle s = null != o ? (RowHeaderStyle)o : new RowHeaderStyle();
				info.GetBaseValueEmbedded(s, typeof(RowHeaderStyle).BaseType, parent);
				s._rowHeight = info.GetInt32("Height");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:7,代码来源:RowHeaderStyle.cs

示例5: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        Log10Scale s = null!=o ? (Log10Scale)o : new Log10Scale();

        s._log10Org = (double)info.GetDouble("Log10Org");
        s._log10End = (double)info.GetDouble("Log10End");

        s._decadesPerMajorTick = (int)info.GetInt32("DecadesPerMajor");

        bool AxisOrgFixed = (bool)info.GetBoolean("OrgFixed");
        bool AxisEndFixed = (bool)info.GetBoolean("EndFixed");

        s._dataBounds = (PositiveFiniteNumericalBoundaries)info.GetValue("Bounds",typeof(PositiveFiniteNumericalBoundaries));
    
        s._dataBounds.BoundaryChanged += new BoundaryChangedHandler(s.OnBoundariesChanged);


        s._rescaling = new LogarithmicAxisRescaleConditions();
        s._rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);

        LogarithmicAxisRescaleConditions rescaling = new LogarithmicAxisRescaleConditions();
        rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);
        s._rescaling = rescaling;

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:27,代码来源:Log10Scale.cs

示例6: Deserialize

			public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				KohlrauschDecay s = o != null ? (KohlrauschDecay)o : new KohlrauschDecay();
				s.NumberOfRelaxations = info.GetInt32("NumberOfRelaxations");
				s._logarithmizeResult = info.GetBoolean("LogarithmizeResult");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:7,代码来源:KohlrauschDecay.cs

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

示例8: SDeserialize

			protected virtual AngularRescaleConditions SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				AngularRescaleConditions s = null != o ? (AngularRescaleConditions)o : new AngularRescaleConditions();

				s._scaleOrigin = info.GetInt32("ScaleOrigin");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:AngularRescaleConditions.cs

示例9: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				RegularPolygon s = null != o ? (RegularPolygon)o : new RegularPolygon(info);
				info.GetBaseValueEmbedded(s, typeof(RegularPolygon).BaseType, parent);

				s._vertices = info.GetInt32("NumberOfVertices");
				s._cornerRadius = info.GetDouble("CornerRadius");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:RegularPolygon.cs

示例10: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				FiniteDateTimeBoundaries s = null != o ? (FiniteDateTimeBoundaries)o : new FiniteDateTimeBoundaries();

				s._numberOfItems = info.GetInt32("NumberOfItems");
				s._minValue = info.GetDateTime("MinValue");
				s._maxValue = info.GetDateTime("MaxValue");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:FiniteDateTimeBoundaries.cs

示例11: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (RandomCircles)o ?? new RandomCircles();
				info.GetBaseValueEmbedded(s, s.GetType().BaseType, parent);

				s._randomSeed = info.GetInt32("RandomSeed");
				s._circleDiameterPt = info.GetDouble("CircleDiameter");
				s._fillingFactor = info.GetDouble("FillingFactor");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:RandomCircles.cs

示例12: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        NumericalBoundaries s = (NumericalBoundaries)o;

        s._numberOfItems = info.GetInt32("NumberOfItems");  
        s._minValue = info.GetDouble("MinValue");
        s._maxValue = info.GetDouble("MaxValue");

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:11,代码来源:NumericalBoundaries.cs

示例13: SDeserialize

			protected virtual CSPlaneID SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var perpendicularAxisNumber = info.GetInt32("Axis");
				var logicalValue = info.GetDouble("Logical");
				var usePhysicalValue = info.GetBoolean("UsePhysical");
				double physicalValue = 0;
				if (usePhysicalValue)
					physicalValue = (AltaxoVariant)info.GetValue("Physical", null);

				return new CSPlaneID(perpendicularAxisNumber, logicalValue, usePhysicalValue, physicalValue);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:CSPlaneID.cs

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

示例15: SDeserialize

      protected virtual CSPlaneID SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        CSPlaneID s = (o == null ? new CSPlaneID() : (CSPlaneID)o);

        s._perpendicularAxisNumber = info.GetInt32("Axis");
        s._logicalValue = info.GetDouble("Logical");
        s._usePhysicalValue = info.GetBoolean("UsePhysical");
        if (s._usePhysicalValue)
          s._physicalValue = (AltaxoVariant)info.GetValue("Physical", s);

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:12,代码来源:CSPlaneID.cs


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