Dirk Reiners wrote: > Hi Allen, > >Allen Bierbaum wrote: > > >>How would I go through the list and find the ones I want? For example >>how would I know which attachment container is "MyEditorStuff" if there >>are possibly other attachment containers off the root of the scene? >> >> > >Even after removing the group id you would still attach container with >their FCType id, so if you have a MyEditorStuff class you would get >direct access to it. > > > >>The way you described GroupIds before, wouldn't this restrict the >>attachment containers to only allow one attachment of a given FCType? >> >> > >No, that's what the other UInt16 (forgot the name) is for. That is an >additional index to allow more than one. The groupID was for allowing >derived classes to compete with base classes, which was a nice idea, but >never used so a candidate for simplification. > > > >>Yes, you are probably right. If I wanted named attachments I would need >>to add a new attachment container type that is indexed by string. After >>looking at the code for the current attachment container though I have >>to admit I don't think I am skilled enough to add this. Maybe I will >>just try to hack something for now with the current attachment >>containers. :) >> >> > > > I started looking into this and I found something a little surprising (to me at least).
AttachmentContainer::addAttachment doesn't really add, it sets (actually maps it). What I mean is that there is really no concept of a list/vector that you can add attachments to. There is only the concept of setting attachments for a specific binding point. So what I was hoping to do where I could just keep adding materials as attachments and then loop through them later won't work because there is not a way to say just add an attachment on to the end of the list. Does this sound correct? Can we start porting and creating the developer documentation to 2.0 on the wiki? This may sounds unrelated, but if I try to trace through the code and try to understand how to create a new attachment container type by hand I would really like to document this so other people can benefit from my confusion. :) -Allen >;) > > Dirk > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Opensg-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/opensg-users > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
