Initial
This commit is contained in:
6
PdfMarker/Models/AutoBalloonRequest.cs
Normal file
6
PdfMarker/Models/AutoBalloonRequest.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class AutoBalloonRequest
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
}
|
||||
6
PdfMarker/Models/AutoBalloonResult.cs
Normal file
6
PdfMarker/Models/AutoBalloonResult.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class AutoBalloonResult
|
||||
{
|
||||
public List<BalloonVm> Balloons { get; set; } = new();
|
||||
}
|
||||
12
PdfMarker/Models/BalloonVm.cs
Normal file
12
PdfMarker/Models/BalloonVm.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class BalloonVm
|
||||
{
|
||||
public int Number { get; set; }
|
||||
|
||||
// per dopo
|
||||
public double? X { get; set; }
|
||||
public double? Y { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool Selected { get; set; }
|
||||
}
|
||||
14
PdfMarker/Models/FeatureCandidate.cs
Normal file
14
PdfMarker/Models/FeatureCandidate.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class FeatureCandidate
|
||||
{
|
||||
public QuotaType Type { get; set; }
|
||||
|
||||
public List<QuotaCandidate> Quotes { get; set; } = new();
|
||||
|
||||
// area aggregata (normalizzata)
|
||||
public double CenterX { get; set; }
|
||||
public double CenterY { get; set; }
|
||||
|
||||
public double Confidence { get; set; }
|
||||
}
|
||||
21
PdfMarker/Models/QuotaCandidate.cs
Normal file
21
PdfMarker/Models/QuotaCandidate.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class QuotaCandidate
|
||||
{
|
||||
public QuotaType Type { get; set; }
|
||||
public string RawText { get; set; } = string.Empty;
|
||||
|
||||
// Bounding box normalizzato (0–1)
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public double Width { get; set; }
|
||||
public double Height { get; set; }
|
||||
|
||||
// Orientamento stimato
|
||||
public bool IsHorizontal { get; set; }
|
||||
public bool IsVertical { get; set; }
|
||||
|
||||
// Confidenza grezza (0–1)
|
||||
public double Confidence { get; set; }
|
||||
}
|
||||
12
PdfMarker/Models/QuotaType.cs
Normal file
12
PdfMarker/Models/QuotaType.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public enum QuotaType
|
||||
{
|
||||
Linear,
|
||||
Diameter,
|
||||
Radius,
|
||||
Angle,
|
||||
Chamfer,
|
||||
Depth,
|
||||
Unknown
|
||||
}
|
||||
8
PdfMarker/Models/TextFeature.cs
Normal file
8
PdfMarker/Models/TextFeature.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class TextFeature
|
||||
{
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public string Text { get; set; } = "";
|
||||
}
|
||||
6
PdfMarker/Models/UploadResult.cs
Normal file
6
PdfMarker/Models/UploadResult.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class UploadResult
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
}
|
||||
8
PdfMarker/Models/UploadedPdf.cs
Normal file
8
PdfMarker/Models/UploadedPdf.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace PdfMarker.Models;
|
||||
|
||||
public class UploadedPdf
|
||||
{
|
||||
public string File { get; set; } = default!;
|
||||
public string FileName { get; set; } = default!;
|
||||
public string PreviewUrl { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user