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

#include <cpdf_indexedcs.h>

+ Inheritance diagram for CPDF_IndexedCS:
+ Collaboration diagram for CPDF_IndexedCS:

Public Member Functions

 ~CPDF_IndexedCS () override
 
bool GetRGB (pdfium::span< const float > pBuf, float *R, float *G, float *B) const override
 
const CPDF_IndexedCSAsIndexedCS () const override
 
uint32_t v_Load (CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited) override
 
int GetMaxIndex () 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_PatternCSAsPatternCS () 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_indexedcs.h.

Constructor & Destructor Documentation

◆ ~CPDF_IndexedCS()

CPDF_IndexedCS::~CPDF_IndexedCS ( )
overridedefault

Member Function Documentation

◆ AsIndexedCS()

const CPDF_IndexedCS * CPDF_IndexedCS::AsIndexedCS ( ) const
overridevirtual

Reimplemented from CPDF_ColorSpace.

Definition at line 29 of file cpdf_indexedcs.cpp.

◆ GetMaxIndex()

int CPDF_IndexedCS::GetMaxIndex ( ) const
inline

Definition at line 32 of file cpdf_indexedcs.h.

◆ GetRGB()

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

Implements CPDF_ColorSpace.

Definition at line 80 of file cpdf_indexedcs.cpp.

◆ v_Load()

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

Implements CPDF_ColorSpace.

Definition at line 33 of file cpdf_indexedcs.cpp.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_IndexedCS::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 19 of file cpdf_indexedcs.h.


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