Beispiel #1
0
			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;
			}
			protected virtual RealFourierTransformation2DOptions SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (o == null ? new RealFourierTransformation2DOptions() : (RealFourierTransformation2DOptions)o);

				s._isUserDefinedRowIncrementValue = info.GetBoolean("IsUserDefinedRowIncrementValue");
				s._rowIncrementValue = info.GetDouble("RowIncrementValue");
				s._isUserDefinedColumnIncrementValue = info.GetBoolean("IsUserDefinedColumnIncrementValue");
				s._columnIncrementValue = info.GetDouble("ColumnIncrementValue");
				s._replacementValueForNaNMatrixElements = info.GetNullableDouble("ReplacementValueForNaNMatrixElements");
				s._replacementValueForInfiniteMatrixElements = info.GetNullableDouble("ReplacementValueForInfiniteMatrixElements");
				s._dataPretreatmentCorrectionOrder = info.GetNullableInt32("DataPretreatmentCorrectionOrder");
				s._fourierWindow = (Altaxo.Calc.Fourier.Windows.IWindows2D)info.GetValue("FourierWindow", s);

				s._kindOfOutputResult = (RealFourierTransformationOutputKind)info.GetEnum("KindOfOutputResult", typeof(RealFourierTransformationOutputKind));
				s._centerResult = info.GetBoolean("CenterResult");
				s._resultFractionOfRows = info.GetDouble("ResultFractionOfRows");
				s._resultFractionOfColumns = info.GetDouble("ResultFractionOfColumns");

				s._outputFrequencyHeaderColumns = info.GetBoolean("OutputFrequencyHeaderColumns");
				s._frequencyRowHeaderColumnName = info.GetString("FrequencyRowHeaderColumnName");
				s._frequencyColumnHeaderColumnName = info.GetString("FrequencyColumnHeaderColumnName");

				s._outputPeriodHeaderColumns = info.GetBoolean("OutputPeriodHeaderColumns");
				s._periodRowHeaderColumnName = info.GetString("PeriodRowHeaderColumnName");
				s._periodColumnHeaderColumnName = info.GetString("PeriodColumnHeaderColumnName");

				return s;
			}
Beispiel #3
0
			protected virtual LinearTickSpacing SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				LinearTickSpacing s = null != o ? (LinearTickSpacing)o : new LinearTickSpacing();
				s._zeroLever = info.GetDouble("ZeroLever");
				s._orgGrace = info.GetDouble("MinGrace");
				s._endGrace = info.GetDouble("MaxGrace");
				s._snapOrgToTick = (BoundaryTickSnapping)info.GetEnum("SnapOrgToTick", typeof(BoundaryTickSnapping));
				s._snapEndToTick = (BoundaryTickSnapping)info.GetEnum("SnapEndToTick", typeof(BoundaryTickSnapping));

				s._targetNumberOfMajorTicks = info.GetInt32("TargetNumberOfMajorTicks");
				s._targetNumberOfMinorTicks = info.GetInt32("TargetNumberOfMinorTicks");
				s._userDefinedMajorSpan = info.GetNullableDouble("UserDefinedMajorSpan");
				s._userDefinedMinorTicks = info.GetNullableInt32("UserDefinedMinorTicks");

				s._transformationOffset = info.GetDouble("TransformationOffset");
				s._transformationDivider = info.GetDouble("TransformationDivider");
				s._transformationOperationIsMultiply = info.GetBoolean("TransformationIsMultiply");

				s.SuppressedMajorTicks = (SuppressedTicks)info.GetValue("SuppressedMajorTicks", s);
				s.SuppressedMinorTicks = (SuppressedTicks)info.GetValue("SuppressedMinorTicks", s);
				s.AdditionalMajorTicks = (AdditionalTicks)info.GetValue("AdditionalMajorTicks", s);
				s.AdditionalMinorTicks = (AdditionalTicks)info.GetValue("AdditionalMinorTicks", s);

				return s;
			}
