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

question about vectorization process
question about vectorization process
hi,
could you tell me how the odgsopenglvectorizedevice::update(odgsdcrect* pupdatedrect) method work ?
which odgsbasevectorizeview's method are called ??
when i want to do it myself i call :
beginviewvectorization
loadviewport
update (in this one i call updateextents)
endviewvectorization
but it doesn't work fine when the style is conceptual...
best regards..
visual style support is not implemented.
it is planned for 2.6 release.
vladimir
thank you for your reply...
i have my own renderer (using the dwgdirect vectorization framework).
could you tell me how odgsbasevectorizeview's method are called in vectorization process ???
i just want know what are the method and in which order...
best regards...
currently device update is split in 2 parts:
updategeometry() and updatescreen().
the first function updates geometry cache (if necessary).
the second one updates screen, using the cache.
updategeometry() checks if view needs updating, then calls view update sequence:
// to take into account frozen layers
pview->propagatelayerschanges();
if(pview->isvalid())
continue;
pview->propagateinvalidvpflag();
pview->beginviewvectorization();
// invalidate cache if view properties has changed
pview->updateviewprops();
// update cache
pview->updateextents(true);
pview->endviewvectorization();
updatescreen() calls another sequence:
pview->beginviewvectorization();
pview->loadviewport();
// outputs geometry cache to the screen
pview->display(false);
pview->drawviewportframe();
pview->endviewvectorization();
vladimir
thank you very much for your answer vladimir.
best regards.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)