几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】i need to know the way on how to set up clipping region (http://www.dimcax.com/hust/showthread.php?t=16824)

yang686526 2009-05-06 03:33 PM

【转帖】i need to know the way on how to set up clipping region
 
i need to know the way on how to set up clipping region .
i need to know the way on how to set up clipping region .
i use the program of dwgdirect 1.10 at present.
i hope to update of the odgsbasevectorizeview after set up of the clipping region in a function as the exgdivectorizeview::update() of the [dd_nonlibs\exrender].
but the example file(exgdivectorizeview::update()) get to be updated with don't set up of the clipping region because this example file fix as the m_pviewportclip->set(0, 0, false, 0.0, false, 0.0);.
so i modified the above problem to the followings.
///////////////////////////////////////////////////////////////////
// test rectangular & polygonal clip boundaries.
odgepoint2darray pts;
pts.resize(2);
pts[0] = odgepoint2d(0, 0);
pts[1] = odgepoint2d(600, 800);
m_pviewportclip->set(pts, false, 0.0, false, 0.0);
///////////////////////////////////////////////////////////////////
there is error at the odgsbasevectorizeview::update(); after modification.
therefore i need to know the way on how to set up clipping region .
you'd fogotten m_pviewportclip->setdrawcontext(drawcontext());


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