Exemple #1
0
 public void DrawStaticShapeNotClear(CogRectangle _cogRect, string _groupName, CogColorConstants _color, int _LineSize = 2)
 {
     StaticRectGraphic       = new CogRectangle();
     StaticRectGraphic       = _cogRect;
     StaticRectGraphic.Color = _color;
     StaticRectGraphic.LineWidthInScreenPixels = _LineSize;
     StaticRectGraphic.Selected = false;
     kCogDisplay.StaticGraphics.Add(StaticRectGraphic.CopyBase(CogCopyShapeConstants.All), _groupName);
 }
Exemple #2
0
 public void DrawStaticShape(CogRectangle _cogRect, string _groupName, bool ClearFlag = false)
 {
     StaticRectGraphic       = new CogRectangle();
     StaticRectGraphic       = _cogRect;
     StaticRectGraphic.Color = CogColorConstants.Green;
     StaticRectGraphic.LineWidthInScreenPixels = 2;
     StaticRectGraphic.Selected = false;
     kCogDisplay.ClearDisplay("DistanceDrawRegion");
     kCogDisplay.StaticGraphics.Add(StaticRectGraphic.CopyBase(CogCopyShapeConstants.All), _groupName);
 }
Exemple #3
0
        /// <summary>
        /// 수정이 불 가능한 고정 도형 그리기
        /// </summary>
        /// <param name="_cogRectAffine">RectAffine 객체</param>
        /// <param name="_groupName">그려지는 그룹명</param>
        /// <param name="_color">색상</param>
        public void DrawStaticShape(CogRectangle _cogRect, string _groupName, CogColorConstants _color, int _LineSize = 2)
        {
            StaticRectGraphic       = new CogRectangle();
            StaticRectGraphic       = _cogRect;
            StaticRectGraphic.Color = _color;
            StaticRectGraphic.LineWidthInScreenPixels = _LineSize;
            if (_groupName == "InspRegion" || _groupName == "AlgoRegion")
            {
                StaticRectGraphic.LineStyle = CogGraphicLineStyleConstants.Dash;
            }

            StaticRectGraphic.Selected = false;
            kCogDisplay.ClearDisplay(_groupName);
            kCogDisplay.StaticGraphics.Add(StaticRectGraphic.CopyBase(CogCopyShapeConstants.All), _groupName);
        }