inconsistent type info

New Message Reply Date view Thread view Subject view Author view

Tammo Spalink (tammo+++at++CMU.EDU)
Mon, 26 Jun 1995 16:00:39 -0400 (EDT)


I am trying to do simple type dependent scene graph traversal, and am
getting some wierd results using the following code fragment:

    cout << child->getTypeName () << " - ";
    pfType *childClassType = child->getClassType ();
    cout << childClassType->getName () << "\n";
    cout << group->getTypeName () << " - ";
    pfType *groupClassType = group->getClassType ();
    cout << groupClassType->getName () << "\n";

output:
    pfSCS - pfNode
    pfGroup - pfGroup

Where the variable 'child' is a child of 'group' in the scene graph. I
am trying to use the pfType class to do a conditional traversal -- I do
not recurse on an object that cannot have children...

Is this output not inconsistent? Why is a pfSCS returning name == pfNode ??

If not could someone let me know how I am supposed to be doing this?

Thanks,

    Tammo


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:37 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.