Esempio n. 1
0
        internal static int LoadNew(IntPtr proc, int parIndex, int err, out HGnuplot[] obj)
        {
            HTuple tuple;

            err = HTuple.LoadNew(proc, parIndex, err, out tuple);
            obj = new HGnuplot[tuple.Length];
            for (int index = 0; index < tuple.Length; ++index)
            {
                obj[index] = new HGnuplot(tuple[index].IP);
            }
            return(err);
        }
Esempio n. 2
0
        /// <summary>
        ///   Plot a function using gnuplot.
        ///   Instance represents: Function to be plotted.
        /// </summary>
        /// <param name="gnuplotFileID">Identifier for the gnuplot output stream.</param>
        public void GnuplotPlotFunct1d(HGnuplot gnuplotFileID)
        {
            IntPtr proc = HalconAPI.PreCall(1295);

            this.Store(proc, 1);
            HalconAPI.Store(proc, 0, (HTool)gnuplotFileID);
            int procResult = HalconAPI.CallProcedure(proc);

            this.UnpinTuple();
            HalconAPI.PostCall(proc, procResult);
            GC.KeepAlive((object)this);
            GC.KeepAlive((object)gnuplotFileID);
        }
Esempio n. 3
0
 internal static int LoadNew(IntPtr proc, int parIndex, int err, out HGnuplot obj)
 {
     obj = new HGnuplot(HTool.UNDEF);
     return(obj.Load(proc, parIndex, err));
 }