Exemple #1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ScatterPlotStyle s = SDeserialize(o, info, parent);

                // restore the cached values
                s.SetCachedValues();

                return(s);
            }
Exemple #2
0
            protected virtual ScatterPlotStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ScatterPlotStyle s = null != o ? (ScatterPlotStyle)o : new ScatterPlotStyle(info);

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

                s._symbolShape           = (IScatterSymbol)info.GetValue("Shape", s);
                s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
                s._symbolSize            = info.GetSingle("SymbolSize");

                s._material         = (IMaterial)info.GetValue("Material", s);
                s._independentColor = info.GetBoolean("IndependentColor");
                return(s);
            }
Exemple #3
0
        public void CopyFrom(ScatterPlotStyle from, Main.EventFiring eventFiring)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            using (var suspendToken = SuspendGetToken())
            {
                _independentSkipFreq   = from._independentSkipFreq;
                _skipFreq              = from._skipFreq;
                _symbolShape           = from._symbolShape; // immutable
                _independentSymbolSize = from._independentSymbolSize;
                _symbolSize            = from._symbolSize;

                _material         = from._material; // immutable
                _independentColor = from._independentColor;

                EhSelfChanged(EventArgs.Empty);

                suspendToken.Resume(eventFiring);
            }
        }
Exemple #4
0
 public ScatterPlotStyle(ScatterPlotStyle from)
 {
     CopyFrom(from, Main.EventFiring.Suppressed);
 }
Exemple #5
0
		public ScatterPlotStyle(ScatterPlotStyle from)
		{
			CopyFrom(from, Main.EventFiring.Suppressed);
		}
Exemple #6
0
		public void CopyFrom(ScatterPlotStyle from, Main.EventFiring eventFiring)
		{
			if (object.ReferenceEquals(this, from))
				return;

			using (var suspendToken = SuspendGetToken())
			{
				this._independentSkipFreq = from._independentSkipFreq;
				this._skipFreq = from._skipFreq;
				this._symbolShape = from._symbolShape; // immutable
				this._independentSymbolSize = from._independentSymbolSize;
				this._symbolSize = from._symbolSize;

				this._material = from._material; // immutable
				this._independentColor = from._independentColor;

				EhSelfChanged(EventArgs.Empty);

				suspendToken.Resume(eventFiring);
			}
		}