Beispiel #4
0
			protected virtual InverseTickSpacing SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				InverseTickSpacing s = null != o ? (InverseTickSpacing)o : new InverseTickSpacing();
				s._orgGrace = info.GetDouble("MinGrace");
				s._endGrace = info.GetDouble("MaxGrace");
				s._snapOrgToTick = (BoundaryTickSnapping)info.GetEnum("SnapOrgToTick", typeof(BoundaryTickSnapping));
				s._snapEndToTick = (BoundaryTickSnapping)info.GetEnum("SnapEndToTick", typeof(BoundaryTickSnapping));

				s._targetNumberOfMajorTicks = info.GetInt32("TargetNumberOfMajorTicks");
				s._targetNumberOfMinorTicks = info.GetInt32("TargetNumberOfMinorTicks");
				s._userDefinedMajorSpan = info.GetNullableDouble("UserDefinedMajorSpan");
				s._userDefinedMinorTicks = info.GetNullableInt32("UserDefinedMinorTicks");

				s._transformationOffset = info.GetDouble("TransformationOffset");
				s._transformationDivider = info.GetDouble("TransformationDivider");
				s._transformationOperationIsMultiply = info.GetBoolean("TransformationIsMultiply");

				s.ChildSetMember(ref s._suppressedMajorTicks, (SuppressedTicks)info.GetValue("SuppressedMajorTicks", s));
				s.ChildSetMember(ref s._suppressedMinorTicks, (SuppressedTicks)info.GetValue("SuppressedMinorTicks", s));
				s.ChildSetMember(ref s._additionalMajorTicks, (AdditionalTicks)info.GetValue("AdditionalMajorTicks", s));
				s.ChildSetMember(ref s._additionalMinorTicks, (AdditionalTicks)info.GetValue("AdditionalMinorTicks", s));

				if (s._suppressedMajorTicks == null)
					s._suppressedMajorTicks = new SuppressedTicks() { ParentObject = s };
				if (s._suppressedMinorTicks == null)
					s._suppressedMinorTicks = new SuppressedTicks() { ParentObject = s };

				if (s._additionalMajorTicks == null)
					s._additionalMajorTicks = new AdditionalTicks() { ParentObject = s };
				if (s._additionalMinorTicks == null)
					s._additionalMinorTicks = new AdditionalTicks() { ParentObject = s };

				return s;
			}
			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (ScatterPlotStyle)o ?? new ScatterPlotStyle(info);

				s._independentSkipFreq = info.GetBoolean("IndependentSkipFreq");
				s._skipFreq = info.GetInt32("SkipFreq");

				s._ignoreMissingDataPoints = info.GetBoolean("IgnoreMissingDataPoints");
				s._independentOnShiftingGroupStyles = info.GetBoolean("IndependentOnShiftingGroupStyles");

				s._independentScatterSymbol = info.GetBoolean("IndependentScatterSymbol");
				s._scatterSymbol = (IScatterSymbol)info.GetValue("ScatterSymbol", s);

				s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
				s._symbolSize = info.GetSingle("SymbolSize");
				s._independentColor = info.GetBoolean("IndependentColor");
				s._color = (NamedColor)info.GetValue("Color", s);

				s._overrideFrame = info.GetBoolean("OverrideFrame");
				s._overriddenFrame = (IScatterSymbolFrame)info.GetValue("OverriddenFrame", s);
				s._overrideInset = info.GetBoolean("OverrideInset");
				s._overriddenInset = (IScatterSymbolInset)info.GetValue("OverriddenInset", s);
				s._overrideStructureWidthOffset = info.GetNullableDouble("OverriddenStructureWidthOffset");
				s._overrideStructureWidthFactor = info.GetNullableDouble("OverriddenStructureWidthFactor");
				s._overridePlotColorInfluence = info.GetNullableEnum<PlotColorInfluence>("OverriddenPlotColorInfluence");
				s._overrideFillColor = (NamedColor?)info.GetValue("OverriddenFillColor", s);
				s._overrideFrameColor = (NamedColor?)info.GetValue("OverriddenFrameColor", s);
				s._overrideInsetColor = (NamedColor?)info.GetValue("OverriddenInsetColor", s);

				return s;
			}