Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override void Assign(Base source)
        {
            base.Assign(source);
            CrossBandObject src = source as CrossBandObject;

            Shape         = src.Shape;
            EndBand       = src.EndBand;
            EndBandHeight = src.EndBandHeight;
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            CrossBandObject c = writer.DiffObject as CrossBandObject;

            base.Serialize(writer);

            if (Shape != c.Shape)
            {
                writer.WriteValue("Shape", Shape);
            }
            if (EndBand != null)
            {
                writer.WriteRef("EndBand", EndBand);
            }
            if (FloatDiff(EndBandHeight, c.EndBandHeight))
            {
                writer.WriteFloat("EndBandHeight", EndBandHeight);
            }
        }