Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Function Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/Function.h>

Inheritance diagram for Function:

Inheritance graph
[legend]
Collaboration diagram for Function:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Function ()
virtual ~Function ()
GBool init (Dict *dict)
virtual Functioncopy ()=0
int getInputSize ()
int getOutputSize ()
virtual void transform (fouble *in, fouble *out)=0
virtual GBool isOk ()=0

Static Public Member Functions

static Functionparse (Object *funcObj)

Protected Attributes

int m
int n
fouble domain [funcMaxInputs][2]
fouble range [funcMaxOutputs][2]
GBool hasRange

Constructor & Destructor Documentation

Function::Function  ) 
 

Definition at line 29 of file Function.cc.

Function::~Function  )  [virtual]
 

Definition at line 32 of file Function.cc.


Member Function Documentation

virtual Function* Function::copy  )  [pure virtual]
 

Implemented in IdentityFunction, SampledFunction, ExponentialFunction, StitchingFunction, and PostScriptFunction.

Referenced by GfxDeviceNColorSpace::copy(), and GfxSeparationColorSpace::copy().

int Function::getInputSize  )  [inline]
 

Definition at line 47 of file Function.h.

References m.

Referenced by StitchingFunction::StitchingFunction().

int Function::getOutputSize  )  [inline]
 

Definition at line 48 of file Function.h.

References n.

Referenced by StitchingFunction::StitchingFunction().

GBool Function::init Dict dict  ) 
 

Definition at line 80 of file Function.cc.

References Object::arrayGet(), Object::arrayGetLength(), domain, error(), Object::free(), funcMaxInputs, funcMaxOutputs, Object::getNum(), gFalse, gTrue, hasRange, i, Object::isNum(), Dict::lookup(), m, n, and range.

Referenced by ExponentialFunction::ExponentialFunction(), PostScriptFunction::PostScriptFunction(), SampledFunction::SampledFunction(), and StitchingFunction::StitchingFunction().

virtual GBool Function::isOk  )  [pure virtual]
 

Implemented in IdentityFunction, SampledFunction, ExponentialFunction, StitchingFunction, and PostScriptFunction.

Referenced by parse().

Function * Function::parse Object funcObj  )  [static]
 

Definition at line 35 of file Function.cc.

References error(), Object::free(), Object::getDict(), Object::getInt(), Object::isDict(), Object::isName(), isOk(), Object::isStream(), Dict::lookup(), NULL, and Object::streamGetDict().

Referenced by GfxRadialShading::parse(), GfxAxialShading::parse(), GfxDeviceNColorSpace::parse(), GfxSeparationColorSpace::parse(), and StitchingFunction::StitchingFunction().

virtual void Function::transform fouble in,
fouble out
[pure virtual]
 

Implemented in IdentityFunction, SampledFunction, ExponentialFunction, StitchingFunction, and PostScriptFunction.

Referenced by GfxDeviceNColorSpace::getCMYK(), GfxSeparationColorSpace::getCMYK(), GfxRadialShading::getColor(), GfxAxialShading::getColor(), GfxDeviceNColorSpace::getGray(), GfxSeparationColorSpace::getGray(), GfxDeviceNColorSpace::getRGB(), GfxSeparationColorSpace::getRGB(), GfxImageColorMap::GfxImageColorMap(), and StitchingFunction::transform().


Member Data Documentation

fouble Function::domain[funcMaxInputs][2] [protected]
 

Definition at line 59 of file Function.h.

Referenced by IdentityFunction::IdentityFunction(), init(), StitchingFunction::StitchingFunction(), StitchingFunction::transform(), ExponentialFunction::transform(), and SampledFunction::transform().

GBool Function::hasRange [protected]
 

Definition at line 62 of file Function.h.

Referenced by ExponentialFunction::ExponentialFunction(), IdentityFunction::IdentityFunction(), init(), PostScriptFunction::PostScriptFunction(), SampledFunction::SampledFunction(), and ExponentialFunction::transform().

int Function::m [protected]
 

Definition at line 57 of file Function.h.

Referenced by ExponentialFunction::ExponentialFunction(), getInputSize(), IdentityFunction::IdentityFunction(), init(), SampledFunction::SampledFunction(), StitchingFunction::StitchingFunction(), PostScriptFunction::transform(), and SampledFunction::transform().

int Function::n [protected]
 

Definition at line 57 of file Function.h.

Referenced by ExponentialFunction::ExponentialFunction(), getOutputSize(), IdentityFunction::IdentityFunction(), init(), SampledFunction::SampledFunction(), PostScriptFunction::transform(), ExponentialFunction::transform(), and SampledFunction::transform().

fouble Function::range[funcMaxOutputs][2] [protected]
 

Definition at line 61 of file Function.h.

Referenced by init(), SampledFunction::SampledFunction(), PostScriptFunction::transform(), ExponentialFunction::transform(), and SampledFunction::transform().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:33:30 2005 for OPIE by  doxygen 1.4.2