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); }
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); }
/// <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); }