/// <summary> /// Setup the solid creation factory /// </summary> private void SetupSolidFactory() { solidFactory = new SolidFactory(); SolidSidesCreationPanel control = new SolidSidesCreationPanel(); // register solid creators solidFactory.RegisterCreator(new BoxSolidCreator("box"), null); solidFactory.RegisterCreator(new CylinderSolidCreator("cylinder", control), control); solidFactory.RegisterCreator(new WedgeSolidCreator("wedge"), null); solidFactory.RegisterCreator(new ConeSolidCreator("cone", control), control); SetSolidCreator("box"); }
public ConeSolidCreator(string name, SolidSidesCreationPanel creatorControl) : base(name) { sidesPropertyControl = creatorControl; }