Hi!
i'm trying to write a function which stores all nodenames of my loaded
VRML-Model in an array. For each name i want to assign a KEY/ID so that
i can access a specific node with it.
For example:
I have my wooden puppet and want to tell every joint on it how much to
rotate in x,y and z direction. With an ID i can easily access a node and
determine the x,y,z values.
At the moment this function
>Action::ResultE enter(NodePtr& node)
>{
> if (getName(node))
> {
> cout << getName(node) << endl;
> }
> else
> cout << "No name was set!" << endl;
>
> return Action::Continue;
>}
returns all names used in the model on my panel. I want them in an array
with a key.
Yesterday I tried the string <map> functionality described in the c++
stdlib.
Is there also a function in openSG to achieve my goal? I couldn't find any.
Regards,
Sadi
--
Sadi Tanis
University of Koblenz/Landau
Student of Computer Vision
Simmerner Straße 134
56075 Koblenz Germany
Tel. +49.261.208.98.73
E-mail [EMAIL PROTECTED]
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users