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


C# Altaxo.GetValue方法代码示例

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


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

示例1: Deserialize

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

				XmlSerializationSurrogate0 surr = new XmlSerializationSurrogate0();
				surr._TableController = s;
				if (info.CurrentElementName == "Controller")
				{
					info.OpenElement();
					surr._PathToLayout = (AbsoluteDocumentPath)info.GetValue("Layout", s);
					info.CloseElement();
				}
				else if (info.CurrentElementName == "BaseType")
				{
					info.GetString("BaseType");
					surr._PathToLayout = (AbsoluteDocumentPath)info.GetValue("Layout", s);
				}
				else
				{
					surr._PathToLayout = (AbsoluteDocumentPath)info.GetValue("Layout", s);
				}

				info.DeserializationFinished += new Altaxo.Serialization.Xml.XmlDeserializationCallbackEventHandler(surr.EhDeserializationFinished);

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

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

示例3: Deserialize

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

				s._table = (Altaxo.Data.DataTable)info.GetValue("Table", s);
				s._layout = (Altaxo.Worksheet.WorksheetLayout)info.GetValue("Layout", s);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:TablePlusLayout.cs

示例4: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (DirectionalLight)o ?? new DirectionalLight(info);
				s._isAffixedToCamera = info.GetBoolean("IsAffixedToCamera");
				s._lightAmplitude = info.GetDouble("LightAmplitude");
				s._color = (NamedColor)info.GetValue("Color", s);
				s._directionToLight = (VectorD3D)info.GetValue("DirectionToLight", s);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:DirectionalLight.cs

示例5: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				OpenPathShapeBase s = (OpenPathShapeBase)o;
				info.GetBaseValueEmbedded(s, typeof(OpenPathShapeBase).BaseType, parent);

				s.Pen = (PenX)info.GetValue("LinePen", s);
				s.OutlinePen = (PenX)info.GetValue("OutlinePen", s);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:OpenPathShapeBase.cs

示例6: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (PointLight)o ?? new PointLight(info);
				s._isAffixedToCamera = info.GetBoolean("IsAffixedToCamera");
				s._lightAmplitude = info.GetDouble("LightAmplitude");
				s._color = (NamedColor)info.GetValue("Color", s);
				s._position = (PointD3D)info.GetValue("Position", s);
				s._range = info.GetDouble("Range");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:PointLight.cs

示例7: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (HemisphericAmbientLight)o ?? new HemisphericAmbientLight(info);
				s._isAffixedToCamera = info.GetBoolean("IsAffixedToCamera");
				s._lightAmplitude = info.GetDouble("LightAmplitude");
				s._colorBelow = (NamedColor)info.GetValue("ColorBelow", s);
				s._colorAbove = (NamedColor)info.GetValue("ColorAbove", s);
				s._directionBelowToAbove = (VectorD3D)info.GetValue("DirectionBelowToAbove", s);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:HemisphericAmbientLight.cs

示例8: Deserialize

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

        s._fitEnsemble = (FitEnsemble)info.GetValue("FitEnsemble",s);
        s._fitEnsemble.Changed += new EventHandler(s.EhFitEnsemble_Changed);
        s._currentParameters = (ParameterSet)info.GetValue("Parameters",s);

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

示例9: Deserialize

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

				s._text = info.GetString("Text");
				s._font = (FontX)info.GetValue("Font", s);
				s._color = (Color)info.GetValue("Color", s);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:SimpleTextGraphic.cs

示例10: Deserialize

			public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (TransformedReadableColumnProxyForStandaloneColumns)o ?? new TransformedReadableColumnProxyForStandaloneColumns(info);
				s._underlyingColumn = (IReadableColumn)info.GetValue("Column", s);
				s._transformation = (IVariantToVariantTransformation)info.GetValue("Transformation", s);
				if (null != s._underlyingColumn)
					s._cachedResultingColumn = new TransformedReadableColumn(s._underlyingColumn, s._transformation);

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

示例11: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (RectangularBackground)o ?? new RectangularBackground();
				s._material = (IMaterial)info.GetValue("Material", s);
				s._padding = (Margin2D)info.GetValue("Padding", s);
				s._customDistance = info.GetNullableDouble("CustomDistance");
				s._customThickness = info.GetNullableDouble("CustomThickness");

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

示例12: SDeserialize

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

				s.InternalSetDataBounds((TextBoundaries)info.GetValue("Bounds", s));
				s.InternalSetRescaling((NumericScaleRescaleConditions)info.GetValue("Rescaling", s));
				s.ProcessDataBounds();

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

示例13: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (LightSettings)o ?? new LightSettings(info);
				s._ambientLight = (HemisphericAmbientLight)info.GetValue("AmbientLight", s);
				s._discreteLight0 = (IDiscreteLight)info.GetValue("DiscreteLight0", s);
				s._discreteLight1 = (IDiscreteLight)info.GetValue("DiscreteLight1", s);
				s._discreteLight2 = (IDiscreteLight)info.GetValue("DiscreteLight2", s);
				s._discreteLight3 = (IDiscreteLight)info.GetValue("DiscreteLight3", s);
				s.CalculateIsAnyAffixedToCamera();
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:LightSettings.cs

示例14: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (ClosedSymbolBase)o;
				s._plotColorInfluence = (PlotColorInfluence)info.GetEnum("PlotColorInfluence", typeof(PlotColorInfluence));
				s._relativeStructureWidth = info.GetDouble("StructureScale");
				s._fillColor = (NamedColor)info.GetValue("Fill", null);
				s._frame = (IScatterSymbolFrame)info.GetValue("Frame", null);
				s._inset = (IScatterSymbolInset)info.GetValue("Inset", null);

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

示例15: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (OrthographicCamera)o ?? new OrthographicCamera();
				s._upVector = (VectorD3D)info.GetValue("UpVector", s);
				s._eyePosition = (PointD3D)info.GetValue("EyePosition", s);
				s._targetPosition = (PointD3D)info.GetValue("TargetPosition", s);
				s._zNear = info.GetDouble("ZNear");
				s._zFar = info.GetDouble("ZFar");
				s._widthAtZNear = info.GetDouble("Width");
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:OrthographicCamera.cs


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