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
CPDF_PathObject Class Referencefinal

#include <cpdf_pathobject.h>

+ Inheritance diagram for CPDF_PathObject:
+ Collaboration diagram for CPDF_PathObject:

Public Member Functions

 CPDF_PathObject (int32_t content_stream)
 
 CPDF_PathObject ()
 
 ~CPDF_PathObject () override
 
Type GetType () const override
 
void Transform (const CFX_Matrix &matrix) override
 
bool IsPath () const override
 
CPDF_PathObjectAsPath () override
 
const CPDF_PathObjectAsPath () const override
 
void CalcBoundingBox ()
 
bool stroke () const
 
void set_stroke (bool stroke)
 
bool has_no_filltype () const
 
bool has_winding_filltype () const
 
bool has_alternate_filltype () const
 
void set_no_filltype ()
 
void set_winding_filltype ()
 
void set_alternate_filltype ()
 
CFX_FillRenderOptions::FillType filltype () const
 
void set_filltype (CFX_FillRenderOptions::FillType fill_type)
 
CPDF_Pathpath ()
 
const CPDF_Pathpath () const
 
const CFX_Matrixmatrix () const
 
void SetPathMatrix (const CFX_Matrix &matrix)
 
- Public Member Functions inherited from CPDF_PageObject
 CPDF_PageObject (int32_t content_stream)
 
 CPDF_PageObject (const CPDF_PageObject &src)=delete
 
CPDF_PageObjectoperator= (const CPDF_PageObject &src)=delete
 
virtual ~CPDF_PageObject ()
 
virtual bool IsText () const
 
virtual bool IsImage () const
 
virtual bool IsShading () const
 
virtual bool IsForm () const
 
virtual CPDF_TextObjectAsText ()
 
virtual const CPDF_TextObjectAsText () const
 
virtual CPDF_ImageObjectAsImage ()
 
virtual const CPDF_ImageObjectAsImage () const
 
virtual CPDF_ShadingObjectAsShading ()
 
virtual const CPDF_ShadingObjectAsShading () const
 
virtual CPDF_FormObjectAsForm ()
 
virtual const CPDF_FormObjectAsForm () const
 
void SetDirty (bool value)
 
bool IsDirty () const
 
void TransformClipPath (const CFX_Matrix &matrix)
 
void TransformGeneralState (const CFX_Matrix &matrix)
 
void SetOriginalRect (const CFX_FloatRect &rect)
 
const CFX_FloatRectGetOriginalRect () const
 
void SetRect (const CFX_FloatRect &rect)
 
const CFX_FloatRectGetRect () const
 
FX_RECT GetBBox () const
 
FX_RECT GetTransformedBBox (const CFX_Matrix &matrix) const
 
CPDF_ContentMarksGetContentMarks ()
 
const CPDF_ContentMarksGetContentMarks () const
 
void SetContentMarks (const CPDF_ContentMarks &marks)
 
int32_t GetContentStream () const
 
void SetContentStream (int32_t new_content_stream)
 
const ByteStringGetResourceName () const
 
void SetResourceName (const ByteString &resource_name)
 
pdfium::span< const ByteStringGetGraphicsResourceNames () const
 
const CPDF_ClipPathclip_path () const
 
CPDF_ClipPathmutable_clip_path ()
 
const CFX_GraphStategraph_state () const
 
CFX_GraphStatemutable_graph_state ()
 
const CPDF_ColorStatecolor_state () const
 
CPDF_ColorStatemutable_color_state ()
 
const CPDF_TextStatetext_state () const
 
CPDF_TextStatemutable_text_state ()
 
const CPDF_GeneralStategeneral_state () const
 
CPDF_GeneralStatemutable_general_state ()
 
const CPDF_GraphicStatesgraphic_states () const
 
void SetDefaultStates ()
 

Additional Inherited Members

- Public Types inherited from CPDF_PageObject
enum class  Type {
  kText = 1 , kPath , kImage , kShading ,
  kForm
}
 
- Static Public Attributes inherited from CPDF_PageObject
static constexpr int32_t kNoContentStream = -1
 
- Protected Member Functions inherited from CPDF_PageObject
void CopyData (const CPDF_PageObject *pSrcObject)
 

Detailed Description

Definition at line 17 of file cpdf_pathobject.h.

Constructor & Destructor Documentation

◆ CPDF_PathObject() [1/2]

CPDF_PathObject::CPDF_PathObject ( int32_t content_stream)
explicit

Definition at line 9 of file cpdf_pathobject.cpp.

References CPDF_PageObject::CPDF_PageObject().

Referenced by CPDF_PathObject().

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

◆ CPDF_PathObject() [2/2]

CPDF_PathObject::CPDF_PathObject ( )

Definition at line 12 of file cpdf_pathobject.cpp.

References CPDF_PathObject(), and CPDF_PageObject::kNoContentStream.

