查看单个帖子
旧 2009-05-07, 06:32 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】viewport Clipping

viewport clipping
viewport clipping
i use dd 1.11 for creating our own rendering application with own vectorizedevice and vectorizeview.
for viewport clip i use following code that i find in exgsgdivectorizedevice.cpp
code:
bool bclipped = false;
if(m_nrcpoints.size())
{
bclipped = true;
device()->pushviewportclip(m_nrcpoints.getptr(), m_nrccounts.getptr(), m_nrccounts.size());
}
else if(device()->numviews()>1)
{
bclipped = true;
odgsdcpoint dcpoint1, dcpoint2;
screenrect(dcpoint1, dcpoint2);
device()->pushviewportclip(dcpoint1, dcpoint2);
}
odgsbasevectorizeview::update();
if(bclipped)
{
device()->popviewportclip();
}
but autocad don't use clipping only if object is on frozen layer, if layer is switched of just clipping border doesn't display. dwgdirect doesn't use clipping if object is on frozen or switched off layer (see attached files).
can i obtain same clipping boundary as autocad used?
what the purpose of member variable m_nrcpoints?
attached images
this is dd bug to be fixed.
sergey slezkin
do you plan include this fix in 1.11 update?
best regards,
ivan obraztsov
and what about 1.14.02 ?
it seem still to not work, but maybe i'm doing sth wrong in my code?
quote:
originally posted by michał krzesiak
and what about 1.14.02 ?
it seem still to not work, but maybe i'm doing sth wrong in my code?
in 1.14.1 it work correctly.
best regards,
ivan obraztsov
this was fixed in 1.11.1 and seems to work in 1.14.02
(in odamfcapp)
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)