几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】rendering One Entity To A Target9device0 (http://www.dimcax.com/hust/showthread.php?t=18423)

yang686526 2009-05-07 02:58 PM

【转帖】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::overlapdraw()).


所有的时间均为北京时间。 现在的时间是 07:39 AM.