pfCompositeScalar(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages
NAME
pfNewCompositeScalar, pfGetCompositeScalarClassType,
pfCompositeScalarOutF, pfGetCompositeScalarOutF, pfCompositeScalarInF,
pfGetCompositeScalarInF, pfCompositeScalarEval - A composite scalar
function
FUNCTION SPECIFICATION
#include <Performer/pf.h>
pfCompositeScalar * pfNewCompositeScalar(void *arena);
pfType * pfGetCompositeScalarClassType(void);
void pfCompositeScalarOutF(pfScalar *comp,
pfScalar *outF);
pfScalar * pfGetCompositeScalarOutF(pfScalar *comp);
void pfCompositeScalarInF(pfScalar *comp,
pfScalar *inF);
pfScalar * pfGetCompositeScalarInF(pfScalar *comp);
pfReal pfCompositeScalarEval(pfScalar *s, pfReal u);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfCompositeScalar is derived from the parent
class pfScalar, so each of these member functions of class pfScalar are
also directly usable with objects of class pfCompositeScalar. Casting an
object of class pfCompositeScalar to an object of class pfScalar is taken
care of automatically. This is also true for casts to objects of
ancestor classes of class pfScalar.
Since the class pfScalar is itself derived from the parent class
pfObject, objects of class pfCompositeScalar can also be used with these
functions designed for objects of class pfObject.
void pfUserDataSlot(pfObject *obj, int slot, void *data);
void pfUserData(pfObject *obj, void *data);
void* pfGetUserDataSlot(pfObject *obj, int slot);
void* pfGetUserData(pfObject *obj);
int pfGetNumUserData(pfObject *obj);
int pfGetNamedUserDataSlot(const char *name);
const char* pfGetUserDataSlotName(int slot);
int pfGetNumNamedUserDataSlots(void);
int pfDeleteGLHandle(pfObject *obj);
Page 1
pfCompositeScalar(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfCompositeScalar can also be used with these
functions designed for objects of class pfMemory.
pfType * pfGetType(const void *ptr);
int pfIsOfType(const void *ptr, pfType *type);
int pfIsExactType(const void *ptr, pfType *type);
const char * pfGetTypeName(const void *ptr);
int pfRef(void *ptr);
int pfUnref(void *ptr);
int pfUnrefDelete(void *ptr);
int pfUnrefGetRef(void *ptr);
int pfGetRef(const void *ptr);
int pfCopy(void *dst, void *src);
int pfDelete(void *ptr);
int pfIsFluxed(void *ptr);
int pfCompare(const void *ptr1, const void *ptr2);
void pfPrint(const void *ptr, uint which, uint verbose,
FILE *file);
void * pfGetArena(void *ptr);
DESCRIPTION
pfCompositeScalar defines a composite scalar function that is obtained by
compositing two scalar functions. Assume f and g are two scalar
functions, and let h denote the composite function of f and then then
h(u) = f(g(u)).
We call f the outside function and g the inside function (in reference to
the compositing order).
pfNewCompositeScalar creates and returns a handle to a pfCompositeScalar.
arena specifies a malloc arena out of which the pfCompositeScalar is
allocated or NULL for allocation off the process heap.
pfCompositeScalars can be deleted with pfDelete.
pfGetCompositeScalarClassType returns the pfType* for the class
pfCompositeScalar. the pfType* returned by pfGetCompositeScalarClassType
is the same as the pfType* returned by invoking pfGetType on any instance
of class pfCompositeScalar. Because OpenGL Performer allows subclassing
of built-in types, when decisions are made based on the type of an
object, it is usually better to use pfIsOfType to test if an object is of
a type derived from a Performer type rather than to test for strict
equality of the pfType*'s.
pfNewCompositeScalar creates an instance of pfCompositeScalar with outF
and inF set to NULL.
pfCompositeScalarOutF sets the outside function.
Page 2
pfCompositeScalar(3pf) OpenGL Performer 3.2.2 libpf C Reference Pages
pfGetCompositeScalarOutF returns the outside function.
pfCompositeScalarInF sets the inside function.
pfGetCompositeScalarInF returns the inside function.
pfCompositeScalarEval evaluates function at given value of u.
SEE ALSO
pfObject, pfScalar
Page 3