SolarSystem::drawPointer() is not the only method using the type string. The other two are SolarSystem::setSelected() and SolarSystem::selectedObjectChange(). The SolarSystem class was simply not created with multiple object types in mind.
Anyway, the simpler solution for now is to have the child classes return "Planet", as the type is used only in SolarSystem. I've committed this as trunk revision 4900: http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/4900
Where else is the getType() function significant? Scripts?
SolarSystem: :drawPointer( ) is not the only method using the type string. The other two are SolarSystem: :setSelected( ) and SolarSystem: :selectedObject Change( ). The SolarSystem class was simply not created with multiple object types in mind.
Anyway, the simpler solution for now is to have the child classes return "Planet", as the type is used only in SolarSystem. I've committed this as trunk revision 4900: bazaar. launchpad. net/~stellarium /stellarium/ trunk/revision/ 4900
http://
Where else is the getType() function significant? Scripts?