예제 #1
0
 public TapeAttribute(NsNode parent, string label, IList<PointF> points, int plyID, PolylineAttribute strip)
 {
     m_parent = parent;
     m_label = label;
     if (points != null)
         m_points = new List<PointF>(points);
                 else
         m_points = new List<PointF>();
     m_plyid = plyID;
     m_strip = strip.CopyTo(null) as PolylineAttribute;
 }
예제 #2
0
 int ReadTriStrip(System.Xml.XmlNode xml)
 {
     XmlNode poly = null;
     foreach (XmlNode n in xml)
         if (n.Name == (new PolylineAttribute()).Type)
         {
             poly = n;
             break;
         }
     //use a polyline attribute to do the serialization
     m_strip = new PolylineAttribute(null, poly);
     m_strip.Scale(1000);
     return m_strip.Count;
 }