pfSinScalar(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
NAMEpfSinScalar - A sine function
FUNCTION SPECIFICATION
#include <Performer/pf/pfScalars.h>
pfSinScalar::pfSinScalar();
static pfType * pfSinScalar::getClassType(void);
pfReal pfSinScalar::eval(pfReal u);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfSinScalar is derived from the parent class
pfScalar, so each of these member functions of class pfScalar are also
directly usable with objects of class pfSinScalar. This is also true for
ancestor classes of class pfScalar.
pfReal pfScalar::eval(pfReal u) = 0;
Since the class pfScalar is itself derived from the parent class
pfObject, objects of class pfSinScalar can also be used with these
functions designed for objects of class pfObject.
void* pfObject::operator new(size_t);
void* pfObject::operator new(size_t, pfFluxMemory *fmem);
void pfObject::setUserData(void *data);
void pfObject::setUserData(int slot, void *data);
void* pfObject::getUserData(pfObject *obj);
void* pfObject::getUserData(pfObject *obj, int slot);
int pfObject::getNumUserData();
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfSinScalar can also be used with these
functions designed for objects of class pfMemory.
void* pfMemory::getData(const void *ptr);
pfType * pfMemory::getType();
int pfMemory::isOfType(pfType *type);
int pfMemory::isExactType(pfType *type);
const char * pfMemory::getTypeName();
int pfMemory::copy(pfMemory *src);
int pfMemory::compare(const pfMemory *mem);
void pfMemory::print(uint which, uint verbose, char *prefix,
FILE *file);
int pfMemory::getArena(void *ptr);
void* pfMemory::getArena();
int pfMemory::ref();
Page 1
pfSinScalar(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
int pfMemory::unref();
int pfMemory::unrefDelete();
int pfMemory::unrefGetRef();
int pfMemory::getRef();
int pfMemory::checkDelete();
int pfMemory::isFluxed();
void * pfMemory::getArena();
int pfMemory::getSize();
DESCRIPTIONpfSinScalar defines a sine function: s = sin(u).
new(arena) allocates a pfSinScalar from the specified memory arena, or
from the process heap if arena is NULL. new allocates a pfSinScalar from
the default memory arena (see pfGetSharedArena). Like other pfObjects,
pfSinScalars cannot be created statically, automatically on the stack or
in arrays. pfSinScalars should be deleted with pfDelete rather than the
delete operator.
pfSinScalar::getClassType returns the pfType* for the class pfSinScalar.
the pfType* returned by pfSinScalar::getClassType is the same as the
pfType* returned by invoking the virtual function getType on any instance
of class pfSinScalar. 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 the member function isOfType 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.
pfSinScalar::eval evaluates sin at value u.
SEE ALSO
pfObject, pfScalar
Page 2