查看单个帖子
旧 2009-05-07, 02:58 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】rendering One Entity To A Target9device0

rendering one entity to a target(device)
rendering one entity to a target(device)
as i understand the api, it is designed to render the whole drawing in one operation.
if you have changed one object and only want to render that entity without rendering the whole drawing, what is the the proper way to do that?
-rune jorgensen
www.dds.no
hi,
the proper way to do that is to implement odgsmodel for the device you are using. it is not enough to repaint an entity being modified because of at least 2 reasons: it will send notification to other objects (reactors) so that may modify them too; and even though there were not such depended entities, the entity have a good chance to overlap or to be overlapped by other entities before or/and after it is modified so those entities must be repainted also.
we are planning to implement odgsmodel for supported targets (gdi,opengl) in the future.
now we just have code in odamfcapp example that draws dragged entities (see dwgviewer.cpp : void cdwgviewer:verlapdraw()).
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)