Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_function.h>
Public Types | |
enum class | Type { kTypeInvalid = -1 , kType0Sampled = 0 , kType2ExponentialInterpolation = 2 , kType3Stitching = 3 , kType4PostScript = 4 } |
Public Member Functions | |
virtual | ~CPDF_Function () |
absl::optional< uint32_t > | Call (pdfium::span< const float > inputs, pdfium::span< float > results) const |
uint32_t | CountInputs () const |
uint32_t | CountOutputs () const |
float | GetDomain (int i) const |
float | GetRange (int i) const |
float | Interpolate (float x, float xmin, float xmax, float ymin, float ymax) const |
Static Public Member Functions | |
static std::unique_ptr< CPDF_Function > | Load (RetainPtr< const CPDF_Object > pFuncObj) |
Protected Types | |
using | VisitedSet = std::set<RetainPtr<const CPDF_Object>> |
Protected Member Functions | |
CPDF_Function (Type type) | |
bool | Init (const CPDF_Object *pObj, VisitedSet *pVisited) |
virtual bool | v_Init (const CPDF_Object *pObj, VisitedSet *pVisited)=0 |
virtual bool | v_Call (pdfium::span< const float > inputs, pdfium::span< float > results) const =0 |
Static Protected Member Functions | |
static std::unique_ptr< CPDF_Function > | Load (RetainPtr< const CPDF_Object > pFuncObj, VisitedSet *pVisited) |
Protected Attributes | |
const Type | m_Type |
uint32_t | m_nInputs = 0 |
uint32_t | m_nOutputs = 0 |
std::vector< float > | m_Domains |
std::vector< float > | m_Ranges |
Definition at line 23 of file cpdf_function.h.
|
protected |
Definition at line 60 of file cpdf_function.h.
|
strong |
Enumerator | |
---|---|
kTypeInvalid | |
kType0Sampled | |
kType2ExponentialInterpolation | |
kType3Stitching | |
kType4PostScript |
Definition at line 26 of file cpdf_function.h.
|
virtualdefault |
|
explicitprotected |
Definition at line 84 of file cpdf_function.cpp.
References m_Type.
Referenced by CPDF_ExpIntFunc::CPDF_ExpIntFunc(), CPDF_PSFunc::CPDF_PSFunc(), CPDF_SampledFunc::CPDF_SampledFunc(), and CPDF_StitchFunc::CPDF_StitchFunc().
absl::optional< uint32_t > CPDF_Function::Call | ( | pdfium::span< const float > | inputs, |
pdfium::span< float > | results ) const |
Definition at line 131 of file cpdf_function.cpp.
References m_nInputs, and m_nOutputs.
|
inline |
Definition at line 41 of file cpdf_function.h.
References m_nInputs.
|
inline |
Definition at line 42 of file cpdf_function.h.
References m_nOutputs.
|
inline |
Definition at line 43 of file cpdf_function.h.
|
inline |
Definition at line 44 of file cpdf_function.h.
|
protected |
Definition at line 88 of file cpdf_function.cpp.
References CPDF_Object::AsStream(), kType0Sampled, kType4PostScript, m_nInputs, m_nOutputs, and m_Type.
float CPDF_Function::Interpolate | ( | float | x, |
float | xmin, | ||
float | xmax, | ||
float | ymin, | ||
float | ymax ) const |
Definition at line 164 of file cpdf_function.cpp.
|
static |
Definition at line 43 of file cpdf_function.cpp.
|
staticprotected |
Definition at line 50 of file cpdf_function.cpp.
References CPDF_Object::GetDict(), CPDF_Dictionary::GetIntegerFor(), kType0Sampled, kType2ExponentialInterpolation, kType3Stitching, and kType4PostScript.
|
protectedpure virtual |
Implemented in CPDF_ExpIntFunc, CPDF_PSFunc, CPDF_SampledFunc, and CPDF_StitchFunc.
|
protectedpure virtual |
Implemented in CPDF_ExpIntFunc, CPDF_PSFunc, CPDF_SampledFunc, and CPDF_StitchFunc.
|
protected |
Definition at line 72 of file cpdf_function.h.
|
protected |
Definition at line 70 of file cpdf_function.h.
Referenced by Call(), CountInputs(), Init(), CPDF_ExpIntFunc::v_Call(), CPDF_SampledFunc::v_Call(), CPDF_ExpIntFunc::v_Init(), CPDF_SampledFunc::v_Init(), and CPDF_StitchFunc::v_Init().
|
protected |
Definition at line 71 of file cpdf_function.h.
Referenced by Call(), CountOutputs(), Init(), CPDF_SampledFunc::v_Call(), CPDF_ExpIntFunc::v_Init(), and CPDF_SampledFunc::v_Init().
|
protected |
Definition at line 73 of file cpdf_function.h.
|
protected |
Definition at line 69 of file cpdf_function.h.
Referenced by CPDF_Function(), and Init().