![]() |
【转帖】selecting Items
selecting items
selecting items hi! i抳e been looking into the issue of selecting items by clicking on them or by using a window to mark a number of items on the screen. looking thru the forum i抳e come up with below link dealing with the problem: how do i extract entities? hi! again as i mentioned before i've looked at the sample t=4244 and it looks as if it might be something i can use. i will make an attempt to clarify my self a little bit. what i need is to be able to use a pick-tool or a window to select entities. that is exactly what the mentioned sample does as far as i understand. i only want to ask a question before i get too far on below path. i just want to make sure that below aren抰 covered somewhere else already. ?get entities using a window or pick-tool ?put them in an temporary array ( like the one from sample: 揙ddbobjectidarray& sset?) ?make a copy of the array ?iterate through the array copy changing all line types to for example 揹ash line?br /> ?write them back to the database ?update the entire thing. above might seem a bit clumsy but i抳e been all over the place, i think, without being able to find anything better so far. regards hi, for entities highlighting (see odamfcapp for example) we typically use following sequence, for avoid database modifycation: - iterate through entities and call oddbentity->highlight(true); method. - update screen. , but entities will be highlighted only if gsmodel cache is enabled, because this method calls gsmodel highlight method directly. the highlighting behaviour is implemented on rendering device side, so you can modify it only inside device sources. lines will be highlighted as dashed lines, triangles will be highlighted as checker pattern (wingdi, opengl and windirectx devices). thanks! i've got it running now and it's exactly as you said. regards |
所有的时间均为北京时间。 现在的时间是 06:48 AM. |