コード例 #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);
        }