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

yang686526 2009-05-06 08:54 PM

【转帖】odgsbasevectorizeviewupdate90 and modelspace
 
odgsbasevectorizeview::update() and modelspace
odgsbasevectorizeview::update() and modelspace
hi,
i'm in cworlddraw::update() and cworlddraw derives from odgsbasevectorizeview. how can i get information if it's modelspace drawing or paperspace or viewport embeded in paperspace?
i wanted to disable clipping when drawing anything but viewport embeded in paperspace. now (as in odvectoriseex) while drawing modelspace it is clipped to *active view...
tia
best regards,
michał Śliwka
last edited by sliwka; 29th december 2005 at 03:55 amfff">.

quote:
how can i get information if it's modelspace drawing or paperspace or viewport embeded in paperspace?
there is no such way.
quote:
i wanted to disable clipping when drawing anything but viewport embeded in paperspace. now (as in odvectoriseex) while drawing modelspace it is clipped to *active view...
1) remove lines
code:
pushclipboundary(&m_eyeclip);
popclipboundary();
from your update function. these lines exists in exsimpleview::update(). then you can apply viewport-clipping in some device-dependent manner (stencil, etc).
2) if you want to disable applying the xclips also, you should override odgsbasevectorizeview::pushclipboundary and odgsbasevectorizeview::popclipboundary by function with empty body.
sincerely yours,
george udov
last edited by george udov; 29th december 2005 at 07:12 amfff">.


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