コード例 #1
0
 public WallsPositioner(MaterialContainer blueprintMaterials, PunctualComponentPositioner anOpeningManager, float aWidth, float aLength)
 {
     materials      = blueprintMaterials;
     openingManager = anOpeningManager;
     Length         = aLength;
     Width          = aWidth;
 }
コード例 #2
0
 public Blueprint(int aLength, int aWidth, string aName, MaterialContainer container)
 {
     Length     = aLength;
     Width      = aWidth;
     Name       = aName;
     materials  = container;
     signatures = new List <Signature>();
     id         = Guid.NewGuid();
     punctualComponentManager = new PunctualComponentPositioner(materials, Width, Length);
     wallsManager             = new WallsPositioner(materials, punctualComponentManager, Width, Length);
 }
コード例 #3
0
 public Blueprint(int aLength, int aWidth, string aName, User anOwner, MaterialContainer container, ICollection <Signature> someSignatures, Guid anId)
 {
     Length     = aLength;
     Width      = aWidth;
     Name       = aName;
     Owner      = anOwner;
     signatures = someSignatures;
     materials  = container;
     id         = anId;
     punctualComponentManager = new PunctualComponentPositioner(materials, Width, Length);
     wallsManager             = new WallsPositioner(materials, punctualComponentManager, Width, Length);
 }