Beispiel #1
0
        /// <summary>Changes a global setting of the engine</summary>
        /// <param name="name">
        ///   The name of the attribute, e.g. "ignore_invalid_lines"
        ///   or "ignore_unresolved_lines"
        /// </param>
        /// <param name="attributeValue">The new value of the attribute</param>
        public void SetEngineAttribute(string name, HTuple attributeValue)
        {
            IntPtr tuple;

            HDevEngine.HCkE(HalconAPI.CreateTuple(out tuple));
            HalconAPI.StoreTuple(tuple, attributeValue);
            int err = EngineAPI.SetEngineAttribute(this.engine, name, tuple);

            GC.KeepAlive((object)this);
            HalconAPI.DestroyTuple(tuple);
            HDevEngine.HCkE(err);
        }