From: Chris Scharver (scharver++at++evl.uic.edu)
Date: 02/21/2000 14:31:30
Hi Performers,
I'm having some trouble trying to use some Performer type checking.
I have made a networked pfDCS class called pfNetDCS--a bit of a pain
since none of the functions in pfDCS are virtual, but that's another
matter. Anyhow, I have a node obtained through intersection tests.
I need to cast it as a pfNetDCS if it's of that type, but for some
reason the test fails.
if (item->isOfType( pfNetDCS::getClassType ))
{
((pfNetDCS *) item)->setMat( newMatrix );
}
else
{
cout << "It's just a " << item->getClassName() << endl;
}
When this check runs during execution, I get the line "It's just a
NetDCS". Well, that's obviously what I expected it to be, so why is
the correct class name being returned but isOfType is failing its
check? Any idea what I'm not doing correctly?
Thanks,
Chris
__________________________________________________________________________
Chris Scharver EECS Graduate Student
Electronic Visualization Laboratory EVL Phone: 312-996-3002
The University of Illinois at Chicago EVL FAX: 312-413-7585
1998-1999 UIC Men's Swimming and Diving
This archive was generated by hypermail 2b29 : Mon Feb 21 2000 - 14:31:43 PST