几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】newbie zooming to world coordinates (http://www.dimcax.com/hust/showthread.php?t=17326)

yang686526 2009-05-06 06:30 PM

【转帖】newbie zooming to world coordinates
 
newbie : zooming to world coordinates
newbie : zooming to world coordinates
all
i have recently downloaded the dd 1.13 and i am starting to use. i used the opendwg libraries before and wrote most of the viewing code myself. using the latest version seem great, but i need some additional information.
i would like to implement a zoomtorectangle function that will take world coordinates and then zoom to those. i have managed to implemement a version of the function getworldpoint as part of the odmfcapp sample to convert screen coordinates to world coordinates. the zoom function in the sample takes two screen points and the zooms to that. what i need is a function that will take world coordinates and then zoom to that. i am sure it is available, but just cannot find it.
regards
anton heymann
please ignore this post. i was being thick. there are a number of methods possible to achieve what i want e.g. setview etc.
thanks


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