Show
Ignore:
Timestamp:
07/03/08 18:39:10 (5 months ago)
Author:
phill
Message:

o Added camera-follows-tag feature.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/x42view.net/Gui/ModelWindow.Designer.cs

    r484 r594  
    6161                        this.vi3DShowBounds = new System.Windows.Forms.ToolStripMenuItem(); 
    6262                        this.vi3DShowShaded = new System.Windows.Forms.ToolStripMenuItem(); 
    63                         this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); 
     63                        this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); 
     64                        this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 
     65                        this.cameraModeMenu = new System.Windows.Forms.ContextMenuStrip( this.components ); 
     66                        this.mnuCamModeFree = new System.Windows.Forms.ToolStripMenuItem(); 
     67                        this.btnCameraMode = new System.Windows.Forms.ToolStripDropDownButton(); 
    6468                        this.resetCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    6569                        this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); 
     
    7983                        this.btnShadedView = new System.Windows.Forms.ToolStripButton(); 
    8084                        this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); 
     85                        this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); 
    8186                        this.btnResetCamera = new System.Windows.Forms.ToolStripButton(); 
    8287                        this.imgs = new System.Windows.Forms.ImageList( this.components ); 
     
    8590                        this.pnPreviewOpts = new x42view.Gui.PreviewOptions(); 
    8691                        this.pnAnims = new x42view.Gui.AnimationsPanel(); 
     92                        this.model = new x42view.Gui.ModelContainer( this.components ); 
    8793                        this.pnHeirarchy = new x42view.Gui.HeirarchyPanel(); 
    88                         this.model = new x42view.Gui.ModelContainer( this.components ); 
    8994                        this.pnGroups = new x42view.Gui.GroupsPanel(); 
    9095                        this.viewSplit = new System.Windows.Forms.SplitContainer(); 
     
    98103                        this.statScore = new System.Windows.Forms.ToolStripDropDownButton(); 
    99104                        this.statScoreDetails = new System.Windows.Forms.ToolStripMenuItem(); 
    100                         this.cam = new x42view.Gui.Camera(); 
     105                        this.pn3DCamera = new x42view.Gui.Camera(); 
    101106                        this.modelDXData = new x42view.Gui.ModelRenderHelper( this.components ); 
    102107                        this.menu.SuspendLayout(); 
    103108                        this.pn3DMenu.SuspendLayout(); 
     109                        this.cameraModeMenu.SuspendLayout(); 
    104110                        this.tools.SuspendLayout(); 
    105111                        this.split.Panel1.SuspendLayout(); 
     
    141147                        this.toolStripSeparator6.MergeIndex = 3; 
    142148                        this.toolStripSeparator6.Name = "toolStripSeparator6"; 
    143                         this.toolStripSeparator6.Size = new System.Drawing.Size( 154, 6 ); 
     149                        this.toolStripSeparator6.Size = new System.Drawing.Size( 165, 6 ); 
    144150                        //  
    145151                        // toolStripMenuItem2 
     
    150156                        this.toolStripMenuItem2.Name = "toolStripMenuItem2"; 
    151157                        this.toolStripMenuItem2.ShortcutKeys = System.Windows.Forms.Keys.F5; 
    152                         this.toolStripMenuItem2.Size = new System.Drawing.Size( 157, 22 ); 
     158                        this.toolStripMenuItem2.Size = new System.Drawing.Size( 168, 22 ); 
    153159                        this.toolStripMenuItem2.Text = "&Reload Model"; 
    154160                        this.toolStripMenuItem2.Click += new System.EventHandler( this.btnReload_Click ); 
     
    162168                        this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; 
    163169                        this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); 
    164                         this.saveToolStripMenuItem.Size = new System.Drawing.Size( 157, 22 ); 
     170                        this.saveToolStripMenuItem.Size = new System.Drawing.Size( 168, 22 ); 
    165171                        this.saveToolStripMenuItem.Text = "&Save"; 
    166172                        //  
     
    172178                        this.fiClose.Name = "fiClose"; 
    173179                        this.fiClose.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F4))); 
    174                         this.fiClose.Size = new System.Drawing.Size( 157, 22 ); 
     180                        this.fiClose.Size = new System.Drawing.Size( 168, 22 ); 
    175181                        this.fiClose.Text = "&Close"; 
    176182                        this.fiClose.Click += new System.EventHandler( this.fiClose_Click ); 
     
    180186                        this.viewToolStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { 
    181187            this.modelPreviewToolStripMenuItem, 
     188            this.toolStripSeparator4, 
     189            this.toolStripMenuItem1, 
     190            this.resetCameraToolStripMenuItem, 
    182191            this.toolStripSeparator2, 
    183192            this.viShowTools, 
     
    193202                        this.modelPreviewToolStripMenuItem.DropDown = this.pn3DMenu; 
    194203                        this.modelPreviewToolStripMenuItem.Name = "modelPreviewToolStripMenuItem"; 
    195                         this.modelPreviewToolStripMenuItem.Size = new System.Drawing.Size( 190, 22 ); 
     204                        this.modelPreviewToolStripMenuItem.Size = new System.Drawing.Size( 222, 22 ); 
    196205                        this.modelPreviewToolStripMenuItem.Text = "Model &Preview"; 
    197206                        //  
     
    203212            this.vi3DShowTopo, 
    204213            this.vi3DShowBounds, 
    205             this.vi3DShowShaded, 
    206             this.toolStripMenuItem1, 
    207             this.resetCameraToolStripMenuItem} ); 
     214            this.vi3DShowShaded} ); 
    208215                        this.pn3DMenu.Name = "pn3DMenu"; 
    209216                        this.pn3DMenu.OwnerItem = this.modelPreviewToolStripMenuItem; 
    210                         this.pn3DMenu.Size = new System.Drawing.Size( 212, 142 ); 
     217                        this.pn3DMenu.Size = new System.Drawing.Size( 198, 114 ); 
    211218                        //  
    212219                        // vi3DShowSurfs 
     
    217224                        this.vi3DShowSurfs.Name = "vi3DShowSurfs"; 
    218225                        this.vi3DShowSurfs.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q))); 
    219                         this.vi3DShowSurfs.Size = new System.Drawing.Size( 211, 22 ); 
     226                        this.vi3DShowSurfs.Size = new System.Drawing.Size( 197, 22 ); 
    220227                        this.vi3DShowSurfs.Text = "Show &Surfaces"; 
    221228                        this.vi3DShowSurfs.Click += new System.EventHandler( this.vi3DShowSurfs_Click ); 
     
    226233                        this.vi3DShowSkel.Name = "vi3DShowSkel"; 
    227234                        this.vi3DShowSkel.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W))); 
    228                         this.vi3DShowSkel.Size = new System.Drawing.Size( 211, 22 ); 
     235                        this.vi3DShowSkel.Size = new System.Drawing.Size( 197, 22 ); 
    229236                        this.vi3DShowSkel.Text = "Show S&keleton"; 
    230237                        this.vi3DShowSkel.Click += new System.EventHandler( this.vi3DShowSkel_Click ); 
     
    235242                        this.vi3DShowTopo.Name = "vi3DShowTopo"; 
    236243                        this.vi3DShowTopo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E))); 
    237                         this.vi3DShowTopo.Size = new System.Drawing.Size( 211, 22 ); 
     244                        this.vi3DShowTopo.Size = new System.Drawing.Size( 197, 22 ); 
    238245                        this.vi3DShowTopo.Text = "Show &Topology"; 
    239246                        this.vi3DShowTopo.Click += new System.EventHandler( this.vi3DShowTopo_Click ); 
     
    244251                        this.vi3DShowBounds.Name = "vi3DShowBounds"; 
    245252                        this.vi3DShowBounds.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R))); 
    246                         this.vi3DShowBounds.Size = new System.Drawing.Size( 211, 22 ); 
     253                        this.vi3DShowBounds.Size = new System.Drawing.Size( 197, 22 ); 
    247254                        this.vi3DShowBounds.Text = "Show &Bounds"; 
    248255                        this.vi3DShowBounds.Click += new System.EventHandler( this.vi3DShowBounds_Click ); 
     
    253260                        this.vi3DShowShaded.Name = "vi3DShowShaded"; 
    254261                        this.vi3DShowShaded.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); 
    255                         this.vi3DShowShaded.Size = new System.Drawing.Size( 211, 22 ); 
     262                        this.vi3DShowShaded.Size = new System.Drawing.Size( 197, 22 ); 
    256263                        this.vi3DShowShaded.Text = "Show S&haded"; 
    257264                        this.vi3DShowShaded.Click += new System.EventHandler( this.vi3DShowShaded_Click ); 
    258265                        //  
     266                        // toolStripSeparator4 
     267                        //  
     268                        this.toolStripSeparator4.Name = "toolStripSeparator4"; 
     269                        this.toolStripSeparator4.Size = new System.Drawing.Size( 219, 6 ); 
     270                        //  
    259271                        // toolStripMenuItem1 
    260272                        //  
     273                        this.toolStripMenuItem1.DropDown = this.cameraModeMenu; 
    261274                        this.toolStripMenuItem1.Name = "toolStripMenuItem1"; 
    262                         this.toolStripMenuItem1.Size = new System.Drawing.Size( 208, 6 ); 
     275                        this.toolStripMenuItem1.Size = new System.Drawing.Size( 222, 22 ); 
     276                        this.toolStripMenuItem1.Text = "Camera Mode"; 
     277                        //  
     278                        // cameraModeMenu 
     279                        //  
     280                        this.cameraModeMenu.Items.AddRange( new System.Windows.Forms.ToolStripItem[] { 
     281            this.mnuCamModeFree} ); 
     282                        this.cameraModeMenu.Name = "cameraModeMenu"; 
     283                        this.cameraModeMenu.OwnerItem = this.btnCameraMode; 
     284                        this.cameraModeMenu.Size = new System.Drawing.Size( 153, 48 ); 
     285                        //  
     286                        // mnuCamModeFree 
     287                        //  
     288                        this.mnuCamModeFree.Checked = true; 
     289                        this.mnuCamModeFree.CheckState = System.Windows.Forms.CheckState.Checked; 
     290                        this.mnuCamModeFree.Name = "mnuCamModeFree"; 
     291                        this.mnuCamModeFree.Size = new System.Drawing.Size( 152, 22 ); 
     292                        this.mnuCamModeFree.Text = "&Free"; 
     293                        this.mnuCamModeFree.Click += new System.EventHandler( this.cameraModeMenuItem_Click ); 
     294                        //  
     295                        // btnCameraMode 
     296                        //  
     297                        this.btnCameraMode.DropDown = this.cameraModeMenu; 
     298                        this.btnCameraMode.Image = ((System.Drawing.Image)(resources.GetObject( "btnCameraMode.Image" ))); 
     299                        this.btnCameraMode.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; 
     300                        this.btnCameraMode.ImageTransparentColor = System.Drawing.Color.Magenta; 
     301                        this.btnCameraMode.Name = "btnCameraMode"; 
     302                        this.btnCameraMode.Size = new System.Drawing.Size( 58, 22 ); 
     303                        this.btnCameraMode.Text = "Free"; 
    263304                        //  
    264305                        // resetCameraToolStripMenuItem 
     
    268309                        this.resetCameraToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) 
    269310                                                | System.Windows.Forms.Keys.R))); 
    270                         this.resetCameraToolStripMenuItem.Size = new System.Drawing.Size( 211, 22 ); 
     311                        this.resetCameraToolStripMenuItem.Size = new System.Drawing.Size( 222, 22 ); 
    271312                        this.resetCameraToolStripMenuItem.Text = "&Reset Camera"; 
    272313                        this.resetCameraToolStripMenuItem.Click += new System.EventHandler( this.viResetCamera_Click ); 
     
    275316                        //  
    276317                        this.toolStripSeparator2.Name = "toolStripSeparator2"; 
    277                         this.toolStripSeparator2.Size = new System.Drawing.Size( 187, 6 ); 
     318                        this.toolStripSeparator2.Size = new System.Drawing.Size( 219, 6 ); 
    278319                        //  
    279320                        // viShowTools 
     
    284325                        this.viShowTools.Name = "viShowTools"; 
    285326                        this.viShowTools.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); 
    286                         this.viShowTools.Size = new System.Drawing.Size( 190, 22 ); 
     327                        this.viShowTools.Size = new System.Drawing.Size( 222, 22 ); 
    287328                        this.viShowTools.Text = "Show &Tools"; 
    288329                        this.viShowTools.Click += new System.EventHandler( this.tbShowTools_Click ); 
     
    295336                        this.viShowMessages.Name = "viShowMessages"; 
    296337                        this.viShowMessages.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.M))); 
    297                         this.viShowMessages.Size = new System.Drawing.Size( 190, 22 ); 
     338                        this.viShowMessages.Size = new System.Drawing.Size( 222, 22 ); 
    298339                        this.viShowMessages.Text = "Show &Messages"; 
    299340                        this.viShowMessages.Click += new System.EventHandler( this.tbShowMessages_Click ); 
     
    315356            this.btnShadedView, 
    316357            this.toolStripSeparator5, 
     358            this.toolStripLabel1, 
     359            this.btnCameraMode, 
    317360            this.btnResetCamera} ); 
    318361                        this.tools.Location = new System.Drawing.Point( 0, 0 ); 
     
    431474                        this.toolStripSeparator5.Size = new System.Drawing.Size( 6, 25 ); 
    432475                        //  
     476                        // toolStripLabel1 
     477                        //  
     478                        this.toolStripLabel1.Name = "toolStripLabel1"; 
     479                        this.toolStripLabel1.Size = new System.Drawing.Size( 48, 22 ); 
     480                        this.toolStripLabel1.Text = "Camera:"; 
     481                        //  
    433482                        // btnResetCamera 
    434483                        //  
     
    455504                        this.split.Dock = System.Windows.Forms.DockStyle.Fill; 
    456505                        this.split.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 
    457                         this.split.Location = new System.Drawing.Point( 0, 0 ); 
     506                        this.split.Location = new System.Drawing.Point( 0, 25 ); 
    458507                        this.split.Name = "split"; 
    459508                        //  
     
    470519                        //  
    471520                        this.split.Panel2.Controls.Add( this.viewSplit ); 
    472                         this.split.Size = new System.Drawing.Size( 1000, 600 ); 
     521                        this.split.Size = new System.Drawing.Size( 1000, 575 ); 
    473522                        this.split.SplitterDistance = 268; 
    474523                        this.split.TabIndex = 2; 
     
    512561                        this.pnAnims.ToolImage = ((System.Drawing.Image)(resources.GetObject( "pnAnims.ToolImage" ))); 
    513562                        this.pnAnims.PlayAnimationClip += new x42view.Gui.AnimationClipEventHandler( this.pnAnims_PlayAnimationClip ); 
     563                        //  
     564                        // model 
     565                        //  
     566                        this.model.ModelChanged += new System.EventHandler( this.model_ModelChanged ); 
    514567                        //  
    515568                        // pnHeirarchy 
     
    528581                        this.pnHeirarchy.ItemPropertyChanged += new System.EventHandler( this.pnHeirarchy_ItemPropertyChanged ); 
    529582                        //  
    530                         // model 
    531                         //  
    532                         this.model.ModelChanged += new System.EventHandler( this.model_ModelChanged ); 
    533                         //  
    534583                        // pnGroups 
    535584                        //  
     
    544593                        this.pnGroups.TabIndex = 3; 
    545594                        this.pnGroups.ToolImage = ((System.Drawing.Image)(resources.GetObject( "pnGroups.ToolImage" ))); 
     595                        this.pnGroups.GroupPropertyChanged += new x42view.Gui.GroupContextEventHandler( this.pnGroups_GroupPropertyChanged ); 
    546596                        this.pnGroups.RequestJump += new x42view.Gui.JumpEventHandler( this.pnGroups_RequestJump ); 
    547                         this.pnGroups.GroupPropertyChanged += new x42view.Gui.GroupContextEventHandler( this.pnGroups_GroupPropertyChanged ); 
    548597                        //  
    549598                        // viewSplit 
     
    562611                        //  
    563612                        this.viewSplit.Panel2.Controls.Add( this.lvMessages ); 
    564                         this.viewSplit.Size = new System.Drawing.Size( 728, 600 ); 
    565                         this.viewSplit.SplitterDistance = 465
     613                        this.viewSplit.Size = new System.Drawing.Size( 728, 575 ); 
     614                        this.viewSplit.SplitterDistance = 444
    566615                        this.viewSplit.TabIndex = 4; 
    567616                        //  
     
    579628                        this.pn3D.Location = new System.Drawing.Point( 0, 0 ); 
    580629                        this.pn3D.Name = "pn3D"; 
    581                         this.pn3D.Size = new System.Drawing.Size( 728, 413 ); 
     630                        this.pn3D.Size = new System.Drawing.Size( 728, 392 ); 
    582631                        this.pn3D.TabIndex = 0; 
    583632                        this.pn3D.Text = "Failed to initialize Direct 3D."; 
     
    591640                        //  
    592641                        this.time.Dock = System.Windows.Forms.DockStyle.Bottom; 
    593                         this.time.Location = new System.Drawing.Point( 0, 413 ); 
     642                        this.time.Location = new System.Drawing.Point( 0, 392 ); 
    594643                        this.time.Model = this.model; 
    595644                        this.time.Name = "time"; 
     
    618667                        this.lvMessages.Location = new System.Drawing.Point( 0, 0 ); 
    619668                        this.lvMessages.Name = "lvMessages"; 
    620                         this.lvMessages.Size = new System.Drawing.Size( 728, 131 ); 
     669                        this.lvMessages.Size = new System.Drawing.Size( 728, 127 ); 
    621670                        this.lvMessages.SmallImageList = this.imgs; 
    622671                        this.lvMessages.TabIndex = 0; 
     
    666715                        //  
    667716                        this.statScoreDetails.Name = "statScoreDetails"; 
    668                         this.statScoreDetails.Size = new System.Drawing.Size( 118, 22 ); 
     717                        this.statScoreDetails.Size = new System.Drawing.Size( 129, 22 ); 
    669718                        this.statScoreDetails.Text = "Details..."; 
    670719                        this.statScoreDetails.Click += new System.EventHandler( this.statScoreDetails_Click ); 
    671720                        //  
    672                         // cam 
     721                        // pn3DCamera 
    673722                        //  
    674723                        cameraActionMapEntry1.Alt = true; 
     
    685734                        cameraActionMapEntry4.Control = true; 
    686735                        cameraActionMapEntry4.Mode = x42view.Gui.CameraMode.AdjustFov; 
    687                         this.cam.ActionMap.Add( cameraActionMapEntry1 ); 
    688                         this.cam.ActionMap.Add( cameraActionMapEntry2 ); 
    689                         this.cam.ActionMap.Add( cameraActionMapEntry3 ); 
    690                         this.cam.ActionMap.Add( cameraActionMapEntry4 ); 
    691                         this.cam.Control = this.pn3D; 
    692                         this.cam.MatrixChanged += new System.EventHandler( this.cam_MatrixChanged ); 
     736                        this.pn3DCamera.ActionMap.Add( cameraActionMapEntry1 ); 
     737                        this.pn3DCamera.ActionMap.Add( cameraActionMapEntry2 ); 
     738                        this.pn3DCamera.ActionMap.Add( cameraActionMapEntry3 ); 
     739                        this.pn3DCamera.ActionMap.Add( cameraActionMapEntry4 ); 
     740                        this.pn3DCamera.Control = this.pn3D; 
     741                        this.pn3DCamera.MatrixChanged += new System.EventHandler( this.cam_MatrixChanged ); 
    693742                        //  
    694743                        // modelDXData 
     
    713762                        this.menu.PerformLayout(); 
    714763                        this.pn3DMenu.ResumeLayout( false ); 
     764                        this.cameraModeMenu.ResumeLayout( false ); 
    715765                        this.tools.ResumeLayout( false ); 
    716766                        this.tools.PerformLayout(); 
     
    735785                private DXPanel pn3D; 
    736786                private System.Windows.Forms.ToolStripButton tbShowTools; 
    737                 private Camera cam
     787                private Camera pn3DCamera
    738788                private System.Windows.Forms.ContextMenuStrip pn3DMenu; 
    739                 private System.Windows.Forms.ToolStripMenuItem resetCameraToolStripMenuItem; 
    740789                private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; 
    741790                private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; 
     
    751800                private System.Windows.Forms.ToolStripMenuItem vi3DShowSurfs; 
    752801                private System.Windows.Forms.ToolStripMenuItem vi3DShowSkel; 
    753                 private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; 
    754802                private PreviewOptions pnPreviewOpts; 
    755803                private TimeControl time; 
     
    783831                private RawDataViewPanel pnRawData; 
    784832                private AnimationsPanel pnAnims; 
     833                private System.Windows.Forms.ToolStripLabel toolStripLabel1; 
     834                private System.Windows.Forms.ContextMenuStrip cameraModeMenu; 
     835                private System.Windows.Forms.ToolStripMenuItem mnuCamModeFree; 
     836                private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; 
     837                private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; 
     838                private System.Windows.Forms.ToolStripMenuItem resetCameraToolStripMenuItem; 
     839                private System.Windows.Forms.ToolStripDropDownButton btnCameraMode; 
    785840        } 
    786841}