예제 #1
0
 public DialogResult ShowDialog(ModelEditControl owner, List <MDL0Node> models)
 {
     _models = models;
     form    = owner;
     foreach (MDL0Node m in _models)
     {
         if (m != null)
         {
             model.Items.Add(m);
         }
     }
     if (_models.Count != 0 && form.TargetModel != null)
     {
         model.SelectedIndex = form._targetModels.IndexOf(form.TargetModel);
     }
     if (form.hide)
     {
         hide.Checked = true;
     }
     return(base.ShowDialog(owner));
 }
예제 #2
0
        public DialogResult ShowDialog(ModelEditControl owner)
        {
            form = owner;

            ax.Text = form.modelPanel1.Ambient._x.ToString();
            ay.Text = form.modelPanel1.Ambient._y.ToString();
            az.Text = form.modelPanel1.Ambient._z.ToString();
            aw.Text = form.modelPanel1.Ambient._w.ToString();

            px.Text = form.modelPanel1.LightPosition._x.ToString();
            py.Text = form.modelPanel1.LightPosition._y.ToString();
            pz.Text = form.modelPanel1.LightPosition._z.ToString();
            pw.Text = form.modelPanel1.LightPosition._w.ToString();

            dx.Text = form.modelPanel1.Diffuse._x.ToString();
            dy.Text = form.modelPanel1.Diffuse._y.ToString();
            dz.Text = form.modelPanel1.Diffuse._z.ToString();
            dw.Text = form.modelPanel1.Diffuse._w.ToString();

            sx.Text = form.modelPanel1.Specular._x.ToString();
            sy.Text = form.modelPanel1.Specular._y.ToString();
            sz.Text = form.modelPanel1.Specular._z.ToString();
            sw.Text = form.modelPanel1.Specular._w.ToString();

            tScale.Text = form.modelPanel1.TranslationScale.ToString();
            rScale.Text = form.modelPanel1.RotationScale.ToString();
            zScale.Text = form.modelPanel1.ZoomScale.ToString();

            yFov.Text  = form.modelPanel1._fovY.ToString();
            nearZ.Text = form.modelPanel1._nearZ.ToString();
            farZ.Text  = form.modelPanel1._farZ.ToString();

            dCamX.Text = form.modelPanel1._defaultTranslate._x.ToString();
            dCamY.Text = form.modelPanel1._defaultTranslate._y.ToString();
            dCamZ.Text = form.modelPanel1._defaultTranslate._z.ToString();

            return(base.ShowDialog(owner));
        }
예제 #3
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModelForm));
     this.modelEditControl1 = new System.Windows.Forms.ModelEditControl();
     this.SuspendLayout();
     //
     // modelEditControl1
     //
     this.modelEditControl1.AllowDrop = true;
     this.modelEditControl1.BackColor = System.Drawing.Color.Lavender;
     this.modelEditControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.modelEditControl1.ImgExtIndex = 0;
     this.modelEditControl1.Location = new System.Drawing.Point(0, 0);
     this.modelEditControl1.Name = "modelEditControl1";
     this.modelEditControl1.Size = new System.Drawing.Size(639, 528);
     this.modelEditControl1.TabIndex = 0;
     this.modelEditControl1.TargetAnimation = null;
     this.modelEditControl1.TargetAnimType = System.Windows.Forms.AnimType.CHR;
     this.modelEditControl1.TargetModelChanged += new System.EventHandler(this.TargetModelChanged);
     this.modelEditControl1.ModelViewerChanged += new System.EventHandler(this.ModelViewerChanged);
     //
     // ModelForm
     //
     this.BackColor = System.Drawing.Color.PowderBlue;
     this.ClientSize = new System.Drawing.Size(639, 528);
     this.Controls.Add(this.modelEditControl1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "ModelForm";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ModelForm_FormClosing);
     this.ResumeLayout(false);
 }