Esempio n. 1
0
        public void SetShapeCollection(ShapeCollection newShapeCollection)
        {
            newShapeCollection.AxisAlignedRectangles.AddRange(ToAxisAlignedRectangleList());
            newShapeCollection.AxisAlignedCubes.AddRange(ToAxisAlignedCubeList());
            newShapeCollection.Circles.AddRange(ToCircleList());
            newShapeCollection.Spheres.AddRange(ToSphereList());
            newShapeCollection.Polygons.AddRange(ToPolygonList());

            // Handle lines when we add them to the save class


            if (!string.IsNullOrEmpty(mFileName) && FileManager.IsRelative(mFileName))
            {
                mFileName = FileManager.MakeAbsolute(mFileName);
            }
            newShapeCollection.Name = mFileName;
        }