Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!validarMuroSeleccionado())
            {
                return;
            }

            model.GetWorkPlaneHandler().SetCurrentTransformationPlane(new TransformationPlane());
            TransformationPlane currentTP = model.GetWorkPlaneHandler().GetCurrentTransformationPlane();

            T3D.CoordinateSystem coordenadasMuro = muro.GetCoordinateSystem();
            model.GetWorkPlaneHandler().SetCurrentTransformationPlane(new TransformationPlane(coordenadasMuro));

            ParametrosPanel p = new ParametrosPanel(muro);

            p.dx = Double.Parse(this.txtDx.Text);
            p.dy = Double.Parse(this.txtDz.Text);
            p.adicionalDerecha   = Double.Parse(this.txtAddDer.Text);
            p.adicionalIzquierda = Double.Parse(this.txtAdIzq.Text);
            p.adicionalSuperior  = Double.Parse(this.txtAdicionalSup.Text);
            p.adicionalInferior  = Double.Parse(this.txtAdicionalInf.Text);
            p.diametroBarras     = 7.0;
            p.diametroDiagonal   = 4.0;

            PanelMoldar panel = new PanelMoldar(p);

            panel.fabricar();

            model.GetWorkPlaneHandler().SetCurrentTransformationPlane(currentTP);
            model.CommitChanges();
        }
Example #2
0
        public PanelMoldar(ParametrosPanel p)
        {
            this.p = p;

            if (this._placas == null)
            {
                this._placas = new ConjuntoPlacas(p);
            }
        }
Example #3
0
        private double _dxPlacas; // plomo de partida de la placa de más a la izquierda

        public ConjuntoPlacas(ParametrosPanel p)
        {
            this.p = p;
            if (p.dx == 0)
            {
                _largoPrimeraPlaca = largoPrimeraYUltimaPlaca();
            }
            else
            {
                _largoPrimeraPlaca = p.dx;
            }
        }
Example #4
0
 public ViguetaVertical(ParametrosPanel p, double offsetX) : base(p, offsetX)
 {
 }
Example #5
0
 public Vigueta(ParametrosPanel p, double offset)
 {
     this.p      = p;
     this.offset = offset;
 }
Example #6
0
 public ViguetaHorizontal(ParametrosPanel p, double offsetY) : base(p, offsetY)
 {
 }