几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】preview a dwg file with dwgdirec (http://www.dimcax.com/hust/showthread.php?t=17961)

yang686526 2009-05-06 10:22 PM

【转帖】preview a dwg file with dwgdirec
 
preview a dwg file with dwgdirect
preview a dwg file with dwgdirect
hi,
in the mfc demo application provided with the dwgdirect library, a dwg file is previwed using odgsdevice class and opengl - but the drawing regen occurs during onpaint processing - which actually makes regen on each window resize or show.
is there a way to make a real zoom or pan using this technology - by using some dwgdirect stuff or some other opengl technology? i need to generate the drawing list and after that to has it as a display list which takes care in redrawing viewes etc (actually as in autocad)
thnaks in advance for any help.
regards
chudo
regards
chudomir
best regards
chudomir

current odamfcapp viewing functionality was intended primarily for debug purposes. dwgdirect rendering functionality is under development now. surely some kind of graphic cash should be used instead of full regen at each onpaint. but it would be easier to develop a viewer a bit later.
sergey slezkin


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