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

pline and odgimetafilerimpl:lineproc
pline and odgimetafilerimpl:lineproc
hi,
here is my problem:
currently odgimetafilerimpl:lineproc fff">is commented out in gimetafiler.cppfff">, and i'm trying to implement like this:
code:
void odgimetafilerimpl:lineproc(const odgipolyline& lwbuf,
const odgematrix3d* pxform,
oduint32 fromindex,
oduint32 numsegs)
{
recpline* ppline;
add(ppline = new recpline);
ppline->plwbuf= odgipolyline::cast(&lwbuf)->clone();
ppline->pxform = pxform;
ppline->fromindex = fromindex;
ppline->numsegs = numsegs ;
}
the reason i'm doing so is that we're having problem with displaying plinefff"> when gsmodelfff"> is turned on. the arc is not drawn smooth when zoom in. the vector caching for plinefff"> is not the same as for circulararcfff"> or circlefff">. i'm trying to do the same thing for plinefff"> here. the above code seems work for me, but is this the right approach? should i do something differently? why was odgimetafilerimpl:lineproc fff"> commented out?
i appreciate any answers. thanks.
angela
hi,
your code seems fine.
we commented it out to make cache redrawing faster - to do not process so complex primitive as pline every time.
thank you.
angela
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)