pfCurve2d man page on IRIX

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



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

NAME
     pfCurve2d - Abstract base class for all continuous 2D parametric curves.

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

     static pfType*   pfCurve2d::getClassType(void);

     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)

PARENT CLASS FUNCTIONS
     The OpenGL Performer class pfCurve2d is derived from the parent class
     pfRep, so each of these member functions of class pfRep are also directly
     usable with objects of class pfCurve2d.  This is also true for ancestor
     classes of class pfRep.

     void   pfRep::setOrigin(const pfVec3 *origin);

									Page 1

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

     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 pfCurve2d 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 pfCurve2d 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;

     Since the class pfNode is itself derived from the parent class pfObject,
     objects of class pfCurve2d can also be used with these functions designed
     for objects of class pfObject.

									Page 2

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

     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 pfCurve2d 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();

DESCRIPTION
     An pfCurve2d abstracts a general two dimensional parametric curve,
     parameterized by t, where t has a domain of [endT..beginT].  Each curve
     contains a parametric range and a pure virtual function, evalPt, to
     evaluate the curve.  The pfCurve2d class also contains virtual functions
     for evaluating the tangent, curvature, and normal as a function of t.  If
     a derived class does not provide any one of these higher-order
     evaluators, the pfCurve2d classes will approximate these values using
     central differences. The central difference is taken about a small delta
     in u, given by (endT - beginT) * pfRep::functionTol (see pfRep).

     Curves can be open, closed or periodic. In an open curve, the end point
     2-D values are not coincident. In a closed curve, the end points are
     coincident in position. In a periodic curve, the endpoints are coincident
     in position and in tangent, and the parameter t is assumed to wrap
     toroidially. Coincidence is defined as the absolute value of the
     difference of the two values, such that this quantity is less than that
     of getClosedTol.  The curve's end point disposition may be overriden via

									Page 3

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

     the method-ref setClosed member function.

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

     pfCurve2d::pfCurve2d() creates an instance of an pfCurve2d. By default
     the parametric domain is defined as [0..1].

     pfCurve2d::pfCurve2d(pfReal beginT,pfReal endT) creates an instance of a
     pfCurve2d and sets the parametric domain to [beginT, endT].

     pfCurve2d::setBeginT Sets the beginning parametric t value. This function
     has the side effect of evaluating the curve at this value and caching the
     result in the class's state.

     pfCurve2d::setEndT Sets the ending parametric t value. This function has
     the side effect of evaluating the curve at this value and caching the
     result in the class's state.

     pfCurve2d::getBeginT Returns the beginning value of the parametric
     domain.

     pfCurve2d::getEndT Returns the ending value of the parametric domain.

     pfCurve2d::getBeginPt Returns the curve's 2-D value of the beginning
     value of the parametric domain.

     pfCurve2d::getEndPt Returns the curve's 2-D value of the ending value of
     the parametric domain.

     pfCurve2d::getBeginTan Returns the curve's 2-D tangent value of the
     beginning value of the parametric domain.

     pfCurve2d::getEndTan Returns the curve's 2-D tangent value of the ending
     value of the parametric domain.

     pfCurve2d::setClosed Overrides the default value of the curve's end point
     disposition as described in the CLASS DESCRIPTION. Once, overriden the
     curve's end point disposition is not automatically determined.

     pfCurve2d::getClosed Returns the current value of the curve's end point
     disposition.

     pfCurve2d::setClosedTol Sets the tolerance used to determine when a curve
     is closed. By default, this value is set by pfRep::subtractiveTol.

									Page 4

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

     pfCurve2d::getClosedTol Returns the tolerance used to determine when a
     curve is closed.  By default this value is set pfRep::subtractiveTol.

     pfCurve2d::evalPt Evaluates the curve at parametric value t, placing the
     returned value in pnt.  Note that this function is a pure virtual
     function and must be defined by at least one derived class.

     pfCurve2d::evalTan Evaluates the curve's tangent at parametric value t,
     placing the returned value in tan. If a derived class does not define a
     tangent function, the one in this class is invoked. It will compute the
     tangent using central differences (or the analytic tangent of a quadratic
     fit) and is given by the equation:

     tan = (f(t + dt) - f(t - dt)) / (2.0 * dt)

     where f is the point-valued curve function.

     pfCurve2d::evalNorm Evaluates the curve's principal normal at parametric
     value t, placing the returned value in tan. If a derived class does not
     define a normal function, the one in this class is invoked. It computes
     the tangent using central differences (or the analytic normal of a
     quadratic fit of the tangents) and is given by the equation:

     tan = (f'(t + dt) - f'(t - dt)) / (2.0 * dt)

     where f' is the vector valued tangent function.

     pfCurve2d::evalCurv Evaluates the curve's curvature at parametric value
     t, placing the returned value in curv. If a derived class does not define
     a curvature function, the one in this class is invoked. It computes the
     curvature by crossing the curves tangent and principal normal to produce
     the binormal. The curvature is given by:

     curv = || binormal || / (||tan|| * ||tan|| * ||tan||)

     pfCurve2d::eval(pfReal t,pfVec2 &pnt,pfVec2 &tan,pfReal &curv,pfVec2
     &norm) A convenience function that evaluates the position, tangent,
     curvature and normal at the parameter t.  These values are computed in
     the manner described in the individual evaluation routines: evalPt,
     evalTan, evalNorm, and evalCurv.

SEE ALSO
     pfRep, pfGeode

									Page 5

[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