阅读:1902回复:2
求助,AE中SceneContral里怎样实现绘制Graphisc类图形,像arcscene里一样?
<P>AE中SceneContral里怎样实现绘制Graphisc类图形,像arcscene里一样?</P>
<P>在arcmap中有许多常用工具都可以直接使用,但SceneContral中可以直接使用的工具很少,怎么在SceneContral中通过鼠标绘制三维polgyon哪?请高手指点一下。</P> |
|
1楼#
发布于:2007-09-27 16:24
<P>以前写的程序,应该可以实现,好久没用了,你试试,</P>
<P>Dim myGraphics As Graphics<BR>Dim pPen As Pen</P> <P>Dim ptrHDC As IntPtr<BR>ptrHDC = New IntPtr(pSceneControl.SceneGraph.ActiveViewer.hDC)<BR>myGraphics = Graphics.FromHdc(ptrHDC)<BR>pPen = New System.Drawing.Pen(Color.Red, 2)</P> <P>myGraphics.DrawLine(pPen, CType(m_lMouseX, Integer), CType(m_lMouseY, Integer), CType(e.x, Integer), CType(e.y, Integer))</P> |
|
2楼#
发布于:2007-10-04 20:43
<P>谢谢!我试试.</P>
|
|