ArcGIS Engine实现要素镜像复制

0
分享 2012-11-19
在ArcGISEngine中实现目标要素镜像复制主要用到下面几个接口
<!--[if !supportLists]-->&Oslash;<!--[endif]-->ITransformation
<!--[if !supportLists]-->&Oslash;<!--[endif]-->IAffineTransformation2D
<!--[if !supportLists]-->&Oslash;<!--[endif]-->ITransform2D
具体功能实现的代码如下
ILinenLine = newLineClass();//镜像轴线
nLine.PutCoords(pPoint1, pPoint2);
ITransformation nTransformation = newAffineTransformation2DClass();
IAffineTransformation2D nAffineTransformation2D = nTransformation asIAffineTransformation2D;
nAffineTransformation2D.DefineReflection(nLine);
ITransform2D nTransform2D = pPolyline asITransform2D;//镜像目标
nTransform2D.Transform(esriTransformDirection.esriTransformForward, nTransformation);
IPolylinepPolyline1 = nTransform2D asIPolyline;//镜像所得
文章来源:http://blog.csdn.net/sydbc/article/details/17166703

0 个评论

要回复文章请先登录注册