pfJunction(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
NAMEpfJunction - The end points of boundaries.
FUNCTION SPECIFICATION
#include <Performer/pf/pfJunction.h>
pfJunction::pfJunction();
static pfType * pfJunction::getClassType(void);
void pfJunction::addEndPt(int i, pfParaSurface *sur,
int trimLoop, int trimCurve, int which);
int pfJunction::getSpokeCount();
int pfJunction::getSurface(int i);
int pfJunction::getLoop(int i);
int pfJunction::getTrimCurve(int i);
int pfJunction::getWhichEndPt(int i);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfJunction is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfJunction. 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 pfJunction 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);
Page 1
pfJunction(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
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
A junction is one or more boundaries that come together at a single point
in 3D space. To ensure the topological integrity of this arrangment the
boundaries' (pfBoundary) endpoints point to an pfJunction structure and
visa-versa. pfJunction contains the information on all the boundaries
that meet at this junction. For each boundary, it has a flag indicating
which end point is the relevant end point. pfJunction is similar to
pfBoundary, except that it holds a list of boundaries that meet at a
junction. Like an pfBoundary, pfJunction also holds the model
coordinates of the junction.
new(arena) allocates a pfJunction from the specified memory arena, or
from the process heap if arena is NULL. new allocates a pfJunction from
the default memory arena (see pfGetSharedArena). Like other pfObjects,
pfJunctions cannot be created statically, automatically on the stack or
in arrays. pfJunctions should be deleted with pfDelete rather than the
delete operator.
pfJunction::getClassType returns the pfType* for the class pfJunction.
the pfType* returned by pfJunction::getClassType is the same as the
pfType* returned by invoking the virtual function getType on any instance
of class pfJunction. 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.
pfJunction::addEndPt adds a new spoke to the surface list where surface
corresponds to the surface index to the surface list, trimLoop refers to
the trim loop index of surface, trimCurve corresponds to the trim curve
index with the trim lopp and which corresponds to which end
(PFEND_POINT_BEGIN or PFEND_POINT_END) of the curve is a junction.
pfJunction::getSpokeCount returns the number of surfaces that meet at
this junction.
pfJunction::getSurface returns information associated with the i'th
spoke.
pfJunction::getLoop returns the loop number of the i'th spoke.
Page 2
pfJunction(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
pfJunction::getTrimCurve gets the trim curve number of the i'th spoke.
pfJunction::getWhichEndPt gets the information on which end point of the
i'th spoke. Will be either PFEND_POINT_BEGIN or PFEND_POINT_END.
SEE ALSO
pfTopo, pfCurve2d, pfEdge, pfDisCurve2d, pfDisCurve3d, pfParaSurface
Page 3