Hi,
I'm trying to create something called a scene graph, where I have multiple nodes in a tree like structure. Every node is a different class (for the most part) but they all inherit from the scene graph node class. Now, putting the objects
into the graph is easy - since they are all inheriting from the same root type. The problem, my problem, is that if I want to get data OUT of the scene graph, or look at one node for instance, I can only look at the base class,
not the class that inherits from the base class. Does anybody have any suggestions for me?
I also tried writing a function that registered the nodes with a
string in a hashmap, but I ran into the same problem. When I tried to pull nodes out of the hashmap, they all had to be the same type or inherit from the same type
so I lost the subclass type info.
Thanks
Ted