Example #1
0
        /// <summary>
        /// Creates a copy of the Function1DItem.
        /// </summary>
        public override Item Clone()
        {
            Function1DItem f = new Function1DItem();

            f.CopyFrom(this);
            return(f);
        }
Example #2
0
        /// <summary>
        /// Copies from another Funtion1D.
        /// </summary>
        public override void CopyFrom(Item src)
        {
            base.CopyFrom(src);
            Function1DItem f = (Function1DItem)src;

            color     = f.color;
            lineStyle = f.lineStyle;
            lineWidth = f.lineWidth;
            Source    = f.Source;
            Compiler.Compile(this);
        }
Example #3
0
 /// <summary>
 /// A constructor that sets the Item and PlotModel of the painter.
 /// </summary>
 public Function1DPainter2D(PlotModel m, Item x) : base(m, x)
 {
     F = (Function1DItem)x;
 }