Example #1
0
 public override void CopyTo(com.epl.geometry.Geometry dst)
 {
     if (dst.GetType() != GetType())
     {
         throw new System.ArgumentException();
     }
     com.epl.geometry.Segment segDst = (com.epl.geometry.Segment)dst;
     segDst.m_description = m_description;
     segDst._resizeAttributes(m_description.GetTotalComponentCount() - 2);
     _attributeCopy(m_attributes, 0, segDst.m_attributes, 0, (m_description.GetTotalComponentCount() - 2) * 2);
     segDst.m_xStart = m_xStart;
     segDst.m_yStart = m_yStart;
     segDst.m_xEnd   = m_xEnd;
     segDst.m_yEnd   = m_yEnd;
     dst._touch();
     _copyToImpl(segDst);
 }
Example #2
0
 public override void CopyTo(com.epl.geometry.Geometry dst)
 {
     if (dst.GetType() != GetType())
     {
         throw new System.ArgumentException();
     }
     com.epl.geometry.Envelope envDst = (com.epl.geometry.Envelope)dst;
     dst._touch();
     envDst.m_description = m_description;
     envDst.m_envelope.SetCoords(m_envelope);
     envDst.m_attributes = null;
     if (m_attributes != null)
     {
         envDst._ensureAttributes();
         System.Array.Copy(m_attributes, 0, envDst.m_attributes, 0, (m_description.GetTotalComponentCount() - 2) * 2);
     }
 }
Example #3
0
 public override void CopyTo(com.epl.geometry.Geometry dst)
 {
     if (dst.GetType() != com.epl.geometry.Geometry.Type.Point)
     {
         throw new System.ArgumentException();
     }
     com.epl.geometry.Point pointDst = (com.epl.geometry.Point)dst;
     dst._touch();
     if (m_attributes == null)
     {
         pointDst.SetEmpty();
         pointDst.m_attributes = null;
         pointDst.AssignVertexDescription(m_description);
     }
     else
     {
         pointDst.AssignVertexDescription(m_description);
         pointDst.ResizeAttributes(m_description.GetTotalComponentCount());
         AttributeCopy(m_attributes, pointDst.m_attributes, m_description.GetTotalComponentCount());
     }
 }