高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】selecting Objects
selecting objects?
selecting objects?
what is the correct procedure for displaying entities as "selected"?
atm i have a selection reactor function which gets called for every selected entity:
void selected(const odgsdrawabledesc& drawabledesc)
{
oddbobjectid id(drawabledesc.persistid);
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
trace2("[%s]:<%s>\n", id.gethandle().ascii().c_str(), pent->isa()->name());
pent->setcolorindex(5);
}
however, how do i mark these entities so that they are rendered as "selected"?
thanks
james
currently highlighting functionality is not implemented. it's one of our priorities after cleaning up ac2004 support.
sergey slezkin
|