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