pfPieceWisePolyCurve2d man page on IRIX

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



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

NAME
     pfPieceWisePolyCurve2d - A 2D piecewise polynomial curve

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

     static pfType*   pfPieceWisePolyCurve2d::getClassType(void);

		      pfPieceWisePolyCurve2d::pfPieceWisePolyCurve2d();

     void	      pfPieceWisePolyCurve2d::setControlHull(int piece, int i,
			const pfVec2& p);

     pfVec2&	      pfPieceWisePolyCurve2d::getControlHull(int piece,
			int i);

     void	      pfPieceWisePolyCurve2d::setLimitParas(int piece,
			pfReal w1, pfReal w2);

     void	      pfPieceWisePolyCurve2d::setReverse(int reverse);

     pfVec2&	      pfPieceWisePolyCurve2d::getLimitParas(int piece);

     int	      pfPieceWisePolyCurve2d::getReverse();

     int	      pfPieceWisePolyCurve2d::getPatchCount();

     int	      pfPieceWisePolyCurve2d::getOrder(int piece);

     virtual void     pfPieceWisePolyCurve2d::evalPt(pfReal t, pfVec2 &pnt);

PARENT CLASS FUNCTIONS
     The OpenGL Performer class pfPieceWisePolyCurve2d is derived from the
     parent class pfCurve2d, so each of these member functions of class
     pfCurve2d are also directly usable with objects of class
     pfPieceWisePolyCurve2d.  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;

									Page 1

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

     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)

     Since the class pfCurve2d is itself derived from the parent class pfRep,
     objects of class pfPieceWisePolyCurve2d 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 pfPieceWisePolyCurve2d 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 pfPieceWisePolyCurve2d 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);

									Page 2

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

     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 pfPieceWisePolyCurve2d 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 pfPieceWisePolyCurve2d 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
     A piecewise polynomial curve consists of an array of polynomial curves.
     Each polynomial curve is a polynomial mapping from t to UV plane, where
     the domain is a subinterval of [0,1].  The polynomial coefficients are
     set by ::setControlHull.

									Page 3

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

     Notice that an pfPieceWisePolyCurve2d is a subclass of pfCurve2d. The
     domain of a pfPieceWisePolyCurve2d is defined to be [0, n] where n is the
     number of pieces.

     If reverse is 0, then for any given t in [0, n], its corresponding uv is
     evaluated in the following way:  The index of the piece that corresponds
     to t is floor(t), and the polynomial of that piece is evaluated at w1 +
     (t-floor(t)) * (w2-w1)    to get the (u,v), where [w1, w2] is the domain
     interval (set by ::setLimitParas) of this piece.

     If reverse is 1, then for any given t in [0,n], we first transform t into
     n-t, then perform the normal evaluation (at n-t) as described in the
     previous paragraph.

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

     pfPieceWisePolyCurve2d::pfPieceWisePolyCurve2d() creates an instance of
     an pfPieceWisePolyCurve2d. Creates an instance of pfPieceWisePolyCurve2d;
     no valid data is set.

     pfPieceWisePolyCurve2d::setControlHull sets the i'th coefficient of the
     piece polynomial to p. piece is clamped if it is greater than the number
     of pieces.

     pfPieceWisePolyCurve2d::getControlHull returns the i'th coefficient of
     the piece polynomial. No checks are made to see if piece is in the valid
     range.

     pfPieceWisePolyCurve2d::setLimitParas sets the intervals of the
     polynomial pieces in the t domain, ie. values of w1 and w2 as explained
     in the class description.

     pfPieceWisePolyCurve2d::setReverse sets the reverse value to reverse.
     _reverse=1 transforms t to n-t.

     pfPieceWisePolyCurve2d::getLimitParas gets the value of the intervals of
     the polynomial pieces in the t domain, ie. values of w1 and w2 as
     explained above.

     pfPieceWsePolyCurve2d::getReverse gets the value of the reverse.

     pfPieceWisePolyCurve2d::getPatchCount returns the number of polynomial
     pieces in the curve.

									Page 4

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

     pfPieceWisePolyCurve2d::getOrder returns the order of t in the piece
     polynomial.

     pfPieceWisePolyCurve2d::evalPt evaluatges the curve at point t and
     returns the UV result in pnt.

SEE ALSO
     pfRep, pfGeode, pfCurve2d

									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