pfPolyScalar man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



pfPolyScalar(3pf)	      OpenGL Performer 3.2.2 libpf C++ Reference Pages

NAME
     pfPolyScalar - A polynomial function

FUNCTION SPECIFICATION
     #include <Performer/pf/pfScalars.h>

		       pfPolyScalar::pfPolyScalar();

		       pfPolyScalar::pfPolyScalar(int degree, pfReal* coef);

     static pfType *   pfPolyScalar::getClassType(void);

     void	       pfPolyScalar::set(int degree, pfReal *coef);

     int	       pfPolyScalar::getDegree() const;

     pfReal	       pfPolyScalar::getCoef(int i);

     pfReal	       pfPolyScalar::eval(pfReal u);

PARENT CLASS FUNCTIONS
     The OpenGL Performer class pfPolyScalar is derived from the parent class
     pfScalar, so each of these member functions of class pfScalar are also
     directly usable with objects of class pfPolyScalar.  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 pfPolyScalar 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 pfPolyScalar 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);

									Page 1

pfPolyScalar(3pf)	      OpenGL Performer 3.2.2 libpf C++ Reference Pages

     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();
     int	    pfMemory::unref();
     int	    pfMemory::unrefDelete();
     int	    pfMemory::unrefGetRef();
     int	    pfMemory::getRef();
     int	    pfMemory::checkDelete();
     int	    pfMemory::isFluxed();
     void *	    pfMemory::getArena();
     int	    pfMemory::getSize();

DESCRIPTION
     pfPolyScalar defines a polynomial function:

     s = a[0] + a[1]*u + a[2]*u^2 + ... a[n]*u^n

     where n is the degree of the polynomial and a[i]'s are the coefficients.

     new(arena) allocates a pfPolyScalar from the specified memory arena, or
     from the process heap if arena is NULL.  new allocates a pfPolyScalar
     from the default memory arena (see pfGetSharedArena).  Like other
     pfObjects, pfPolyScalars cannot be created statically, automatically on
     the stack or in arrays.  pfPolyScalars should be deleted with pfDelete
     rather than the delete operator.

     pfPolyScalar::getClassType returns the pfType* for the class
     pfPolyScalar. the pfType* returned by pfPolyScalar::getClassType is the
     same as the pfType* returned by invoking the virtual function getType on
     any instance of class pfPolyScalar.  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.

     pfPolyScalar::pfPolyScalar() creates an instance of pfPolyScalar. No
     valid data is set.

     pfPolyScalar::pfPolyScalar(int degree,pfReal *coef) creates an instance
     of pfPolyScalar. degree is the degree of the polynomial. coef are the
     coefficients of the polynomial. The polynomial is defined as:

     coef[0] + coef[1]*u + coef[2]*u^2 + ...

     pfPolyScalar::set sets the degree and the polynomia where degree is the
     degree of the polynomial and coef are the coefficients of the polynomial.

									Page 2

pfPolyScalar(3pf)	      OpenGL Performer 3.2.2 libpf C++ Reference Pages

     The polynomial is defined as:

     coef[0] + coef[1]*u + coef[2]*u^2 + ...

     pfPolyScalar::getDegree returns the degree of the polynomial.

     pfPolyScalar::getCoef returns the i'th coefficient of the polynomial.

     pfPolyScalar::eval returns the value of the polynomial at u

SEE ALSO
     pfObject, pfScalar

									Page 3

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net