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; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { double smoothness = info.GetDouble("Smoothness"); double metalness = info.GetDouble("Metalness"); double indexOfRefraction = info.GetDouble("IndexOfRefraction"); return new MaterialWithoutColorOrTexture(smoothness, metalness, indexOfRefraction); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = null != o ? (VisibleLightSpectrum)o : new VisibleLightSpectrum(); info.GetBaseValueEmbedded(s, typeof(ColorProviderBase), parent); s._gamma = info.GetDouble("Gramma"); s._brightness = info.GetDouble("Brightness"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { double smoothness = info.GetDouble("Smoothness"); double metalness = info.GetDouble("Metalness"); double indexOfRefraction = info.GetDouble("IndexOfRefraction"); var color = (NamedColor)info.GetValue("Color", null); return new MaterialWithUniformColor(color, smoothness, metalness, indexOfRefraction); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = (HatchBrushBase)o; s._repeatLengthPt = info.GetDouble("RepeatLength"); s._structureFactor = info.GetDouble("StructureFactor"); return s; }
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; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { RectangleD2D s = null != o ? (RectangleD2D)o : new RectangleD2D(); s.X = info.GetDouble("X"); s.Y = info.GetDouble("Y"); s.Width = info.GetDouble("Width"); s.Height = info.GetDouble("Height"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { WaterfallTransform s = null != o ? (WaterfallTransform)o : new WaterfallTransform(); s._scaleXInc = info.GetDouble("XScale"); s._scaleYInc = info.GetDouble("YScale"); s._useClipping = info.GetBoolean("UseClipping"); s._xinc = info.GetDouble("XInc"); s._yinc = info.GetDouble("YInc"); return s; }
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; }
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; }
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; }
protected virtual LinkedScaleParameters SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { LinkedScaleParameters s = null != o ? (LinkedScaleParameters)o : new LinkedScaleParameters(); s._orgA = info.GetDouble("OrgA"); s._orgB = info.GetDouble("OrgB"); s._endA = info.GetDouble("EndA"); s._endB = info.GetDouble("EndB"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { double offset = info.GetDouble("DashOffset"); int count = info.OpenArray("Pattern"); double[] pattern = new double[count]; for (int i = 0; i < pattern.Length; ++i) pattern[i] = info.GetDouble("e"); info.CloseArray(count); return DeserializeV0(new Custom(offset, pattern), info, parent); }
public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { ParameterSetElement s = o != null ? (ParameterSetElement)o : new ParameterSetElement(); s.Name = info.GetString("Name"); s.Parameter = info.GetDouble("Value"); s.Variance = info.GetDouble("Variance"); s.Vary = info.GetBoolean("Vary"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = null != o ? (GraphExportOptions)o : new GraphExportOptions(); s._imageFormat = (ImageFormat)info.GetValue("ImageFormat", s); s._pixelFormat = (PixelFormat)info.GetEnum("PixelFormat", typeof(PixelFormat)); s.BackgroundBrush = (BrushX)info.GetValue("Background", s); s._sourceDpiResolution = info.GetDouble("SourceResolution"); s._destinationDpiResolution = info.GetDouble("DestinationResolution"); return s; }
protected virtual SpanTickSpacing SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = null != o ? (SpanTickSpacing)o : new SpanTickSpacing(); s._showRatioEndOrg = info.GetBoolean("ShowRatioEndOrg"); s._relTickPosition = info.GetDouble("RelTickPosition"); s._transformationDivider = info.GetDouble("TransformationDivider"); s._transformationOperationIsMultiply = info.GetBoolean("TransformationIsMultiply"); return s; }
protected virtual LayerBackground SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { LayerBackground s = (o == null ? new LayerBackground() : (LayerBackground)o); s._background = (Background.IBackgroundStyle)info.GetValue("Background", s); s._leftPadding = info.GetDouble("LeftPadding"); s._topPadding = info.GetDouble("TopPadding"); s._rightPadding = info.GetDouble("RightPadding"); s._bottomPadding = info.GetDouble("BottomPadding"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { NumericAxisRescaleConditions s = null!=o ? (NumericAxisRescaleConditions)o : new NumericAxisRescaleConditions(); s._orgRescaling = (BoundaryRescaling)info.GetEnum("OrgRescaling",typeof(BoundaryRescaling)); s._org = (double)info.GetDouble("Org"); s._endRescaling = (BoundaryRescaling)info.GetEnum("EndRescaling",typeof(BoundaryRescaling)); s._end = (double)info.GetDouble("End"); s._spanRescaling = (BoundaryRescaling)info.GetEnum("SpanRescaling",typeof(BoundaryRescaling)); s._span = (double)info.GetDouble("Span"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = (SpotLight)o ?? new SpotLight(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._directionToLight = (VectorD3D)info.GetValue("DirectionToLight", s); s._range = info.GetDouble("Range"); s._outerConeAngle = info.GetDouble("OuterConeAngle"); s._innerConeAngle = info.GetDouble("InnerConeAngle"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var font = (FontX)info.GetValue("Font", null); var depth = info.GetDouble("Depth"); var s = new FontX3D(font, depth); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { bool rel = info.GetBoolean("IsRelative"); double val = info.GetDouble("Value"); return new RelativeOrAbsoluteValue(val,rel); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = (SyntheticBrushBase)o; s._repeatLengthPt = info.GetDouble("RepeatLength"); return s; }
public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { ConstantVarianceScaling s = o != null ? (ConstantVarianceScaling)o : new ConstantVarianceScaling(); s._scaling = info.GetDouble("ScalingFactor"); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { RectangleWithShadow s = null != o ? (RectangleWithShadow)o : new RectangleWithShadow(); s.Brush = new BrushX((NamedColor)info.GetValue("Color", s)) { ParentObject = s }; s._shadowLength = info.GetDouble(); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { DarkMarbel s = null != o ? (DarkMarbel)o : new DarkMarbel(); s.Brush = (BrushX)info.GetValue("Brush", parent); s._shadowLength = (float)info.GetDouble(); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { TextScale s = null != o ? (TextScale)o : new TextScale(info); s._cachedAxisOrg = (double)info.GetDouble("Org"); s._cachedAxisEnd = (double)info.GetDouble("End"); s._cachedAxisSpan = s._cachedAxisEnd - s._cachedAxisOrg; s._cachedOneByAxisSpan = 1 / s._cachedAxisSpan; s.ChildSetMember(ref s._rescaling, (NumericScaleRescaleConditions)info.GetValue("Rescaling", s)); s.ChildSetMember(ref s._dataBounds, (TextBoundaries)info.GetValue("Bounds", s)); s.ChildSetMember(ref s._tickSpacing, new Ticks.TextTickSpacing()); s.EhChildChanged(s._dataBounds, EventArgs.Empty); // for this old version, rescaling is not fully serialized, thus we have to simulate a DataBoundChanged event to get _rescaling updated, and finally _tickSpacing updated return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { DarkMarbel s = null != o ? (DarkMarbel)o : new DarkMarbel(); s.Brush = new BrushX((NamedColor)info.GetValue("Color", s)); s._shadowLength = info.GetDouble(); return s; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { RectangleWithShadow s = null != o ? (RectangleWithShadow)o : new RectangleWithShadow(); s.Brush = (BrushX)info.GetValue("Brush", parent); s._shadowLength = (float)info.GetDouble(); return s; }
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; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = (MultiLineLabelFormattingBase)o; info.GetBaseValueEmbedded(s, typeof(MultiLineLabelFormattingBase).BaseType, parent); s._relativeLineSpacing = info.GetDouble("LineSpacing"); s._textBlockAlignment = (Alignment)info.GetEnum("BlockAlignment", typeof(Alignment)); return s; }