198 |
198 |
return (size / scaleWidth);
|
199 |
199 |
}
|
200 |
200 |
|
201 |
|
public List<Point> GetPdfPointSystem(List<Point> point)
|
|
201 |
public List<Point> GetPdfPointSystem(List<Point> points)
|
202 |
202 |
{
|
203 |
|
List<Point> dummy = new List<Point>();
|
204 |
|
foreach (var item in point)
|
205 |
|
{
|
206 |
|
dummy.Add(GetPdfPointSystem(item));
|
207 |
|
}
|
208 |
|
return dummy;
|
|
203 |
return points.ConvertAll(x => GetPdfPointSystem(x));
|
209 |
204 |
}
|
210 |
205 |
|
211 |
206 |
public double returnAngle(Point start, Point end)
|
... | ... | |
528 |
523 |
#endregion
|
529 |
524 |
|
530 |
525 |
#region PDF
|
531 |
|
public static float scaleWidth = 0;
|
532 |
|
public static float scaleHeight = 0;
|
|
526 |
public static float scaleWidth { get; set; } = 0;
|
|
527 |
public static float scaleHeight { get; set; } = 0;
|
533 |
528 |
|
534 |
529 |
private string SetFlattingPDF(string tempFileInfo)
|
535 |
530 |
{
|
... | ... | |
802 |
797 |
var PaintStyle = control.PaintState;
|
803 |
798 |
Point EndPoint = GetPdfPointSystem(control.EndPoint);
|
804 |
799 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
805 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
|
|
800 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()), scaleWidth);
|
806 |
801 |
double Opacity = control.Opac;
|
807 |
802 |
DoubleCollection DashSize = control.DashSize;
|
808 |
803 |
|
... | ... | |
826 |
821 |
|
827 |
822 |
var Opacity = control.Opac;
|
828 |
823 |
string UserID = control.UserID;
|
829 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
|
|
824 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()), scaleWidth);
|
830 |
825 |
bool IsTransOn = control.IsTransOn;
|
831 |
826 |
|
832 |
827 |
if (control.IsTransOn)
|
... | ... | |
853 |
848 |
using (S_RectControl control = JsonSerializerHelper.JsonDeserialize<S_RectControl>(item))
|
854 |
849 |
{
|
855 |
850 |
string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
|
856 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
851 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
857 |
852 |
var PaintStyle = control.PaintState;
|
858 |
853 |
double Angle = control.Angle;
|
859 |
854 |
DoubleCollection DashSize = control.DashSize;
|
... | ... | |
869 |
864 |
using (S_TriControl control = JsonSerializerHelper.JsonDeserialize<S_TriControl>(item))
|
870 |
865 |
{
|
871 |
866 |
string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
|
872 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
867 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
873 |
868 |
var PaintStyle = control.Paint;
|
874 |
869 |
double Angle = control.Angle;
|
875 |
870 |
//StrokeColor = _SetColor, //색상은 레드
|
... | ... | |
886 |
881 |
using (S_CircleControl control = JsonSerializerHelper.JsonDeserialize<S_CircleControl>(item))
|
887 |
882 |
{
|
888 |
883 |
string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
|
889 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
884 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
890 |
885 |
var StartPoint = GetPdfPointSystem(control.StartPoint);
|
891 |
886 |
var EndPoint = GetPdfPointSystem(control.EndPoint);
|
892 |
887 |
var PaintStyle = control.PaintState;
|
... | ... | |
904 |
899 |
using (S_RectCloudControl control = JsonSerializerHelper.JsonDeserialize<S_RectCloudControl>(item))
|
905 |
900 |
{
|
906 |
901 |
string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
|
907 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
902 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
908 |
903 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
909 |
904 |
double size = MathSet.DistanceTo(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
|
910 |
905 |
|
... | ... | |
938 |
933 |
using (S_CloudControl control = JsonSerializerHelper.JsonDeserialize<S_CloudControl>(item))
|
939 |
934 |
{
|
940 |
935 |
string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
|
941 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
936 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
942 |
937 |
double Toler = control.Toler;
|
943 |
938 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
944 |
939 |
double ArcLength = (control.ArcLength == 0 ? 10 : control.ArcLength) / (scaleWidth > scaleHeight ? scaleWidth : scaleHeight);
|
... | ... | |
1067 |
1062 |
// //testPoint = Test(rect, newMidPoint);
|
1068 |
1063 |
//}
|
1069 |
1064 |
|
1070 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
1065 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
1071 |
1066 |
System.Drawing.Color FontColor = _SetColor;
|
1072 |
1067 |
bool isHighlight = control.isHighLight;
|
1073 |
1068 |
double Opacity = control.Opac;
|
... | ... | |
1192 |
1187 |
case "SignControl":
|
1193 |
1188 |
using (S_SignControl control = JsonSerializerHelper.JsonDeserialize<S_SignControl>(item))
|
1194 |
1189 |
{
|
1195 |
|
|
1196 |
1190 |
double Angle = control.Angle;
|
1197 |
1191 |
Point StartPoint = GetPdfPointSystem(control.StartPoint);
|
1198 |
|
Point TopRightPoint = GetPdfPointSystem(control.TR);
|
1199 |
1192 |
Point EndPoint = GetPdfPointSystem(control.EndPoint);
|
1200 |
|
Point LeftBottomPoint = GetPdfPointSystem(control.LB);
|
1201 |
1193 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
1202 |
1194 |
double Opacity = control.Opac;
|
1203 |
1195 |
string UserNumber = control.UserNumber;
|
... | ... | |
1539 |
1531 |
Point EndPoint = GetPdfPointSystem(control.EndPoint);
|
1540 |
1532 |
DoubleCollection DashSize = control.DashSize;
|
1541 |
1533 |
List<Point> PointSet = GetPdfPointSystem(control.PointSet);
|
1542 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
|
|
1534 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()), scaleWidth);
|
1543 |
1535 |
|
1544 |
1536 |
double Opacity = control.Opac;
|
1545 |
1537 |
|
... | ... | |
1567 |
1559 |
var Opacity = control.Opac;
|
1568 |
1560 |
string UserID = control.UserID;
|
1569 |
1561 |
double Interval = control.Interval;
|
1570 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
|
|
1562 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()), scaleWidth);
|
1571 |
1563 |
Controls_PDF.DrawSet_Line.DrawLine(StartPoint, EndPoint, LineSize, contentByte, control.DashSize, setColor, Opacity);
|
1572 |
1564 |
switch (control.LineStyleSet)
|
1573 |
1565 |
{
|
... | ... | |
1652 |
1644 |
}
|
1653 |
1645 |
if (control.isHighLight) paint |= PaintSet.Highlight;
|
1654 |
1646 |
|
1655 |
|
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
|
|
1647 |
double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()), scaleWidth);
|
1656 |
1648 |
double TextSize = Convert.ToDouble(data2[1]);
|
1657 |
1649 |
System.Drawing.Color FontColor = setColor;
|
1658 |
1650 |
double Angle = control.Angle;
|