Ejemplo n.º 1
0
        /// <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");
        }
Ejemplo n.º 2
0
 public ConeSolidCreator(string name, SolidSidesCreationPanel creatorControl)
     : base(name)
 {
     sidesPropertyControl = creatorControl;
 }