pfHsplineCurve2d(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
NAMEpfHsplineCurve2d - A two-dimensional Hermite curve
FUNCTION SPECIFICATION
#include <Performer/pf/pfHsplineCurve2d.h>
static pfType* pfHsplineCurve2d::getClassType(void);
pfHsplineCurve2d::pfHsplineCurve2d();
int pfHsplineCurve2d::getKnotCount() const;
void pfHsplineCurve2d::setPoint(int i, const pfVec2 &p);
void pfHsplineCurve2d::setTangent(int i, const pfVec2 &tng);
void pfHsplineCurve2d::setKnot(int i, pfReal t);
pfVec2 * pfHsplineCurve2d::getPoint(int i);
pfVec2 * pfHsplineCurve2d::getTangent(int i);
pfReal pfHsplineCurve2d::getKnot(it i);
void pfHsplineCurve2d::evalPt(pfReal t, pfVec2 &pnt);
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfHsplineCurve2d is derived from the parent
class pfCurve2d, so each of these member functions of class pfCurve2d are
also directly usable with objects of class pfHsplineCurve2d. This is
also true for ancestor classes of class pfCurve2d.
void pfCurve2d::setBeginT(const pfReal beginT);
void pfCurve2d::setEndT(const pfReal endT);
pfReal pfCurve2d::getBeginT() const;
pfReal pfCurve2d::getEndT() const;
pfVec2 pfCurve2d::getBeginPt();
pfVec2 pfCurve2d::getEndPt();
pfVec2 pfCurve2d::getBeginTan();
pfVec2 pfCurve2d::getEndTan();
void pfCurve2d::setClosed(const pfLoop loopVal);
pfLoop pfCurve2d::getClosed();
void pfCurve2d::setClosedTol(const pfReal tol);
pfReal pfCurve2d::getClosedTol() const;
virtual void pfCurve2d::evalPt(pfReal t, pfVec2& pnt) = 0;
virtual void pfCurve2d::evalTan(pfReal t, pfVec2& pnt);
virtual void pfCurve2d::evalNorm(pfReal t, pfVec2& pnt);
virtual void pfCurve2d::evalCurv(pfReal t, pfReal* curv);
void pfCurve2d::eval(pfReal t, pfVec2 &pnt, pfVec2 &tan,
pfReal* curv, pfVec2 &norm)
Page 1
pfHsplineCurve2d(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
Since the class pfCurve2d is itself derived from the parent class pfRep,
objects of class pfHsplineCurve2d can also be used with these functions
designed for objects of class pfRep.
void pfRep::setOrigin(const pfVec3 *origin);
void pfRep::setOrient(const pfMatrix *mat);
void pfRep::getOrigin(pfVec3& origin);
void pfRep::getOrient(pfMatrix& matrix);
Since the class pfRep is itself derived from the parent class pfGeode,
objects of class pfHsplineCurve2d can also be used with these functions
designed for objects of class pfGeode.
int pfGeode::addGSet(pfGeoSet* gset);
int pfGeode::removeGSet(pfGeoSet* gset);
int pfGeode::insertGSet(int index, pfGeoSet* gset);
int pfGeode::replaceGSet(pfGeoSet* old, pfGeoSet* new);
pfGeoSet * pfGeode::getGSet(int index);
int pfGeode::getNumGSets(void);
Since the class pfGeode is itself derived from the parent class pfNode,
objects of class pfHsplineCurve2d can also be used with these functions
designed for objects of class pfNode.
pfGroup * pfNode::getParent(int i);
int pfNode::getNumParents(void);
void pfNode::setBound(pfSphere *bsph, int mode);
int pfNode::getBound(pfSphere *bsph);
pfNode* pfNode::clone(int mode);
pfNode* pfNode::bufferClone(int mode, pfBuffer *buf);
int pfNode::flatten(int mode);
int pfNode::setName(const char *name);
const char * pfNode::getName(void);
pfNode* pfNode::find(const char *pathName, pfType *type);
pfNode* pfNode::lookup(const char *name, pfType* type);
int pfNode::isect(pfSegSet *segSet, pfHit **hits[]);
void pfNode::setTravMask(int which, uint mask, int setMode,
int bitOp);
uint pfNode::getTravMask(int which);
void pfNode::setTravFuncs(int which, pfNodeTravFuncType pre,
pfNodeTravFuncType post);
void pfNode::getTravFuncs(int which, pfNodeTravFuncType *pre,
pfNodeTravFuncType *post);
void pfNode::setTravData(int which, void *data);
void * pfNode::getTravData(int which);
void pfNode::setTravMode(int which, int mode, int val);
int pfNode::getTravMode(int which, int mode) const;
Page 2
pfHsplineCurve2d(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
Since the class pfNode is itself derived from the parent class pfObject,
objects of class pfHsplineCurve2d 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 pfHsplineCurve2d 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();
int pfMemory::unref();
int pfMemory::unrefDelete();
int pfMemory::unrefGetRef();
int pfMemory::getRef();
int pfMemory::checkDelete();
int pfMemory::isFluxed();
void * pfMemory::getArena();
int pfMemory::getSize();
DESCRIPTIONpfHsplineCurve2d defines a two dimensional Hermite curve, parameterized
by t. A Hermite curve is defined by a list of knot values knot, the
points of the curve at these knot values p, and the tangents of the curve
at these knot values t. Notice that the name 't' is used for both the
parameterization and for the tangents. The domain of the Hermite curve
is [beginT, endT], both are members of its superclass pfCurve2d.
pfHsplineCurve2d::getClassType returns the pfType* for the class
pfHsplineCurve2d. The pfType* returned by pfHsplineCurve2d::getClassType
is the same as the pfType* returned by invoking the virtual function
getType on any instance of class pfHsplineCurve2d. 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
Page 3
pfHsplineCurve2d(3pf) OpenGL Performer 3.2.2 libpf C++ Reference Pages
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.
pfHsplineCurve2d::pfHsplineCurve2d() creates an instance of an
pfHsplineCurve2d. Creates an instance of pfHsplineCurve2d. The inherited
member beginT is set to tBegin and endT set to tEnd. The default values
of beginT and endT are 0.0 and 1.0. The inherited member dt is set to
endT - beginT) * pfRep::functionTol as explained in pfCurve2d.
pfHsplineCurve2d::getKnotCount returns the number of knots.
pfHsplineCurve2d::setPoint Sets the i'th component p to be p.
pfHsplineCurve2d::setTangent Sets the i'th component of the t to be t.
pfHsplineCurve2d::setKnot Sets the i'th component of the knot to be t.
pfHsplineCurve2d::getPoint returns a pointer to the i'th component of
array p.
pfHsplineCurve2d::getTangent returns a pointer to the i'th component to
array t.
pfHsplineCurve2d::getKnot returns the i'th knot value.
pfHsplineCurve2d::evalPt Evaluates the curve at parameter t. The
evaluated point is stored in pnt.
SEE ALSO
pfRep, pfGeode, pfCurve2d
Page 4