Changeset 531
- Timestamp:
- 02/29/08 17:51:06 (10 months ago)
- Files:
-
- branches/x42view-upgrade/libx42.net/Group.h (modified) (3 diffs)
- branches/x42view-upgrade/libx42.net/Lod.cpp (modified) (1 diff)
- branches/x42view-upgrade/x42view.net/Gui/Graphics/StockObjects.Designer.cs (added)
- branches/x42view-upgrade/x42view.net/Gui/Graphics/StockObjects.cs (added)
- branches/x42view-upgrade/x42view.net/Gui/ModelGroupContext.cs (added)
- branches/x42view-upgrade/x42view.net/Gui/ModelViewer.Designer.cs (modified) (8 diffs)
- branches/x42view-upgrade/x42view.net/Gui/ModelViewer.resx (modified) (2 diffs)
- branches/x42view-upgrade/x42view.net/Gui/TimeControl.Designer.cs (modified) (11 diffs)
- branches/x42view-upgrade/x42view.net/Gui/TimeControl.cs (modified) (1 diff)
- branches/x42view-upgrade/x42view.net/x42view.net.csproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/x42view-upgrade/libx42.net/Group.h
r462 r531 35 35 ref class IndexCollection; 36 36 ref class VertexData; 37 ref class Lod; 37 38 38 39 public ref class Group … … 47 48 property String^ MaterialName { String^ get( void ); } 48 49 property String^ SurfaceName { String^ get( void ); } 50 51 property Lod^ Lod 52 { 53 Libx42::Lod^ get( void ) { return lod; } 54 } 49 55 50 56 property int MaxInfluencesPerVert … … 87 93 internal: 88 94 Group( Model ^owner, int index ); 95 Libx42::Lod ^lod; 89 96 90 97 private: branches/x42view-upgrade/libx42.net/Lod.cpp
r462 r531 43 43 { 44 44 groups = gcnew GroupCollection( owner, RawLod.firstGroup, RawLod.firstGroup + RawLod.numGroups ); 45 for each( Group ^group in groups ) 46 group->lod = this; 45 47 } 46 48 branches/x42view-upgrade/x42view.net/Gui/ModelViewer.Designer.cs
r530 r531 49 49 this.deviceController = new x42view.Gui.Graphics.DeviceController( this.components ); 50 50 this.modelRenderData = new x42view.Gui.ModelRenderHelper( this.components ); 51 this.stockObjects = new x42view.Gui.Graphics.StockObjects( this.components ); 51 52 this.split.Panel2.SuspendLayout(); 52 53 this.split.SuspendLayout(); … … 67 68 this.split.Panel2.Controls.Add( this.dataView ); 68 69 this.split.Size = new System.Drawing.Size( 942, 510 ); 69 this.split.SplitterDistance = 22 4;70 this.split.SplitterDistance = 223; 70 71 this.split.TabIndex = 0; 71 72 // … … 77 78 this.modelView.Location = new System.Drawing.Point( 0, 0 ); 78 79 this.modelView.Name = "modelView"; 79 this.modelView.Size = new System.Drawing.Size( 71 4, 510 );80 this.modelView.Size = new System.Drawing.Size( 715, 510 ); 80 81 this.modelView.TabIndex = 2; 81 82 // … … 172 173 this.dxview.Location = new System.Drawing.Point( 0, 0 ); 173 174 this.dxview.Name = "dxview"; 174 this.dxview.Size = new System.Drawing.Size( 71 4, 457 );175 this.dxview.Size = new System.Drawing.Size( 715, 457 ); 175 176 this.dxview.TabIndex = 1; 176 177 this.dxview.Text = "dxControl1"; … … 182 183 this.animTime.Model = this.model; 183 184 this.animTime.Name = "animTime"; 184 this.animTime.Size = new System.Drawing.Size( 71 4, 53 );185 this.animTime.Size = new System.Drawing.Size( 715, 53 ); 185 186 this.animTime.TabIndex = 2; 186 187 // … … 197 198 this.dataView.Name = "dataView"; 198 199 this.dataView.RootObject = null; 199 this.dataView.Size = new System.Drawing.Size( 71 4, 510 );200 this.dataView.Size = new System.Drawing.Size( 715, 510 ); 200 201 this.dataView.TabIndex = 0; 201 202 // … … 204 205 this.modelRenderData.DeviceController = this.deviceController; 205 206 this.modelRenderData.Model = this.model; 207 // 208 // stockObjects 209 // 210 this.stockObjects.DeviceController = this.deviceController; 206 211 // 207 212 // ModelViewer … … 249 254 private ModelContainer model; 250 255 private ModelRenderHelper modelRenderData; 256 private x42view.Gui.Graphics.StockObjects stockObjects; 251 257 } 252 258 } branches/x42view-upgrade/x42view.net/Gui/ModelViewer.resx
r530 r531 121 121 <value>302, 17</value> 122 122 </metadata> 123 <metadata name="modelRenderData.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">124 <value>384, 17</value>125 </metadata>126 <metadata name="deviceController.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">127 <value>17, 17</value>128 </metadata>129 123 <metadata name="menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 130 124 <value>148, 17</value> … … 132 126 <metadata name="stats.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 133 127 <value>227, 17</value> 128 </metadata> 129 <metadata name="deviceController.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 130 <value>17, 17</value> 131 </metadata> 132 <metadata name="modelRenderData.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 133 <value>384, 17</value> 134 </metadata> 135 <metadata name="stockObjects.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 136 <value>525, 17</value> 134 137 </metadata> 135 138 <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> branches/x42view-upgrade/x42view.net/Gui/TimeControl.Designer.cs
r530 r531 48 48 this.tips = new System.Windows.Forms.ToolTip( this.components ); 49 49 this.nudCurrTime = new System.Windows.Forms.NumericUpDown(); 50 this.nudFrameRate = new System.Windows.Forms.NumericUpDown(); 50 51 this.time = new x42view.Guil.TimeSlider(); 51 52 this.groupBox1 = new System.Windows.Forms.GroupBox(); 52 this.nudFrameRate = new System.Windows.Forms.NumericUpDown();53 53 ((System.ComponentModel.ISupportInitialize)(this.playSpeed)).BeginInit(); 54 54 ((System.ComponentModel.ISupportInitialize)(this.nudMinFrame)).BeginInit(); … … 57 57 ((System.ComponentModel.ISupportInitialize)(this.nudLoopEnd)).BeginInit(); 58 58 ((System.ComponentModel.ISupportInitialize)(this.nudCurrTime)).BeginInit(); 59 ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).BeginInit(); 59 60 this.groupBox1.SuspendLayout(); 60 ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).BeginInit();61 61 this.SuspendLayout(); 62 62 // … … 73 73 this.btnPlay.Name = "btnPlay"; 74 74 this.btnPlay.Size = new System.Drawing.Size( 74, 24 ); 75 this.btnPlay.TabIndex = 1;75 this.btnPlay.TabIndex = 3; 76 76 this.btnPlay.Text = "Play"; 77 77 this.btnPlay.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; … … 84 84 this.playSpeed.AutoSize = false; 85 85 this.playSpeed.Location = new System.Drawing.Point( 79, 13 ); 86 this.playSpeed.Maximum = 7;86 this.playSpeed.Maximum = 15; 87 87 this.playSpeed.Minimum = 1; 88 88 this.playSpeed.Name = "playSpeed"; 89 89 this.playSpeed.Size = new System.Drawing.Size( 116, 20 ); 90 this.playSpeed.TabIndex = 2;90 this.playSpeed.TabIndex = 1; 91 91 this.playSpeed.TickFrequency = 3; 92 92 this.playSpeed.TickStyle = System.Windows.Forms.TickStyle.None; 93 93 this.tips.SetToolTip( this.playSpeed, "Play Speed" ); 94 this.playSpeed.Value = 2;94 this.playSpeed.Value = 4; 95 95 // 96 96 // nudMinFrame … … 99 99 this.nudMinFrame.Name = "nudMinFrame"; 100 100 this.nudMinFrame.Size = new System.Drawing.Size( 67, 20 ); 101 this.nudMinFrame.TabIndex = 3;101 this.nudMinFrame.TabIndex = 0; 102 102 this.nudMinFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 103 103 this.tips.SetToolTip( this.nudMinFrame, "First Frame" ); … … 109 109 this.nudLoopStart.Name = "nudLoopStart"; 110 110 this.nudLoopStart.Size = new System.Drawing.Size( 67, 20 ); 111 this.nudLoopStart.TabIndex = 4;111 this.nudLoopStart.TabIndex = 1; 112 112 this.nudLoopStart.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 113 113 this.tips.SetToolTip( this.nudLoopStart, "First Loop Frame" ); … … 120 120 this.nudMaxFrame.Name = "nudMaxFrame"; 121 121 this.nudMaxFrame.Size = new System.Drawing.Size( 67, 20 ); 122 this.nudMaxFrame.TabIndex = 5;122 this.nudMaxFrame.TabIndex = 3; 123 123 this.nudMaxFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 124 124 this.tips.SetToolTip( this.nudMaxFrame, "Last Frame" ); … … 131 131 this.nudLoopEnd.Name = "nudLoopEnd"; 132 132 this.nudLoopEnd.Size = new System.Drawing.Size( 67, 20 ); 133 this.nudLoopEnd.TabIndex = 6;133 this.nudLoopEnd.TabIndex = 2; 134 134 this.nudLoopEnd.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 135 135 this.tips.SetToolTip( this.nudLoopEnd, "Last Loop Frame" ); … … 143 143 this.nudCurrTime.Name = "nudCurrTime"; 144 144 this.nudCurrTime.Size = new System.Drawing.Size( 67, 20 ); 145 this.nudCurrTime.TabIndex = 7;145 this.nudCurrTime.TabIndex = 0; 146 146 this.nudCurrTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 147 147 this.tips.SetToolTip( this.nudCurrTime, "Current Frame" ); 148 148 this.nudCurrTime.ValueChanged += new System.EventHandler( this.nudCurrTime_ValueChanged ); 149 // 150 // nudFrameRate 151 // 152 this.nudFrameRate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 153 this.nudFrameRate.DecimalPlaces = 1; 154 this.nudFrameRate.Location = new System.Drawing.Point( 201, 13 ); 155 this.nudFrameRate.Maximum = new decimal( new int[] { 156 60, 157 0, 158 0, 159 0} ); 160 this.nudFrameRate.Minimum = new decimal( new int[] { 161 1, 162 0, 163 0, 164 0} ); 165 this.nudFrameRate.Name = "nudFrameRate"; 166 this.nudFrameRate.Size = new System.Drawing.Size( 67, 20 ); 167 this.nudFrameRate.TabIndex = 2; 168 this.nudFrameRate.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 169 this.tips.SetToolTip( this.nudFrameRate, "Frame Rate" ); 170 this.nudFrameRate.Value = new decimal( new int[] { 171 30, 172 0, 173 0, 174 0} ); 149 175 // 150 176 // time … … 168 194 this.groupBox1.Name = "groupBox1"; 169 195 this.groupBox1.Size = new System.Drawing.Size( 354, 40 ); 170 this.groupBox1.TabIndex = 8;196 this.groupBox1.TabIndex = 4; 171 197 this.groupBox1.TabStop = false; 172 //173 // nudFrameRate174 //175 this.nudFrameRate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));176 this.nudFrameRate.DecimalPlaces = 1;177 this.nudFrameRate.Location = new System.Drawing.Point( 201, 13 );178 this.nudFrameRate.Maximum = new decimal( new int[] {179 60,180 0,181 0,182 0} );183 this.nudFrameRate.Minimum = new decimal( new int[] {184 1,185 0,186 0,187 0} );188 this.nudFrameRate.Name = "nudFrameRate";189 this.nudFrameRate.Size = new System.Drawing.Size( 67, 20 );190 this.nudFrameRate.TabIndex = 8;191 this.nudFrameRate.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;192 this.tips.SetToolTip( this.nudFrameRate, "Frame Rate" );193 this.nudFrameRate.Value = new decimal( new int[] {194 30,195 0,196 0,197 0} );198 198 // 199 199 // TimeControl … … 215 215 ((System.ComponentModel.ISupportInitialize)(this.nudLoopEnd)).EndInit(); 216 216 ((System.ComponentModel.ISupportInitialize)(this.nudCurrTime)).EndInit(); 217 ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).EndInit(); 217 218 this.groupBox1.ResumeLayout( false ); 218 ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).EndInit();219 219 this.ResumeLayout( false ); 220 220 branches/x42view-upgrade/x42view.net/Gui/TimeControl.cs
r530 r531 235 235 236 236 float secs = (float)ellapsed.TotalSeconds; 237 float speed = playSpeed.Value / 2.0F;237 float speed = playSpeed.Value / 4.0F; 238 238 239 239 secs *= speed; branches/x42view-upgrade/x42view.net/x42view.net.csproj
r530 r531 153 153 <DependentUpon>DXControl.cs</DependentUpon> 154 154 </Compile> 155 <Compile Include="Gui\Graphics\StockObjects.cs"> 156 <SubType>Component</SubType> 157 </Compile> 158 <Compile Include="Gui\Graphics\StockObjects.Designer.cs"> 159 <DependentUpon>StockObjects.cs</DependentUpon> 160 </Compile> 155 161 <Compile Include="Gui\ModelContainer.cs"> 156 162 <SubType>Component</SubType> … … 159 165 <DependentUpon>ModelContainer.cs</DependentUpon> 160 166 </Compile> 167 <Compile Include="Gui\ModelGroupContext.cs" /> 161 168 <Compile Include="Gui\ModelRenderHelper.cs"> 162 169 <SubType>Component</SubType>
