| To: | info-inventor@xxxxxxxxxxx |
|---|---|
| Subject: | getClassTypeId problem... |
| From: | Jarek Rzepecki <jarekr@xxxxxxxx> |
| Date: | Mon, 17 Sep 2001 16:12:53 -0500 (CDT) |
| Sender: | owner-inventor@xxxxxxxxxxx |
Hi!
I have a problem with getClassTypeId. Below is a piece of code. It
compiles well but it doesn't work well...
void create_trace(SoSeparator* OIVparent){
SoNode* tmp_sep;
int num_child = OIVparent->getNumChildren();
for (int i = 0; i<num_child; i++){
tmp_sep = OIVparent->getChild(i);
if (tmp_sep->getClassTypeId() == SoCube::getClassTypeId()){
//do something...
}
}
}
num_child is ok, but the tmp_sep = OIVparent->getChild(i) act strange (i
think...) looking in debug tmp_sep is always "incomplate type" , what is
more the compareation in "if" line is always false.
What am i doeing wrong?
In general i would like to extract information about all children (are
thay separator, shape , transformation etc...) i need it to build another
geometry tree.
Thank you.
- jarek
Jaroslaw Rzepecki
Fermilab
23 Neuqua
P O Box 500
Batavia, IL 60510
USA
BD/Beam Physics Dept.
630-840-4309 (office)
630-840-4239 (home)
e-mail: jarekr@xxxxxxxx
or : jarekr@xxxxxxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: line, Mike Heck |
|---|---|
| Next by Date: | RE: getClassTypeId problem..., Page, Eric |
| Previous by Thread: | line, Jarek Rzepecki |
| Next by Thread: | Re: getClassTypeId problem..., Doug Dempster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |