pfSolid(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages pfSolid(3pf)NAMEpfSolid - Set of connected surfaces.
FUNCTION SPECIFICATION
#include <Performer/pf/pfSolid.h>
pfSolid::pfSolid();
static pfType * pfSolid::getClassType(void);
void pfSolid::addSurface(pfParaSurface *sur);
pfParaSurface* pfSolid::getSurface(int i);
int pfSolid::getSurfaceCount();
void pfSolid::setSolidId(int solidId);
int pfSolid::getSolidId();
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfSolid is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfSolid. This is also true for
ancestor classes 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 pfSolid 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();
Page 1
pfSolid(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages pfSolid(3pf)
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
An pfSolid is a set of connected surfaces. The surfaces need not form a
closed surface, that is, the boundary of a solid, but may define a
surface with edges. You can find solids based on topology information
(See pfTopo::buildSolids).
new(arena) allocates a pfSolid from the specified memory arena, or from
the process heap if arena is NULL. new allocates a pfSolid from the
default memory arena (see pfGetSharedArena). Like other pfObjects,
pfSolids cannot be created statically, automatically on the stack or in
arrays. pfSolids should be deleted with pfDelete rather than the delete
operator.
pfSolid::getClassType returns the pfType* for the class pfSolid. the
pfType* returned by pfSolid::getClassType is the same as the pfType*
returned by invoking the virtual function getType on any instance of
class pfSolid. 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.
pfSolid::addSurface add a surface to the solid.
pfSolid::getSurfaceCount returns the number of surfaces in this solid.
pfSolid::setSolidId sets the index of the solid in the solid list of the
topology.
pfSolid::getSolidId returns the index of the solid in the solid list of
the topology.
SEE ALSO
pfTopo, pfParaSurface
Page 2