Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CFX_Matrix Class Reference

#include <fx_coordinates.h>

Collaboration diagram for CFX_Matrix:

Public Member Functions

constexpr CFX_Matrix ()=default
constexpr CFX_Matrix (float a1, float b1, float c1, float d1, float e1, float f1)
 CFX_Matrix (const CFX_Matrix &other)=default
CFX_Matrixoperator= (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_Matrixoperator*= (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

Detailed Description

Definition at line 440 of file fx_coordinates.h.

Constructor & Destructor Documentation

◆ CFX_Matrix() [1/3]

◆ CFX_Matrix() [2/3]

◆ CFX_Matrix() [3/3]

CFX_Matrix::CFX_Matrix ( const CFX_Matrix & other)
default

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), 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().

Here is the caller graph for this function:

Member Function Documentation

◆ Concat()

void CFX_Matrix::Concat ( const CFX_Matrix & right)
inline

Definition at line 480 of file fx_coordinates.h.

References operator*=().

Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_ContentParser::CPDF_ContentParser(), pdfium::CFWL_WidgetTP::DrawText(), pdfium::CXFA_FWLTheme::DrawText(), pdfium::CFWL_Barcode::DrawWidget(), pdfium::CFWL_ComboBox::DrawWidget(), pdfium::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(), and XFA_DrawImage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetInverse()

CFX_Matrix CFX_Matrix::GetInverse ( ) const

Definition at line 372 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().

Here is the caller graph for this function:

◆ GetUnitRect()

CFX_FloatRect CFX_Matrix::GetUnitRect ( ) const

Definition at line 450 of file fx_coordinates.cpp.

References CFX_FloatRect::CFX_FloatRect(), and TransformRect().

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), and CGdiPrinterDriver::StartDIBits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetXUnit()

float CFX_Matrix::GetXUnit ( ) const

Definition at line 434 of file fx_coordinates.cpp.

References a, and b.

Referenced by CFX_PSRenderer::DrawText(), CPDF_Type3Char::Transform(), and TransformDistance().

Here is the caller graph for this function:

◆ GetYUnit()

float CFX_Matrix::GetYUnit ( ) const

Definition at line 442 of file fx_coordinates.cpp.

References c, and d.

Referenced by CFX_PSRenderer::DrawText(), and TransformDistance().

Here is the caller graph for this function:

◆ Is90Rotated()

bool CFX_Matrix::Is90Rotated ( ) const

Definition at line 388 of file fx_coordinates.cpp.

References a, b, c, and d.

Referenced by CPDF_RenderTiling::Draw().

Here is the caller graph for this function:

◆ IsIdentity()

bool CFX_Matrix::IsIdentity ( ) const
inline

Definition at line 473 of file fx_coordinates.h.

References CFX_Matrix(), and operator==().

Referenced by CXFA_FFWidget::Rotate2Normal(), TEST(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsScaled()

bool CFX_Matrix::IsScaled ( ) const

Definition at line 392 of file fx_coordinates.cpp.

References a, b, c, and d.

Referenced by CPDF_RenderTiling::Draw().

Here is the caller graph for this function:

◆ MatchRect()

void CFX_Matrix::MatchRect ( const CFX_FloatRect & dest,
const CFX_FloatRect & src )

◆ operator!=()

bool CFX_Matrix::operator!= ( const CFX_Matrix & other) const
inline

Definition at line 460 of file fx_coordinates.h.

References operator==().

Here is the call graph for this function:

◆ operator*()

CFX_Matrix CFX_Matrix::operator* ( const CFX_Matrix & right) const
inline

Definition at line 462 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=()

CFX_Matrix & CFX_Matrix::operator*= ( const CFX_Matrix & other)
inline

Definition at line 468 of file fx_coordinates.h.

References operator*(), and operator=().

Referenced by Concat(), FPDF_RenderPageBitmapWithMatrix(), and FPDFTextObj_GetRenderedBitmap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

◆ operator==()

bool CFX_Matrix::operator== ( const CFX_Matrix & other) const
inline

Definition at line 456 of file fx_coordinates.h.

References a, b, c, d, e, and f.

Referenced by IsIdentity(), and operator!=().

Here is the caller graph for this function:

◆ Rotate()

void CFX_Matrix::Rotate ( float fRadian)

Definition at line 415 of file fx_coordinates.cpp.

References CFX_Matrix(), and Concat().

Referenced by TEST(), TEST(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Scale()

void CFX_Matrix::Scale ( float sx,
float sy )

Definition at line 406 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().

Here is the caller graph for this function:

◆ Transform()

CFX_PointF CFX_Matrix::Transform ( const CFX_PointF & point) const

◆ TransformDistance()

float CFX_Matrix::TransformDistance ( float distance) const

Definition at line 460 of file fx_coordinates.cpp.

References GetXUnit(), and GetYUnit().

Here is the call graph for this function:

◆ TransformRect() [1/2]

◆ TransformRect() [2/2]

CFX_RectF CFX_Matrix::TransformRect ( const CFX_RectF & rect) const

Definition at line 469 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 pdfium::CFDE_TextOut::DrawLogicText(), pdfium::CFWL_ListBox::DrawWidget(), CXFA_FWLAdapterWidgetMgr::GetPopupPos(), CXFA_FFField::RenderCaption(), CXFA_FFText::RenderWidget(), pdfium::CFWL_Edit::ShowCaret(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransformXDistance()

float CFX_Matrix::TransformXDistance ( float dx) const

Definition at line 454 of file fx_coordinates.cpp.

References a, and b.

◆ Translate() [1/2]

void CFX_Matrix::Translate ( float x,
float y )

Definition at line 396 of file fx_coordinates.cpp.

References e, and f.

Referenced by FPDFImageObj_GetRenderedBitmap(), and Translate().

Here is the caller graph for this function:

◆ Translate() [2/2]

void CFX_Matrix::Translate ( int32_t x,
int32_t y )
inline

Definition at line 483 of file fx_coordinates.h.

References Translate().

Referenced by CPDF_DeviceBuffer::CalculateMatrix(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TranslatePrepend() [1/2]

void CFX_Matrix::TranslatePrepend ( float x,
float y )

Definition at line 401 of file fx_coordinates.cpp.

References a, b, c, d, e, and f.

Referenced by pdfium::CFWL_Widget::GetMatrix(), and TranslatePrepend().

Here is the caller graph for this function:

◆ TranslatePrepend() [2/2]

void CFX_Matrix::TranslatePrepend ( int32_t x,
int32_t y )
inline

Definition at line 486 of file fx_coordinates.h.

References TranslatePrepend().

Here is the call graph for this function:

◆ WillScale()

bool CFX_Matrix::WillScale ( ) const
inline

Definition at line 478 of file fx_coordinates.h.

References a, b, c, and d.

Referenced by CGdiDeviceDriver::DrawPath().

Here is the caller graph for this function:

Member Data Documentation

◆ a

◆ b

◆ c

◆ d

◆ e

◆ f


The documentation for this class was generated from the following files: