紧急求救:关于AcDbEntity派生类的夹点问题
我从AcDbEntity派生出一个类,返回夹点时,我返回该类内部的一些点。然后拖动的时候内部的对象是已经动了,但是有一个问题:在该实体内有多个夹点,当第一次拖动把一个物体(设为O)(一些线的组合)从一个地方(设为A)拖到另一个地方(设为B),第二次再拖动时(不管拖动哪个夹点),在拖动的过程中,B地方的O对象还在,但A的地方也会出现对象O,一旦结束拖动,A地方的O就不在了,也就是在拖动时会出现虚影,这是什么原因,应该怎么解决呢?
谢谢!!! 没人回答?
回复
贴上源程序学习一下? 请贴上来共同学习 int nIndex = indices;<BR> switch(nIndex)<BR> {<BR> case 0:<BR> {<BR> m_arGouJian2Points = OffsetPoint(m_arGouJian2Points,<BR> offset.x,offset.y,offset.z);<BR> CaculateGJ2Points();<BR> }<BR> break;<BR> case 1:<BR> {<BR> m_arGouJian1Points = OffsetPoint(m_arGouJian1Points,<BR> offset.x,offset.y,offset.z);<BR> CaculateGJ1Points();<BR> }<BR> break;<BR> case 2:<BR> {<BR> m_arDiCPMOuterPoints = OffsetPoint(m_arDiCPMOuterPoints,<BR> offset.x,offset.y,offset.z);<BR> CaculateDiCPMPoints();<BR> }<BR> break;<BR> case 3:<BR> {<BR> m_arDingCPMOuterPoints = OffsetPoint(m_arDingCPMOuterPoints,<BR> offset.x,offset.y,offset.z);<BR> CaculateDingCPMPoints();<BR> }<BR> break;;<BR> case 4:<BR> {<BR> m_arZDMOuterPoints = OffsetPoint(m_arZDMOuterPoints,<BR> offset.x,offset.y,offset.z);<BR> CaculateZDMPoints();<BR> }<BR> break;<BR> case 5:<BR> {<BR> m_arAAOuterPoints = OffsetPoint(m_arAAOuterPoints,<BR> offset.x,offset.y,offset.z);<BR> CaculateAAPoints();<BR> }<BR> break;<BR> case 6:<BR> {<BR> m_arGouJian3Points = OffsetPoint(m_arGouJian3Points,<BR> offset.x,offset.y,offset.z);<BR> CaculateGJ3Points();<BR> }<BR> break;<BR> case 7:<BR> {<BR> m_arTextPosition = OffsetPoint(m_arTextPosition,<BR> offset.x,offset.y,offset.z);<BR> }<BR> break;<BR> case 8:<BR> {<BR> m_arTextPosition = OffsetPoint(m_arTextPosition,<BR> offset.x,offset.y,offset.z);<BR> }<BR> break;<BR> case 9:<BR> {<BR> m_arTextPosition = OffsetPoint(m_arTextPosition,<BR> offset.x,offset.y,offset.z);<BR> }<BR> break;<BR> case 10:<BR> {<BR> m_arTextPosition = OffsetPoint(m_arTextPosition,<BR> offset.x,offset.y,offset.z);<BR> }<BR> break;<BR> case 11:<BR> {<BR> m_arTextPosition = OffsetPoint(m_arTextPosition,<BR> offset.x,offset.y,offset.z);<BR> }<BR> break;<BR> default:<BR> break;<BR> } 大概就是这样,这一段代码是movestrechpointsat里面的不知这个问题能不能解决
页:
[1]