查看单个帖子
旧 2009-05-06, 08:41 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odgibasevectorizerdraw9const odgidrawable pdrawable0

odgibasevectorizer::draw(const odgidrawable* pdrawable)
odgibasevectorizer::draw(const odgidrawable* pdrawable)
we have a class odmyview which inherits from od2dexportview which inherits from odgibasevectorizer
during the call to odmyview::draw(const odgidrawable* pdrawable)
we encounter oddbdimension using
pdrawable->iskindof( oddbdimension::desc() )
oddbdimension is kdrawableiscompoundobject
or
odgidrawable::setattributesflags::kdrawableisdimen sion
which includes kdrawableiscompoundobject
kdrawableisdimension = (kdrawableisanentity + kdrawableiscompoundobject + 128)
the subsequent call to odmyview::draw(const odgidrawable* pdrawable) processes the entities (oddbentity) that are part of this oddbdimension.
how can we determind that the subsequent entities are part of this oddbdimension using pdrawable?
or
is there any other way we can do this?
thanks,
codey

e.g. this manner:
code:
bool bdimensionchild(false);
if(currentdrawabledesc() && currentdrawabledesc()->pparent)
bdimensionchild = currentdrawabledesc()->pparent->ndrawableflags & kdrawableisdimension;
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)