|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|