+ Here is the call graph for this function:

◆ ~CPDF_PathObject()

CPDF_PathObject::~CPDF_PathObject ( )
overridedefault

Member Function Documentation

◆ AsPath() [1/2]

const CPDF_PathObject * CPDF_PathObject::AsPath ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 34 of file cpdf_pathobject.cpp.

◆ AsPath() [2/2]

CPDF_PathObject * CPDF_PathObject::AsPath ( )
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 30 of file cpdf_pathobject.cpp.

◆ CalcBoundingBox()

void CPDF_PathObject::CalcBoundingBox ( )

Definition at line 38 of file cpdf_pathobject.cpp.

References CPDF_PageObject::graph_state(), CFX_FloatRect::Inflate(), CFX_FloatRect::operator=(), CPDF_PageObject::SetRect(), and CFX_Matrix::TransformRect().

Referenced by SetPathMatrix(), and Transform().

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

◆ filltype()

CFX_FillRenderOptions::FillType CPDF_PathObject::filltype ( ) const
inline

Definition at line 55 of file cpdf_pathobject.h.

◆ GetType()

CPDF_PageObject::Type CPDF_PathObject::GetType ( ) const
overridevirtual

Implements CPDF_PageObject.

Definition at line 16 of file cpdf_pathobject.cpp.

References CPDF_PageObject::kPath.

◆ has_alternate_filltype()

bool CPDF_PathObject::has_alternate_filltype ( ) const
inline

Definition at line 42 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kEvenOdd.

Referenced by FPDFPath_GetDrawMode().

+ Here is the caller graph for this function:

◆ has_no_filltype()

bool CPDF_PathObject::has_no_filltype ( ) const
inline

Definition at line 36 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kNoFill.

◆ has_winding_filltype()

bool CPDF_PathObject::has_winding_filltype ( ) const
inline

Definition at line 39 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kWinding.

Referenced by FPDFPath_GetDrawMode().

+ Here is the caller graph for this function:

◆ IsPath()

bool CPDF_PathObject::IsPath ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 26 of file cpdf_pathobject.cpp.

◆ matrix()

const CFX_Matrix & CPDF_PathObject::matrix ( ) const
inline

Definition at line 63 of file cpdf_pathobject.h.

Referenced by FPDFPageObj_GetMatrix().

+ Here is the caller graph for this function:

◆ path() [1/2]

CPDF_Path & CPDF_PathObject::path ( )
inline

Definition at line 60 of file cpdf_pathobject.h.

Referenced by FPDFPath_BezierTo(), FPDFPath_Close(), FPDFPath_CountSegments(), FPDFPath_LineTo(), and FPDFPath_MoveTo().

+ Here is the caller graph for this function:

◆ path() [2/2]

const CPDF_Path & CPDF_PathObject::path ( ) const
inline

Definition at line 61 of file cpdf_pathobject.h.

◆ set_alternate_filltype()

void CPDF_PathObject::set_alternate_filltype ( )
inline

Definition at line 51 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kEvenOdd.

Referenced by FPDFPath_SetDrawMode().

+ Here is the caller graph for this function:

◆ set_filltype()

void CPDF_PathObject::set_filltype ( CFX_FillRenderOptions::FillType fill_type)
inline

Definition at line 56 of file cpdf_pathobject.h.

◆ set_no_filltype()

void CPDF_PathObject::set_no_filltype ( )
inline

Definition at line 45 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kNoFill.

Referenced by FPDFPath_SetDrawMode().

+ Here is the caller graph for this function:

◆ set_stroke()

void CPDF_PathObject::set_stroke ( bool stroke)
inline

Definition at line 33 of file cpdf_pathobject.h.

Referenced by FPDFPath_SetDrawMode().

+ Here is the caller graph for this function:

◆ set_winding_filltype()

void CPDF_PathObject::set_winding_filltype ( )
inline

Definition at line 48 of file cpdf_pathobject.h.

References CFX_FillRenderOptions::kWinding.

Referenced by FPDFPath_SetDrawMode().

+ Here is the caller graph for this function:

◆ SetPathMatrix()

void CPDF_PathObject::SetPathMatrix ( const CFX_Matrix & matrix)

Definition at line 56 of file cpdf_pathobject.cpp.

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

Referenced by FPDFPageObj_SetMatrix().

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

◆ stroke()

bool CPDF_PathObject::stroke ( ) const
inline

Definition at line 32 of file cpdf_pathobject.h.

Referenced by FPDFPath_GetDrawMode().

+ Here is the caller graph for this function:

◆ Transform()

void CPDF_PathObject::Transform ( const CFX_Matrix & matrix)
overridevirtual

Implements CPDF_PageObject.

Definition at line 20 of file cpdf_pathobject.cpp.

References CalcBoundingBox(), CFX_Matrix::Concat(), and CPDF_PageObject::SetDirty().

+ Here is the call graph for this function:

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