pfEdge(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages pfEdge(3pf)NAMEpfEdge - Trim curve
FUNCTION SPECIFICATION
#include <Performer/pf/pfEdge.h>
pfEdge::pfEdge();
static pfType * pfEdge::getClassType(void);
pfCurve2d * pfEdge::getContCurve();
void pfEdge::setContCurve(pfCurve2d *c);
pfDisCurve2d * pfEdge::getDisCurve();
void pfEdge::setDisCurve2d(pfDisCurve2d *d);
int pfEdge::getBoundary();
void pfEdge::setBoundary(int boundaryId);
int pfEdge::getBoundaryDir();
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfEdge is derived from the parent class
pfObject, so each of these member functions of class pfObject are also
directly usable with objects of class pfEdge. 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 pfEdge 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);
Page 1
pfEdge(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages pfEdge(3pf)
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();
DESCRIPTIONpfEdge defines a trim curve in UV space. It can be either a discrete or
continuous curve. For the purpose of topology construction (pfTopo), an
edge contains an index to the boundary list in the class pfTopo.
new(arena) allocates a pfEdge from the specified memory arena, or from
the process heap if arena is NULL. new allocates a pfEdge from the
default memory arena (see pfGetSharedArena). Like other pfObjects,
pfEdges cannot be created statically, automatically on the stack or in
arrays. pfEdges should be deleted with pfDelete rather than the delete
operator.
pfEdge::getClassType returns the pfType* for the class pfEdge. the
pfType* returned by pfEdge::getClassType is the same as the pfType*
returned by invoking the virtual function getType on any instance of
class pfEdge. 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.
pfEdge::getBoundary returns the boundary id of the boundary associated
with this edge.
pfEdge::getBoundaryDir returns the boundary direction set in
pfEdge::setBoundaryDir.
pfEdge::getContCurve returns a pointer to the continuous 2D curve
representing this edge. Returns NULL if the edge is not represented by a
continous curve.
pfEdge::getDisCurve returns a pointer to the discrete 2D curve
representing this edge. Returns NULL if the edge is not represented by a
discrete curve.
pfEdge::setContCurve sets the continuous curve to be c. It also
references c.
Page 2
pfEdge(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages pfEdge(3pf)
pfEdge::setDisCurve sets the discrete curve to be d. It also references
d.
pfEdge::getBoundary returns the boundary id of the boundary associated
with this edge.
pfEdge::setBoundary sets the boundary id.
pfEdge::setBoundaryDir when the value is -1, it indicates that if we
evaluate (3D space) this trim curve from beginT to endT, the XYZ points
are in the reverse order of the 'xyzBoundary' in the corresponding
boundary. When the value is 1, if indicates that the order is the same.
pfEdge::getBoundaryDir returns the boundary direction set in
pfEdge::setBoundaryDir.
SEE ALSO
pfTopo, pfCurve2d, pfDisCurve2d
Page 3