![]() |
【转帖】odgiextcalc
odgiextcalc
odgiextcalc hi, is there any way do ignore some kind of entities while computing extents using odgiextcalc? i've tried to override dodraw but it's not called. cextentscalc derives from odgiextcalc. code: odrxobjectimpl<cextentscalc> extcalc; extcalc.setcontext(pdwgcontext); extcalc.draw(pspace); extcalc.getextents(extents); tia regards, micha? ?liwka quote: originally posted by sliwka hi, is there any way do ignore some kind of entities while computing extents using odgiextcalc? i've tried to override dodraw but it's not called. cextentscalc derives from odgiextcalc. code: odrxobjectimpl<cextentscalc> extcalc; extcalc.setcontext(pdwgcontext); extcalc.draw(pspace); extcalc.getextents(extents); tia regards, michal sliwka this message does not appear in my forum search result, so i post it again. regards, michal sliwka this is implementation of odgiextcalc::draw code: void odgiextcalc::draw(const odgidrawable* pdrawable) { m_bboxset = false; pdrawable->setattributes(this); pdrawable->worlddraw(this); m_bboxset = false; } it call worlddraw. worlddraw will call ::draw() inside and .... so it seems that you should add check inside void odgiextcalc::draw(const odgidrawable* pdrawable), not inside dodraw. |
所有的时间均为北京时间。 现在的时间是 10:23 PM. |