#include <Function.h>
Public Types | |
enum | Type { e_sampled = 0, e_exponential = 2, e_stitching = 3, e_postscript = 4 } |
Public Member Functions | |
Function (SDF::Obj funct_dict=0) | |
Function (const Function &f) | |
Function & | operator= (const Function &f) |
~Function () | |
Type | GetType () const |
int | GetInputCardinality () |
int | GetOutputCardinality () |
std::vector< double > | Eval (const std::vector< double > &in_arr) |
void | Eval (double *in, double *out) |
SDF::Obj | GetSDFObj () |
void | Destroy () |
Although PDF is not a programming language it provides several types of function object that represent parameterized classes of functions, including mathematical formulas and sampled representations with arbitrary resolution. Functions are used in various ways in PDF, including device-dependent rasterization information for high-quality printing (halftone spot functions and transfer functions), color transform functions for certain color spaces, and specification of colors as a function of position for smooth shadings. Functions in PDF represent static, self-contained numerical transformations.
PDF::Function represents a single, flat interface around all PDF function types.
Definition at line 28 of file Function.h.
Enumerator | |
---|---|
e_sampled | |
e_exponential | |
e_stitching | |
e_postscript |
Definition at line 41 of file Function.h.
pdftron::PDF::Function::Function | ( | SDF::Obj | funct_dict = 0 | ) |
Create a PDF::Function object from an existing SDF function dictionary. If funct_dict is null, a non valid Function object is created.
pdftron::PDF::Function::Function | ( | const Function & | f | ) |
pdftron::PDF::Function::~Function | ( | ) |
void pdftron::PDF::Function::Destroy | ( | ) |
Frees the native memory of the object.
std::vector<double> pdftron::PDF::Function::Eval | ( | const std::vector< double > & | in_arr | ) |
Evaluate the function at a given point.
void pdftron::PDF::Function::Eval | ( | double * | in, |
double * | out | ||
) |
int pdftron::PDF::Function::GetInputCardinality | ( | ) |
int pdftron::PDF::Function::GetOutputCardinality | ( | ) |
SDF::Obj pdftron::PDF::Function::GetSDFObj | ( | ) |
Type pdftron::PDF::Function::GetType | ( | ) | const |