From e2593e2efe140d47870b0c511cbf5160db080edd Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 12 Feb 2021 04:44:15 -0500 Subject: Move QPDFMatrix into the public API --- libqpdf/QPDFMatrix.cc | 3 --- libqpdf/qpdf/QPDFMatrix.hh | 53 ---------------------------------------------- 2 files changed, 56 deletions(-) delete mode 100644 libqpdf/qpdf/QPDFMatrix.hh (limited to 'libqpdf') diff --git a/libqpdf/QPDFMatrix.cc b/libqpdf/QPDFMatrix.cc index c78154aa..18122d72 100644 --- a/libqpdf/QPDFMatrix.cc +++ b/libqpdf/QPDFMatrix.cc @@ -118,9 +118,6 @@ QPDFMatrix::transform(double x, double y, double& xp, double& yp) QPDFObjectHandle::Rectangle QPDFMatrix::transformRectangle(QPDFObjectHandle::Rectangle r) { - // Transform a rectangle by creating a new rectangle the tightly - // bounds the polygon resulting from transforming the four - // corners. std::vector tx(4); std::vector ty(4); transform(r.llx, r.lly, tx.at(0), ty.at(0)); diff --git a/libqpdf/qpdf/QPDFMatrix.hh b/libqpdf/qpdf/QPDFMatrix.hh deleted file mode 100644 index 7b19a665..00000000 --- a/libqpdf/qpdf/QPDFMatrix.hh +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef QPDFMATRIX_HH -#define QPDFMATRIX_HH - -#include -#include -#include - -class QPDFMatrix -{ - public: - QPDF_DLL - QPDFMatrix(); - QPDF_DLL - QPDFMatrix(double a, double b, double c, - double d, double e, double f); - QPDF_DLL - QPDFMatrix(QPDFObjectHandle::Matrix const&); - - QPDF_DLL - std::string unparse() const; - - QPDF_DLL - QPDFObjectHandle::Matrix getAsMatrix() const; - - // This is not part of the public API. Just provide the methods we - // need as we need them. - QPDF_DLL - void concat(QPDFMatrix const& other); - QPDF_DLL - void scale(double sx, double sy); - QPDF_DLL - void translate(double tx, double ty); - // Any value other than 90, 180, or 270 is ignored - QPDF_DLL - void rotatex90(int angle); - - QPDF_DLL - void transform(double x, double y, double& xp, double& yp); - - QPDF_DLL - QPDFObjectHandle::Rectangle transformRectangle( - QPDFObjectHandle::Rectangle r); - - private: - double a; - double b; - double c; - double d; - double e; - double f; -}; - -#endif // QPDFMATRIX_HH -- cgit v1.2.3-54-g00ecf