查看单个帖子
旧 2009-05-06, 08:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:ushclipboundary and odgsbasevectorizeview:opclipboundary by function with empty body.
sincerely yours,
george udov
last edited by george udov; 29th december 2005 at 07:12 amfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)