mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: calculating page graphic piece info
This commit is contained in:
@@ -234,6 +234,30 @@ public:
|
||||
PDFSnapInfo* getSnapInfo() { return &m_snapInfo; }
|
||||
const PDFSnapInfo* getSnapInfo() const { return &m_snapInfo; }
|
||||
|
||||
struct GraphicPieceInfo
|
||||
{
|
||||
enum class Type
|
||||
{
|
||||
Unknown,
|
||||
Text,
|
||||
VectorGraphics,
|
||||
Image
|
||||
};
|
||||
|
||||
Type type = Type::Unknown;
|
||||
QRectF boundingRect;
|
||||
std::array<uint8_t, 64> hash = { };
|
||||
};
|
||||
|
||||
using GraphicPieceInfos = std::vector<GraphicPieceInfo>;
|
||||
|
||||
/// Creates information about piece of graphic in this page,
|
||||
/// for example, for comparation reasons. Parameter \p epsilon
|
||||
/// is for numerical precision - values under epsilon are considered
|
||||
/// as equal.
|
||||
/// \param epsilon Epsilon
|
||||
GraphicPieceInfos calculateGraphicPieceInfos(PDFReal epsilon) const;
|
||||
|
||||
private:
|
||||
struct PathPaintData
|
||||
{
|
||||
|
Reference in New Issue
Block a user