几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how can i move position (http://www.dimcax.com/hust/showthread.php?t=16549)

yang686526 2009-05-05 12:18 PM

【转帖】how can i move position
 
how can i move position?
how can i move position?
using pview->zoom(1.2);
i can zoom image, now..
how can i move position ?
i am testing whith singledoc example project file using vc++ 6.0

hi there,
you can use the dolly() function for moving the drawings..
its in the sample appln..
------------------
regards,
rajesh parameswaran
dolly..
have searched dwgdirect reference chm file, can't find references.
just..
void odgsbasevectorizeview::dolly(double x, double y, double z)
it's all.
may i have some advice how that function works especialy about parameters. ^^
it seems x, y is not mouse(client rect) position, what's that ?
thank you..

quote:
originally posted by indwrld
have searched dwgdirect reference chm file, can't find references.
just..
void odgsbasevectorizeview::dolly(double x, double y, double z)
it's all.
may i have some advice how that function works especialy about parameters. ^^
it seems x, y is not mouse(client rect) position, what's that ?
thank you..
hi there
here x, y, z are coordinates , with respect to the drawing. and not the screen coordinates, you should change the screen coordinates to the drawing coordinates.. with odgevector3d::transformby for changing screen to drawing coordinates and then se odgsview::dolly() for moving the drawings
hope this will help...
have u looked in to the odamfcapp sample..? it have all the answers for your query..
-----------
regards,
rajesh parameswaran


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