高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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());
|