Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <fx_coordinates.h>
Public Member Functions | |
CFX_Matrix ()=default | |
CFX_Matrix (const float n[6]) | |
CFX_Matrix (float a1, float b1, float c1, float d1, float e1, float f1) | |
CFX_Matrix (const CFX_Matrix &other)=default | |
CFX_Matrix & | operator= (const CFX_Matrix &other)=default |
bool | operator== (const CFX_Matrix &other) const |
bool | operator!= (const CFX_Matrix &other) const |
CFX_Matrix | operator* (const CFX_Matrix &right) const |
CFX_Matrix & | operator*= (const CFX_Matrix &other) |
bool | IsIdentity () const |
CFX_Matrix | GetInverse () const |
bool | Is90Rotated () const |
bool | IsScaled () const |
bool | WillScale () const |
void | Concat (const CFX_Matrix &right) |
void | Translate (float x, float y) |
void | TranslatePrepend (float x, float y) |
void | Translate (int32_t x, int32_t y) |
void | TranslatePrepend (int32_t x, int32_t y) |
void | Scale (float sx, float sy) |
void | Rotate (float fRadian) |
void | MatchRect (const CFX_FloatRect &dest, const CFX_FloatRect &src) |
float | GetXUnit () const |
float | GetYUnit () const |
CFX_FloatRect | GetUnitRect () const |
float | TransformXDistance (float dx) const |
float | TransformDistance (float distance) const |
CFX_PointF | Transform (const CFX_PointF &point) const |
CFX_RectF | TransformRect (const CFX_RectF &rect) const |
CFX_FloatRect | TransformRect (const CFX_FloatRect &rect) const |
Public Attributes | |
float | a = 1.0f |
float | b = 0.0f |
float | c = 0.0f |
float | d = 1.0f |
float | e = 0.0f |
float | f = 0.0f |
Definition at line 452 of file fx_coordinates.h.
|
default |
Referenced by FPDF_NewFormObjectFromXObject(), CPDF_Page::GetDisplayMatrix(), CPDFXFA_Page::GetDisplayMatrix(), CXFA_FFPageView::GetDisplayMatrix(), CPDF_Icon::GetImageMatrix(), CPDF_Array::GetMatrix(), CPDF_Dictionary::GetMatrixFor(), CXFA_FFWidget::GetRotateMatrix(), CFFL_FormField::GetWindowMatrix(), IsIdentity(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CPDF_AnnotContext::SetForm(), TEST(), TEST(), TEST(), and TEST().
|
inlineexplicit |
|
inline |
Definition at line 459 of file fx_coordinates.h.
References a, b, c, d, e, and f.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CFXMatrixFromFSMatrix(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFWL_ComboBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), FPDFImageObj_GetRenderedBitmap(), FPDFImageObj_SetMatrix(), FPDFPage_TransformAnnots(), FPDFPageObj_Transform(), FPDFPageObj_TransformClipPath(), FPDFTextObj_GetRenderedBitmap(), CPDF_GenerateAP::GenerateFormAP(), CPDF_CIDFont::GetCharBBox(), CFFL_FormField::GetCurMatrix(), TextCharPos::GetEffectiveMatrix(), CFX_RenderDevice::GetFlipMatrix(), CPDFSDK_Widget::GetMatrix(), operator*(), CXFA_FFField::RenderCaption(), CBC_OneDimWriter::RenderDeviceResult(), CBC_TwoDimWriter::RenderDeviceResult(), CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFPushButton::RenderWidget(), CXFA_FFText::RenderWidget(), Rotate(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), CBC_OnedUPCAWriter::ShowChars(), CBC_OneDimWriter::ShowDeviceChars(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), CPDF_Page::UpdateDimensions(), and XFA_DrawImage().
|
default |
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_FormObject::CPDF_FormObject(), CPDF_Pattern::CPDF_Pattern(), CPDF_ShadingObject::CPDF_ShadingObject(), CXFA_ImageRenderer::CXFA_ImageRenderer(), and CPDF_RenderContext::Layer::Layer().
|
inline |
Definition at line 490 of file fx_coordinates.h.
References operator*=().
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_ContentParser::CPDF_ContentParser(), CFWL_WidgetTP::DrawText(), CXFA_FWLTheme::DrawText(), CFWL_Barcode::DrawWidget(), CFWL_ComboBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), TextCharPos::GetEffectiveMatrix(), CPWL_Wnd::GetWindowMatrix(), CXFA_FFField::RenderCaption(), CBC_OneDimWriter::RenderDeviceResult(), CBC_TwoDimWriter::RenderDeviceResult(), CXFA_FFArc::RenderWidget(), CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFExclGroup::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFImage::RenderWidget(), CXFA_FFImageEdit::RenderWidget(), CXFA_FFLine::RenderWidget(), CXFA_FFPushButton::RenderWidget(), CXFA_FFRectangle::RenderWidget(), CXFA_FFSignature::RenderWidget(), CXFA_FFText::RenderWidget(), Rotate(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), CBC_OnedUPCAWriter::ShowChars(), CBC_OneDimWriter::ShowDeviceChars(), TEST(), CPDF_FormObject::Transform(), CPDF_ImageObject::Transform(), CPDF_PathObject::Transform(), CPDF_ShadingObject::Transform(), CPDF_PageObject::TransformGeneralState(), and XFA_DrawImage().
CFX_Matrix CFX_Matrix::GetInverse | ( | ) | const |
Definition at line 389 of file fx_coordinates.cpp.
References a, b, c, d, e, and f.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_Page::DeviceToPage(), CPDFXFA_Page::DeviceToPage(), CPDF_RenderTiling::Draw(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFFL_FormField::FFLtoPWL(), CFFL_FormField::FFLtoPWL(), CXFA_FFWidget::Rotate2Normal(), TEST(), TEST(), TEST(), TEST(), and TEST().
CFX_FloatRect CFX_Matrix::GetUnitRect | ( | ) | const |
Definition at line 467 of file fx_coordinates.cpp.
References CFX_FloatRect::CFX_FloatRect(), and TransformRect().
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CXFA_ImageRenderer::Start(), and CGdiPrinterDriver::StartDIBits().
float CFX_Matrix::GetXUnit | ( | ) | const |
Definition at line 451 of file fx_coordinates.cpp.
References a, b, and FXSYS_sqrt2().
Referenced by CFX_PSRenderer::DrawText(), CPDF_Type3Char::Transform(), and TransformDistance().
float CFX_Matrix::GetYUnit | ( | ) | const |
Definition at line 459 of file fx_coordinates.cpp.
References c, d, and FXSYS_sqrt2().
Referenced by CFX_PSRenderer::DrawText(), and TransformDistance().
bool CFX_Matrix::Is90Rotated | ( | ) | const |
Definition at line 405 of file fx_coordinates.cpp.
Referenced by CPDF_RenderTiling::Draw().
|
inline |
Definition at line 483 of file fx_coordinates.h.
References CFX_Matrix(), and operator==().
Referenced by CXFA_FFWidget::Rotate2Normal(), TEST(), and TEST().
bool CFX_Matrix::IsScaled | ( | ) | const |
Definition at line 409 of file fx_coordinates.cpp.
Referenced by CPDF_RenderTiling::Draw().
void CFX_Matrix::MatchRect | ( | const CFX_FloatRect & | dest, |
const CFX_FloatRect & | src ) |
Definition at line 438 of file fx_coordinates.cpp.
References a, b, CFX_FloatRect::bottom, c, d, e, f, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.
|
inline |
Definition at line 470 of file fx_coordinates.h.
References operator==().
|
inline |
Definition at line 472 of file fx_coordinates.h.
References CFX_Matrix(), a, b, c, d, e, and f.
Referenced by CPDF_RenderShading::Draw(), pdfium::CFX_AggDeviceDriver::DrawPath(), CPDF_Page::GetDisplayMatrix(), CFFL_FormField::GetWindowMatrix(), CFFL_FormField::OnDraw(), operator*=(), CPDF_AllStates::prepend_to_current_transformation_matrix(), TEST(), and CPDF_TextObject::Transform().
|
inline |
Definition at line 478 of file fx_coordinates.h.
References operator*(), and operator=().
Referenced by Concat(), FPDF_RenderPageBitmapWithMatrix(), and FPDFTextObj_GetRenderedBitmap().
|
default |
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_StreamContentParser::CPDF_StreamContentParser(), CFWL_Widget::DrawBorder(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFWL_CheckBox::DrawWidget(), FPDFPageObj_GetRotatedBounds(), CPDF_GenerateAP::GenerateFormAP(), CFFL_FormField::GetCurMatrix(), TextCharPos::GetEffectiveMatrix(), CPDFSDK_Widget::GetMatrix(), CPDF_ScaledRenderBuffer::Initialize(), operator*=(), CPDFSDK_PageView::PageView_OnDraw(), CPDF_AllStates::prepend_to_current_transformation_matrix(), CBC_TwoDimWriter::RenderDeviceResult(), CPDF_AllStates::set_current_transformation_matrix(), CPDF_AllStates::set_parent_matrix(), CPDF_AllStates::set_text_matrix(), CPDF_RenderStatus::SetDeviceMatrix(), CPDF_FormObject::SetFormMatrix(), CPDF_ImageObject::SetImageMatrix(), CFDE_TextOut::SetMatrix(), CPDF_PathObject::SetPathMatrix(), CPDF_ImageRenderer::Start(), CPDF_ImageRenderer::Start(), TEST(), TEST(), and CPDF_Page::UpdateDimensions().
|
inline |
Definition at line 466 of file fx_coordinates.h.
References a, b, c, d, e, and f.
Referenced by IsIdentity(), and operator!=().
void CFX_Matrix::Rotate | ( | float | fRadian | ) |
Definition at line 432 of file fx_coordinates.cpp.
References CFX_Matrix(), and Concat().
Referenced by TEST(), TEST(), and TEST().
void CFX_Matrix::Scale | ( | float | sx, |
float | sy ) |
Definition at line 423 of file fx_coordinates.cpp.
References a, b, c, d, e, and f.
Referenced by CPDF_DeviceBuffer::CalculateMatrix(), CFX_RenderDevice::DrawNormalText(), CPDF_ScaledRenderBuffer::Initialize(), TEST(), TEST(), and TEST().
CFX_PointF CFX_Matrix::Transform | ( | const CFX_PointF & | point | ) | const |
Definition at line 481 of file fx_coordinates.cpp.
References a, b, c, d, e, and f.
Referenced by CPDF_Page::DeviceToPage(), CPDFXFA_Page::DeviceToPage(), CFX_RenderDevice::DrawNormalText(), CGdiDeviceDriver::DrawPath(), CGdiplusExt::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), CPDFSDK_Widget::DrawShadow(), CFFL_FormField::FFLtoPWL(), CFX_Path::GetRect(), CPDF_Page::PageToDevice(), CPDFXFA_Page::PageToDevice(), CFFL_FormField::PWLtoFFL(), CXFA_FFWidget::Rotate2Normal(), and TEST().
float CFX_Matrix::TransformDistance | ( | float | distance | ) | const |
Definition at line 477 of file fx_coordinates.cpp.
References GetXUnit(), and GetYUnit().
CFX_FloatRect CFX_Matrix::TransformRect | ( | const CFX_FloatRect & | rect | ) | const |
Definition at line 492 of file fx_coordinates.cpp.
References CFX_FloatRect::CFX_FloatRect().
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_ContentParser::CPDF_ContentParser(), CPDF_ImageObject::CalcBoundingBox(), CPDF_PathObject::CalcBoundingBox(), CPDF_RenderTiling::Draw(), CPWL_EditImpl::DrawEdit(), CGdiDeviceDriver::DrawPath(), CFFL_FormField::FFLtoPWL(), FPDFPage_TransformAnnots(), FPDFTextObj_GetRenderedBitmap(), CPDF_CIDFont::GetCharBBox(), CPDF_PageObject::GetTransformedBBox(), GetUnitRect(), CPDF_DeviceBuffer::Initialize(), CPDF_ScaledRenderBuffer::Initialize(), CFFL_FormField::PWLtoFFL(), CFX_PSRenderer::SetClip_PathFill(), CFX_PSRenderer::SetClip_PathStroke(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), CBC_OnedUPCAWriter::ShowChars(), CBC_OneDimWriter::ShowDeviceChars(), TEST(), CPDF_Type3Char::Transform(), and TransformRect().
Definition at line 486 of file fx_coordinates.cpp.
References CFX_RectF::CFX_RectF(), CFX_FloatRect::bottom, CFX_FloatRect::Height(), CFX_FloatRect::left, CFX_RectF::ToFloatRect(), TransformRect(), and CFX_FloatRect::Width().
Referenced by CFDE_TextOut::DrawLogicText(), CFWL_ListBox::DrawWidget(), CXFA_FWLAdapterWidgetMgr::GetPopupPos(), CXFA_FFField::RenderCaption(), CXFA_FFText::RenderWidget(), CFWL_Edit::ShowCaret(), and TEST().
float CFX_Matrix::TransformXDistance | ( | float | dx | ) | const |
Definition at line 471 of file fx_coordinates.cpp.
References a, b, and FXSYS_sqrt2().
void CFX_Matrix::Translate | ( | float | x, |
float | y ) |
Definition at line 413 of file fx_coordinates.cpp.
Referenced by FPDFImageObj_GetRenderedBitmap(), and Translate().
|
inline |
Definition at line 493 of file fx_coordinates.h.
References Translate().
Referenced by CPDF_DeviceBuffer::CalculateMatrix(), and TEST().
void CFX_Matrix::TranslatePrepend | ( | float | x, |
float | y ) |
Definition at line 418 of file fx_coordinates.cpp.
References a, b, c, d, e, and f.
Referenced by CFWL_Widget::GetMatrix(), and TranslatePrepend().
|
inline |
Definition at line 496 of file fx_coordinates.h.
References TranslatePrepend().
|
inline |
Definition at line 488 of file fx_coordinates.h.
Referenced by CGdiDeviceDriver::DrawPath().
float CFX_Matrix::a = 1.0f |
Definition at line 517 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CFX_PSRenderer::DrawDIBits(), CFX_RenderDevice::DrawNormalText(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFX_PSRenderer::DrawText(), FPDFImageObj_GetRenderedBitmap(), FPDFText_GetCharAngle(), FSMatrixFromCFXMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), GetXUnit(), Is90Rotated(), IsScaled(), CPDF_Type3Font::Load(), MatchRect(), operator*(), operator==(), CPDF_DeviceBuffer::OutputToDevice(), CFX_Face::RenderGlyph(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CQuartz2D::SetGraphicsTextMatrix(), CPDF_Dictionary::SetMatrixFor(), CPDF_TextObject::SetTextMatrix(), CXFA_ImageRenderer::Start(), CGdiPrinterDriver::StartDIBits(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), TransformXDistance(), TranslatePrepend(), WillScale(), and WriteMatrix().
float CFX_Matrix::b = 0.0f |
Definition at line 518 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CFX_PSRenderer::DrawDIBits(), CFX_RenderDevice::DrawNormalText(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFX_PSRenderer::DrawText(), FPDFPage_Flatten(), FSMatrixFromCFXMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), GetXUnit(), Is90Rotated(), IsScaled(), MatchRect(), operator*(), operator==(), CFX_Face::RenderGlyph(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CQuartz2D::SetGraphicsTextMatrix(), CPDF_Dictionary::SetMatrixFor(), CPDF_TextObject::SetTextMatrix(), CXFA_ImageRenderer::Start(), CGdiPrinterDriver::StartDIBits(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), TransformXDistance(), TranslatePrepend(), WillScale(), and WriteMatrix().
float CFX_Matrix::c = 0.0f |
Definition at line 519 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CFX_PSRenderer::DrawDIBits(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFX_PSRenderer::DrawText(), FPDFPage_Flatten(), FPDFText_GetCharAngle(), FSMatrixFromCFXMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), GetYUnit(), Is90Rotated(), IsScaled(), MatchRect(), operator*(), operator==(), CFX_Face::RenderGlyph(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CQuartz2D::SetGraphicsTextMatrix(), CPDF_Dictionary::SetMatrixFor(), CPDF_TextObject::SetTextMatrix(), CXFA_ImageRenderer::Start(), CGdiPrinterDriver::StartDIBits(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), TranslatePrepend(), WillScale(), and WriteMatrix().
float CFX_Matrix::d = 1.0f |
Definition at line 520 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CFX_PSRenderer::DrawDIBits(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), pdfium::CFX_AggDeviceDriver::DrawPath(), CFX_PSRenderer::DrawText(), FPDFImageObj_GetRenderedBitmap(), FSMatrixFromCFXMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), GetYUnit(), Is90Rotated(), IsScaled(), CPDF_Type3Font::Load(), MatchRect(), operator*(), operator==(), CPDF_DeviceBuffer::OutputToDevice(), CFX_Face::RenderGlyph(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CQuartz2D::SetGraphicsTextMatrix(), CPDF_Dictionary::SetMatrixFor(), CPDF_TextObject::SetTextMatrix(), CXFA_ImageRenderer::Start(), CGdiPrinterDriver::StartDIBits(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), TranslatePrepend(), WillScale(), and WriteMatrix().
float CFX_Matrix::e = 0.0f |
Definition at line 521 of file fx_coordinates.h.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CPDF_RenderTiling::Draw(), CFX_PSRenderer::DrawDIBits(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), CFX_PSRenderer::DrawText(), CPDF_TextRenderer::DrawTextString(), CFWL_Barcode::DrawWidget(), FPDFImageObj_GetRenderedBitmap(), FSMatrixFromCFXMatrix(), CFFL_FormField::GetCurMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), MatchRect(), operator*(), operator==(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CQuartz2D::SetGraphicsTextMatrix(), CPDF_Dictionary::SetMatrixFor(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), Translate(), TranslatePrepend(), and WriteMatrix().
float CFX_Matrix::f = 0.0f |
Definition at line 522 of file fx_coordinates.h.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CFX_Matrix(), CFX_Matrix(), CPDF_RenderTiling::Draw(), CTextOnlyPrinterDriver::DrawDeviceText(), CFX_PSRenderer::DrawDIBits(), CFX_PSRenderer::DrawPath(), CGdiplusExt::DrawPath(), CFX_PSRenderer::DrawText(), CPDF_TextRenderer::DrawTextString(), CFWL_Barcode::DrawWidget(), FPDFImageObj_GetRenderedBitmap(), FSMatrixFromCFXMatrix(), CFFL_FormField::GetCurMatrix(), GetInverse(), CXFA_FFWidget::GetRotateMatrix(), MatchRect(), operator*(), operator==(), Scale(), CFX_PSRenderer::SetClip_PathStroke(), CPDF_Dictionary::SetMatrixFor(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), Transform(), Translate(), TranslatePrepend(), and WriteMatrix().