Gan Wang (rock.csd.sgi.com!sgi.sgi.com!uunet.uu.net!ds9!wahoo!gan)
Fri, 30 May 1997 16:12:56 -0400
It seems you want instead
currentdcsNode->setTravMask(PFTRAV_APP,
NON_ZERO_MASK, // != 0x0
PFTRAV_SELF|PFTRAV_DESCEND,
PF_SET);
as said in manpage: "If the bitwise AND of the node's mask for that
traversal type and the mask for the current traversal is zero, the
traversal is disabled at that node..."
Hope it helps.
Gan
> currentdcsNode->setTravFuncs(PFTRAV_APP,(pfNodeTravFuncType)
> this->_call, NULL);
> currentdcsNode->setTravData(PFTRAV_APP,stuff);
>
> int people::_call(pfTraverser *trav, dcsData *doit)
> {
> doit->walk(trav);
> return PFTRAV_PRUNE; // PFTRAV_CONT, PFTRAV_PRUNE, PFTRAV_TERM
> }
>
> This code works BUT only for the first DCS in the model... It apears
> that the app traversal stops at the first call the _call.....
>
> I have tried changing the mask and the return...
>
> maby I am missing somthing but I think that you can have a call back for
> every dcs in a model??????????????? Now why wont it work?????????
>
> Thanks to all
> Garrett
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--Gan Wang
Cambridge Research Associates Voice: 703-790-0505 ext.7210 1430 Spring Hill Road, Suite 200 Fax: 703-790-0370 McLean, Virginia 22102 E-mail: gan++at++cambridge.com ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com SGI DevForum 97 info: http://www.sgi.com/Forum97/
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:20 PDT