Пример #1
0
 private int DevSetLineWidth(IntPtr width)
 {
     try
     {
         this.implementation.DevSetLineWidth(HDevOperatorWrapper.LoadTuple(width));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #2
0
 private int DevSetColored(IntPtr colored)
 {
     try
     {
         this.implementation.DevSetColored(HDevOperatorWrapper.LoadTuple(colored));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #3
0
 private int DevSetPaint(IntPtr paint)
 {
     try
     {
         this.implementation.DevSetPaint(HDevOperatorWrapper.LoadTuple(paint));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #4
0
 private int DevDispText(IntPtr text, IntPtr coordSystem, IntPtr row, IntPtr column, IntPtr color, IntPtr genParamNames, IntPtr genParamValues)
 {
     try
     {
         this.implementation.DevDispText(HDevOperatorWrapper.LoadTuple(text), HDevOperatorWrapper.LoadTuple(coordSystem), HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(color), HDevOperatorWrapper.LoadTuple(genParamNames), HDevOperatorWrapper.LoadTuple(genParamValues));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #5
0
 private int DevSetShape(IntPtr shape)
 {
     try
     {
         this.implementation.DevSetShape(HDevOperatorWrapper.LoadTuple(shape));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #6
0
 private int DevClearWindow()
 {
     try
     {
         this.implementation.DevClearWindow();
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #7
0
 private int DevSetPart(IntPtr row, IntPtr column, IntPtr width, IntPtr height)
 {
     try
     {
         this.implementation.DevSetPart(HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(width), HDevOperatorWrapper.LoadTuple(height));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #8
0
 private int DevGetWindow(IntPtr windowID)
 {
     try
     {
         HTuple windowHandle;
         this.implementation.DevGetWindow(out windowHandle);
         HalconAPI.StoreTuple(windowID, windowHandle);
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #9
0
 private int DevOpenWindow(IntPtr row, IntPtr column, IntPtr width, IntPtr height, IntPtr background, IntPtr windowID)
 {
     try
     {
         HTuple windowHandle;
         this.implementation.DevOpenWindow(HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(width), HDevOperatorWrapper.LoadTuple(height), HDevOperatorWrapper.LoadTuple(background), out windowHandle);
         HalconAPI.StoreTuple(windowID, windowHandle);
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Пример #10
0
        private int DevDisplay(IntPtr key)
        {
            HObject objectVal = (HObject)null;

            try
            {
                objectVal = new HObject(key);
                this.implementation.DevDisplay(objectVal);
                objectVal.Dispose();
            }
            catch (Exception ex)
            {
                if (objectVal != null)
                {
                    objectVal.Dispose();
                }
                return(HDevOperatorWrapper.ToHalconError(ex));
            }
            return(2);
        }