PostScriptCalculatorFunction Class Documentation
class PostScriptCalculatorFunction : FunctionNamespace:Datalogics::PDFL
- Inherits from:
Function
Detailed Description
A function represented as a stream containing code written in a small subset of the PostScript language.
Constructor & Destructor Documentation
PostScriptCalculatorFunction
PostScriptCalculatorFunction(System.Collections.Generic.IList< System.Double > domain, System.Collections.Generic.IList< System.Double > range, string code)Parameters
domain: System.Collections.Generic.IList< System.Double >an array of 2 * m numbers, where m is the number of input values
range: System.Collections.Generic.IList< System.Double >an array of 2 * n numbers, where n is the number of output values
code: stringthe code of the function, written in a subset of the PostScript language
Create PostScript calculator function, represented as a stream containing code written in a small subset of the PostScript language.
Property Documentation
Code
string Code[get]The code of the function, written in a subset of the PostScript language.
The code defines how input values are transformed into output values.
Default
static Function Default[get]Gets the Default named function.
A Function representing the Default named function.
Domain
System.Collections.Generic.IList< System.Double > Domain[get, set]The domain of the function.
Contains 2 * m elements, where m is the number of inputs to the function. Each successive pair of elements gives the minimum and maximum values for one of the inputs. Input values to the function are clamped to these minimum and maximum values.
Identity
static Function Identity[get]Gets the Identity named function.
A Function representing the Identity named function, which returns its input values unchanged.
NInputs
int NInputs[get]The number of inputs to the function.
NOutputs
int NOutputs[get]The number of outputs from the function.
Range
System.Collections.Generic.IList< System.Double > Range[get, set]The range of the function.
Contains 2 * n elements, where n is the number of outputs from the function. Each successive pair of elements gives the minimum and maximum values for one of the outputs. Output values from the function are clamped to these minimum and maximum values.
Stream
PDFStream Stream[get]The underlying PDF stream for this PostScriptCalculatorFunction.
The stream contains the PostScript code that defines the function.
Member Function Documentation
Apply
System.Collections.Generic.IList< System.Double > Apply(System.Collections.Generic.IList< System.Double > args)Parameters
args: System.Collections.Generic.IList< System.Double >input values for the function. The number of input values must agree with the number of inputs the function takes.
Returns:
System.Collections.Generic.IList< System.Double >a list of the result values from the function
Apply the function to supplied input values
Dispose
void Dispose()Returns:
voidToString
override string ToString()Returns:
override stringA string representation of the PostScriptCalculatorFunction, including the number of inputs and outputs, domain, range, and the PostScript code.
A string value describing the function.
operator!=
Parameters
Returns:
booltrue if the two Functions are not equal; otherwise, false.
Tests two Function objects for inequality.
operator==
Parameters
Returns:
booltrue if the two Functions are equal; otherwise, false.
Tests two Function objects for equality.