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

#include <cpdf_patterncs.h>

+ Inheritance diagram for CPDF_PatternCS:
+ Collaboration diagram for CPDF_PatternCS:

Public Member Functions

 ~CPDF_PatternCS () override
 
void InitializeStockPattern ()
 
bool GetRGB (pdfium::span< const float > pBuf, float *R, float *G, float *B) const override
 
const CPDF_PatternCSAsPatternCS () const override
 
uint32_t v_Load (CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited) override
 
bool GetPatternRGB (const PatternValue &value, float *R, float *G, float *B) const
 
- Public Member Functions inherited from CPDF_BasedCS
 ~CPDF_BasedCS () override
 
void EnableStdConversion (bool bEnabled) final
 
- Public Member Functions inherited from CPDF_ColorSpace
std::vector< float > CreateBufAndSetDefaultColor () const
 
uint32_t CountComponents () const
 
Family GetFamily () const
 
bool IsSpecial () const
 
virtual void GetDefaultValue (int iComponent, float *value, float *min, float *max) const
 
virtual void TranslateImageLine (pdfium::span< uint8_t > dest_span, pdfium::span< const uint8_t > src_span, int pixels, int image_width, int image_height, bool bTransMask) const
 
virtual bool IsNormal () const
 
virtual const CPDF_IndexedCSAsIndexedCS () const
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 
- Public Member Functions inherited from fxcrt::Observable
 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 
- Public Attributes inherited from CPDF_BasedCS
 CONSTRUCT_VIA_MAKE_RETAIN
 

Additional Inherited Members

- Public Types inherited from CPDF_ColorSpace
enum class  Family {
  kUnknown = 0 , kDeviceGray = 1 , kDeviceRGB = 2 , kDeviceCMYK = 3 ,
  kCalGray = 4 , kCalRGB = 5 , kLab = 6 , kICCBased = 7 ,
  kSeparation = 8 , kDeviceN = 9 , kIndexed = 10 , kPattern = 11
}
 
- Static Public Member Functions inherited from CPDF_ColorSpace
static void InitializeGlobals ()
 
static void DestroyGlobals ()
 
static RetainPtr< CPDF_ColorSpaceGetStockCS (Family family)
 
static RetainPtr< CPDF_ColorSpaceGetStockCSForName (const ByteString &name)
 
static RetainPtr< CPDF_ColorSpaceLoad (CPDF_Document *pDoc, const CPDF_Object *pObj, std::set< const CPDF_Object * > *pVisited)
 
static RetainPtr< CPDF_ColorSpaceAllocateColorSpaceForID (CPDF_Document *pDocument, uint32_t family_id)
 
static uint32_t ComponentsForFamily (Family family)
 
- Protected Member Functions inherited from CPDF_BasedCS
 CPDF_BasedCS (Family family)
 
- Protected Member Functions inherited from CPDF_ColorSpace
 CPDF_ColorSpace (Family family)
 
 ~CPDF_ColorSpace () override
 
void SetComponentsForStockCS (uint32_t nComponents)
 
bool IsStdConversionEnabled () const
 
bool HasSameArray (const CPDF_Object *pObj) const
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 
- Protected Attributes inherited from CPDF_BasedCS
RetainPtr< CPDF_ColorSpacem_pBaseCS
 

Detailed Description

Definition at line 17 of file cpdf_patterncs.h.

Constructor & Destructor Documentation

◆ ~CPDF_PatternCS()

CPDF_PatternCS::~CPDF_PatternCS ( )
overridedefault

Member Function Documentation

◆ AsPatternCS()

const CPDF_PatternCS * CPDF_PatternCS::AsPatternCS ( ) const
overridevirtual

Reimplemented from CPDF_ColorSpace.

Definition at line 51 of file cpdf_patterncs.cpp.

◆ GetPatternRGB()

bool CPDF_PatternCS::GetPatternRGB ( const PatternValue & value,
float * R,
float * G,
float * B ) const

Definition at line 55 of file cpdf_patterncs.cpp.

◆ GetRGB()

bool CPDF_PatternCS::GetRGB ( pdfium::span< const float > pBuf,
float * R,
float * G,
float * B ) const
overridevirtual

Implements CPDF_ColorSpace.

Definition at line 44 of file cpdf_patterncs.cpp.

◆ InitializeStockPattern()

void CPDF_PatternCS::InitializeStockPattern ( )

Definition at line 18 of file cpdf_patterncs.cpp.

References CPDF_ColorSpace::SetComponentsForStockCS().

+ Here is the call graph for this function:

◆ v_Load()

uint32_t CPDF_PatternCS::v_Load ( CPDF_Document * pDoc,
const CPDF_Array * pArray,
std::set< const CPDF_Object * > * pVisited )
overridevirtual

Implements CPDF_ColorSpace.

Definition at line 22 of file cpdf_patterncs.cpp.

References CPDF_DocPageData::FromDocument(), and CPDF_ColorSpace::HasSameArray().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_PatternCS::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 19 of file cpdf_patterncs.h.


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