예제 #1
0
        public override void Write(BinaryWriter writer, IMultiPointShape <IPoint> value, WordCount origin)
        {
            Box.Write(writer, value.Box, origin);
            NumPoints.Write(writer, value.Points.Count, origin);

            for (int i = 0; i < value.Points.Count; i++)
            {
                Point(i).Write(writer, value.Points[i], origin);
            }
        }
예제 #2
0
        public override void Write(BinaryWriter writer, IMultiPointShape <IPointZ> value, WordCount origin)
        {
            Box.Write(writer, value.Box, origin);

            NumPoints.Write(writer, value.Points.Count, origin);

            for (int i = 0; i < value.Points.Count; i++)
            {
                Point(value.Points.Count, i).Write(writer, value.Points[i], origin);
            }

            MinZ(value.Points.Count).Write(writer, value.Box.Min.Z, origin);
            MaxZ(value.Points.Count).Write(writer, value.Box.Max.Z, origin);

            MinM(value.Points.Count).Write(writer, value.Box.Min.M, origin);
            MaxM(value.Points.Count).Write(writer, value.Box.Max.M, origin);
        }