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

#include <cpdf_shadingobject.h>

+ Inheritance diagram for CPDF_ShadingObject:
+ Collaboration diagram for CPDF_ShadingObject:

Public Member Functions

 CPDF_ShadingObject (int32_t content_stream, RetainPtr< CPDF_ShadingPattern > pattern, const CFX_Matrix &matrix)
 
 ~CPDF_ShadingObject () override
 
Type GetType () const override
 
void Transform (const CFX_Matrix &matrix) override
 
bool IsShading () const override
 
CPDF_ShadingObjectAsShading () override
 
const CPDF_ShadingObjectAsShading () const override
 
void CalcBoundingBox ()
 
const CPDF_ShadingPatternpattern () const
 
const CFX_Matrixmatrix () const
 
- 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 IsPath () const
 
virtual bool IsImage () const
 
virtual bool IsForm () const
 
virtual CPDF_TextObjectAsText ()
 
virtual const CPDF_TextObjectAsText () const
 
virtual CPDF_PathObjectAsPath ()
 
virtual const CPDF_PathObjectAsPath () const
 
virtual CPDF_ImageObjectAsImage ()
 
virtual const CPDF_ImageObjectAsImage () 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 16 of file cpdf_shadingobject.h.

Constructor & Destructor Documentation

◆ CPDF_ShadingObject()

CPDF_ShadingObject::CPDF_ShadingObject ( int32_t content_stream,
RetainPtr< CPDF_ShadingPattern > pattern,
const CFX_Matrix & matrix )

Definition at line 13 of file cpdf_shadingobject.cpp.

References CFX_Matrix::CFX_Matrix(), CPDF_PageObject::CPDF_PageObject(), and CPDF_ShadingObject().

Referenced by CPDF_ShadingObject().

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

◆ ~CPDF_ShadingObject()

CPDF_ShadingObject::~CPDF_ShadingObject ( )
overridedefault

Member Function Documentation

◆ AsShading() [1/2]

const CPDF_ShadingObject * CPDF_ShadingObject::AsShading ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 49 of file cpdf_shadingobject.cpp.

◆ AsShading() [2/2]

CPDF_ShadingObject * CPDF_ShadingObject::AsShading ( )
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 45 of file cpdf_shadingobject.cpp.

◆ CalcBoundingBox()

void CPDF_ShadingObject::CalcBoundingBox ( )

Definition at line 53 of file cpdf_shadingobject.cpp.

References CPDF_PageObject::clip_path(), and CPDF_PageObject::SetRect().

Referenced by Transform().

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

◆ GetType()

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

Implements CPDF_PageObject.

Definition at line 22 of file cpdf_shadingobject.cpp.

References CPDF_PageObject::kShading.

◆ IsShading()

bool CPDF_ShadingObject::IsShading ( ) const
overridevirtual

Reimplemented from CPDF_PageObject.

Definition at line 41 of file cpdf_shadingobject.cpp.

◆ matrix()

const CFX_Matrix & CPDF_ShadingObject::matrix ( ) const
inline

Definition at line 33 of file cpdf_shadingobject.h.

◆ pattern()

const CPDF_ShadingPattern * CPDF_ShadingObject::pattern ( ) const
inline

Definition at line 32 of file cpdf_shadingobject.h.

◆ Transform()

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

Implements CPDF_PageObject.

Definition at line 26 of file cpdf_shadingobject.cpp.

References CalcBoundingBox(), CFX_Matrix::Concat(), CPDF_PageObject::GetRect(), CPDF_ClipPath::HasRef(), CPDF_PageObject::mutable_clip_path(), CPDF_PageObject::SetDirty(), CPDF_PageObject::SetRect(), and CPDF_ClipPath::Transform().

+ Here is the call graph for this function:

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