Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!crdgw1!sunstar!taylorp From: taylorp@sunstar.crd.ge.com (Patrick D. Taylor) Newsgroups: comp.windows.interviews Subject: components of World Message-ID: <19378@crdgw1.crd.ge.com> Date: 8 May 91 18:23:19 GMT Sender: news@crdgw1.crd.ge.com Reply-To: taylorp@sunstar.crd.ge.com (Patrick D. Taylor) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 29 I have a few questions about Scene and World in InterViews 2.6. I want to get a list of components which have been inserted into the world. According to the man page for Interactor, the GetComponents() member function should return a list of the interactor's components if the interactor is a Scene. Scene does not implement GetComponents(), nor does World, which is a Scene. So World::GetComponents() is actually Interactor::GetComponents(), which does nothing. How do I get the components of the World scene? Also, the man page for Scene specifies that "when a scene is deleted, it should delete all its component interactors. The World scene does not do this. Why not? What I want to be able to do is insert an arbitrary number of interactors into a world. Each interactor has a quit button which removes it from the world. When all of the interactors have been removed, the program should terminate. Thus, my main event loop would be something like: do { Read(event); event.target->Handle(event); n = number of components left in world; } while (n > 0); Any suggestions? --- Pat Taylor (taylorp@crd.ge.com)