Exemple #1
0
        /// <summary>
        /// You can use this to setop the Controls on a TabPage befor it is dispplayed
        /// </summary>
        protected override void InitTabPage()
        {
            if (tTransformNode == null)
            {
                tTransformNode = new SimPe.Plugin.TabPage.TransformNode();
            }
            tTransformNode.tb_tn_a.Tag = true;

            tTransformNode.lb_tn.Items.Clear();
            for (int i = 0; i < this.items.Length; i++)
            {
                tTransformNode.lb_tn.Items.Add(items[i]);
            }

            tTransformNode.tb_tn_ver.Text = "0x" + Helper.HexString(this.version);
            tTransformNode.tb_tn_ukn.Text = "0x" + Helper.HexString(this.unknown);

            tTransformNode.tb_tn_tx.Text = trans.Translation.X.ToString("N6");
            tTransformNode.tb_tn_ty.Text = trans.Translation.Y.ToString("N6");
            tTransformNode.tb_tn_tz.Text = trans.Translation.Z.ToString("N6");

            /*form.tb_tn_rx.Text = trans.Rotation.X.ToString("N6");
             * form.tb_tn_ry.Text = trans.Rotation.Y.ToString("N6");
             * form.tb_tn_rz.Text = trans.Rotation.Z.ToString("N6");
             * form.tb_tn_rw.Text = trans.Rotation.W.ToString("N6");
             *
             * form.tb_tn_ax.Text = trans.Rotation.Axis.X.ToString("N6");
             * form.tb_tn_ay.Text = trans.Rotation.Axis.Y.ToString("N6");
             * form.tb_tn_az.Text = trans.Rotation.Axis.Z.ToString("N6");
             * form.tb_tn_a.Text = Quaternion.RadToDeg(trans.Rotation.Angle).ToString("N6");*/
            tTransformNode.TNUpdateTextValues(trans.Rotation, true, true, true);

            tTransformNode.tb_tn_a.Tag = null;
        }
Exemple #2
0
 public override void Dispose()
 {
     if (this.tTransformNode != null)
     {
         this.tTransformNode.Dispose();
     }
     tTransformNode = null;
     ctn            = null;
     ogn            = null;
     items          = null;
     trans          = null;
 }