ArcGISEngine实现要素镜像复制
在ArcGISEngine中实现目标要素镜像复制主要用到下面几个接口
<!--[if !supportLists]-->Ø <!--[endif]-->ITransformation
<!--[if !supportLists]-->Ø <!--[endif]-->IAffineTransformation2D
<!--[if !supportLists]-->Ø <!--[endif]-->ITransform2D
具体功能实现的代码如下
ILine nLine = new LineClass();//镜像轴线
nLine.PutCoords(pPoint1, pPoint2);
ITransformation nTransformation = new AffineTransformation2DClass();
IAffineTransformation2D nAffineTransformation2D = nTransformation as IAffineTransformation2D;
nAffineTransformation2D.DefineReflection(nLine);
ITransform2D nTransform2D = pPolyline as ITransform2D;//镜像目标
nTransform2D.Transform(esriTransformDirection.esriTransformForward, nTransformation);
IPolyline pPolyline1 = nTransform2D as IPolyline;//镜像所得
浙公网安备 33010602011771号