几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】odgibasevectorizerdraw9const odgidrawable pdrawable0 (http://www.dimcax.com/hust/showthread.php?t=17688)

yang686526 2009-05-06 08:41 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 06:18 AM.