几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】why Did Odgsviewselect Change In 1.14.01 (http://www.dimcax.com/hust/showthread.php?t=19130)

yang686526 2009-05-07 07:08 PM

【转帖】why Did Odgsviewselect Change In 1.14.01
 
why did odgsview::select change in 1.14.01 ?
why did odgsview::select change in 1.14.01 ?
function odgsview::select change in 1.14.01, x-coordinates are reversed.
that wasn't very easy to find why our code didn't work with 1.14.
why did you do that ?

odgsview::select behaviour was changed a bit for rectangular selection countours.
if x2 > x1, inside-only select is performed. only drawables, that are completely inside selection countour, are selected.
if x1 > x2, regular select is performed. drawables, that are even partially inside selection countour, are selected.
btw, inside-only select contains a problem in 1.14.01 (in 1.14.02 it won't contain any problems), so if you're using 1.14.01, i recommend you to add lines like these to your code (these lines exists in editorobject.cpp, but they're commented out)
code:
// currently (v 1.13.0) inside-only-select is not fully supported
// so make rect to specify crossing-select...
if(rect.left < rect.right)
std::swap(rect.left, rect.right);
sincerely yours,
george udov


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