Changeset 531

Show
Ignore:
Timestamp:
02/29/08 17:51:06 (10 months ago)
Author:
phill
Message:

o STUFF!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/x42view-upgrade/libx42.net/Group.h

    r462 r531  
    3535ref class IndexCollection; 
    3636ref class VertexData; 
     37ref class Lod; 
    3738 
    3839public ref class Group 
     
    4748        property String^ MaterialName { String^ get( void ); } 
    4849        property String^ SurfaceName { String^ get( void ); } 
     50 
     51        property Lod^ Lod 
     52        { 
     53                Libx42::Lod^ get( void ) { return lod; } 
     54        } 
    4955 
    5056        property int MaxInfluencesPerVert 
     
    8793internal: 
    8894        Group( Model ^owner, int index ); 
     95        Libx42::Lod ^lod; 
    8996 
    9097private: 
  • branches/x42view-upgrade/libx42.net/Lod.cpp

    r462 r531  
    4343{ 
    4444        groups = gcnew GroupCollection( owner, RawLod.firstGroup, RawLod.firstGroup + RawLod.numGroups ); 
     45        for each( Group ^group in groups ) 
     46                group->lod = this; 
    4547} 
    4648 
  • branches/x42view-upgrade/x42view.net/Gui/ModelViewer.Designer.cs

    r530 r531  
    4949                        this.deviceController = new x42view.Gui.Graphics.DeviceController( this.components ); 
    5050                        this.modelRenderData = new x42view.Gui.ModelRenderHelper( this.components ); 
     51                        this.stockObjects = new x42view.Gui.Graphics.StockObjects( this.components ); 
    5152                        this.split.Panel2.SuspendLayout(); 
    5253                        this.split.SuspendLayout(); 
     
    6768                        this.split.Panel2.Controls.Add( this.dataView ); 
    6869                        this.split.Size = new System.Drawing.Size( 942, 510 ); 
    69                         this.split.SplitterDistance = 224
     70                        this.split.SplitterDistance = 223
    7071                        this.split.TabIndex = 0; 
    7172                        //  
     
    7778                        this.modelView.Location = new System.Drawing.Point( 0, 0 ); 
    7879                        this.modelView.Name = "modelView"; 
    79                         this.modelView.Size = new System.Drawing.Size( 714, 510 ); 
     80                        this.modelView.Size = new System.Drawing.Size( 715, 510 ); 
    8081                        this.modelView.TabIndex = 2; 
    8182                        //  
     
    172173                        this.dxview.Location = new System.Drawing.Point( 0, 0 ); 
    173174                        this.dxview.Name = "dxview"; 
    174                         this.dxview.Size = new System.Drawing.Size( 714, 457 ); 
     175                        this.dxview.Size = new System.Drawing.Size( 715, 457 ); 
    175176                        this.dxview.TabIndex = 1; 
    176177                        this.dxview.Text = "dxControl1"; 
     
    182183                        this.animTime.Model = this.model; 
    183184                        this.animTime.Name = "animTime"; 
    184                         this.animTime.Size = new System.Drawing.Size( 714, 53 ); 
     185                        this.animTime.Size = new System.Drawing.Size( 715, 53 ); 
    185186                        this.animTime.TabIndex = 2; 
    186187                        //  
     
    197198                        this.dataView.Name = "dataView"; 
    198199                        this.dataView.RootObject = null; 
    199                         this.dataView.Size = new System.Drawing.Size( 714, 510 ); 
     200                        this.dataView.Size = new System.Drawing.Size( 715, 510 ); 
    200201                        this.dataView.TabIndex = 0; 
    201202                        //  
     
    204205                        this.modelRenderData.DeviceController = this.deviceController; 
    205206                        this.modelRenderData.Model = this.model; 
     207                        //  
     208                        // stockObjects 
     209                        //  
     210                        this.stockObjects.DeviceController = this.deviceController; 
    206211                        //  
    207212                        // ModelViewer 
     
    249254                private ModelContainer model; 
    250255                private ModelRenderHelper modelRenderData; 
     256                private x42view.Gui.Graphics.StockObjects stockObjects; 
    251257        } 
    252258} 
  • branches/x42view-upgrade/x42view.net/Gui/ModelViewer.resx

    r530 r531  
    121121    <value>302, 17</value> 
    122122  </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> 
    129123  <metadata name="menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    130124    <value>148, 17</value> 
     
    132126  <metadata name="stats.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    133127    <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> 
    134137  </metadata> 
    135138  <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  
    4848                        this.tips = new System.Windows.Forms.ToolTip( this.components ); 
    4949                        this.nudCurrTime = new System.Windows.Forms.NumericUpDown(); 
     50                        this.nudFrameRate = new System.Windows.Forms.NumericUpDown(); 
    5051                        this.time = new x42view.Guil.TimeSlider(); 
    5152                        this.groupBox1 = new System.Windows.Forms.GroupBox(); 
    52                         this.nudFrameRate = new System.Windows.Forms.NumericUpDown(); 
    5353                        ((System.ComponentModel.ISupportInitialize)(this.playSpeed)).BeginInit(); 
    5454                        ((System.ComponentModel.ISupportInitialize)(this.nudMinFrame)).BeginInit(); 
     
    5757                        ((System.ComponentModel.ISupportInitialize)(this.nudLoopEnd)).BeginInit(); 
    5858                        ((System.ComponentModel.ISupportInitialize)(this.nudCurrTime)).BeginInit(); 
     59                        ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).BeginInit(); 
    5960                        this.groupBox1.SuspendLayout(); 
    60                         ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).BeginInit(); 
    6161                        this.SuspendLayout(); 
    6262                        //  
     
    7373                        this.btnPlay.Name = "btnPlay"; 
    7474                        this.btnPlay.Size = new System.Drawing.Size( 74, 24 ); 
    75                         this.btnPlay.TabIndex = 1
     75                        this.btnPlay.TabIndex = 3
    7676                        this.btnPlay.Text = "Play"; 
    7777                        this.btnPlay.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 
     
    8484                        this.playSpeed.AutoSize = false; 
    8585                        this.playSpeed.Location = new System.Drawing.Point( 79, 13 ); 
    86                         this.playSpeed.Maximum = 7
     86                        this.playSpeed.Maximum = 15
    8787                        this.playSpeed.Minimum = 1; 
    8888                        this.playSpeed.Name = "playSpeed"; 
    8989                        this.playSpeed.Size = new System.Drawing.Size( 116, 20 ); 
    90                         this.playSpeed.TabIndex = 2
     90                        this.playSpeed.TabIndex = 1
    9191                        this.playSpeed.TickFrequency = 3; 
    9292                        this.playSpeed.TickStyle = System.Windows.Forms.TickStyle.None; 
    9393                        this.tips.SetToolTip( this.playSpeed, "Play Speed" ); 
    94                         this.playSpeed.Value = 2
     94                        this.playSpeed.Value = 4
    9595                        //  
    9696                        // nudMinFrame 
     
    9999                        this.nudMinFrame.Name = "nudMinFrame"; 
    100100                        this.nudMinFrame.Size = new System.Drawing.Size( 67, 20 ); 
    101                         this.nudMinFrame.TabIndex = 3
     101                        this.nudMinFrame.TabIndex = 0
    102102                        this.nudMinFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 
    103103                        this.tips.SetToolTip( this.nudMinFrame, "First Frame" ); 
     
    109109                        this.nudLoopStart.Name = "nudLoopStart"; 
    110110                        this.nudLoopStart.Size = new System.Drawing.Size( 67, 20 ); 
    111                         this.nudLoopStart.TabIndex = 4
     111                        this.nudLoopStart.TabIndex = 1
    112112                        this.nudLoopStart.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 
    113113                        this.tips.SetToolTip( this.nudLoopStart, "First Loop Frame" ); 
     
    120120                        this.nudMaxFrame.Name = "nudMaxFrame"; 
    121121                        this.nudMaxFrame.Size = new System.Drawing.Size( 67, 20 ); 
    122                         this.nudMaxFrame.TabIndex = 5
     122                        this.nudMaxFrame.TabIndex = 3
    123123                        this.nudMaxFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 
    124124                        this.tips.SetToolTip( this.nudMaxFrame, "Last Frame" ); 
     
    131131                        this.nudLoopEnd.Name = "nudLoopEnd"; 
    132132                        this.nudLoopEnd.Size = new System.Drawing.Size( 67, 20 ); 
    133                         this.nudLoopEnd.TabIndex = 6
     133                        this.nudLoopEnd.TabIndex = 2
    134134                        this.nudLoopEnd.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 
    135135                        this.tips.SetToolTip( this.nudLoopEnd, "Last Loop Frame" ); 
     
    143143                        this.nudCurrTime.Name = "nudCurrTime"; 
    144144                        this.nudCurrTime.Size = new System.Drawing.Size( 67, 20 ); 
    145                         this.nudCurrTime.TabIndex = 7
     145                        this.nudCurrTime.TabIndex = 0
    146146                        this.nudCurrTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 
    147147                        this.tips.SetToolTip( this.nudCurrTime, "Current Frame" ); 
    148148                        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} ); 
    149175                        //  
    150176                        // time 
     
    168194                        this.groupBox1.Name = "groupBox1"; 
    169195                        this.groupBox1.Size = new System.Drawing.Size( 354, 40 ); 
    170                         this.groupBox1.TabIndex = 8
     196                        this.groupBox1.TabIndex = 4
    171197                        this.groupBox1.TabStop = false; 
    172                         //  
    173                         // nudFrameRate 
    174                         //  
    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} ); 
    198198                        //  
    199199                        // TimeControl 
     
    215215                        ((System.ComponentModel.ISupportInitialize)(this.nudLoopEnd)).EndInit(); 
    216216                        ((System.ComponentModel.ISupportInitialize)(this.nudCurrTime)).EndInit(); 
     217                        ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).EndInit(); 
    217218                        this.groupBox1.ResumeLayout( false ); 
    218                         ((System.ComponentModel.ISupportInitialize)(this.nudFrameRate)).EndInit(); 
    219219                        this.ResumeLayout( false ); 
    220220 
  • branches/x42view-upgrade/x42view.net/Gui/TimeControl.cs

    r530 r531  
    235235 
    236236                        float secs = (float)ellapsed.TotalSeconds; 
    237                         float speed = playSpeed.Value / 2.0F; 
     237                        float speed = playSpeed.Value / 4.0F; 
    238238 
    239239                        secs *= speed; 
  • branches/x42view-upgrade/x42view.net/x42view.net.csproj

    r530 r531  
    153153      <DependentUpon>DXControl.cs</DependentUpon> 
    154154    </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> 
    155161    <Compile Include="Gui\ModelContainer.cs"> 
    156162      <SubType>Component</SubType> 
     
    159165      <DependentUpon>ModelContainer.cs</DependentUpon> 
    160166    </Compile> 
     167    <Compile Include="Gui\ModelGroupContext.cs" /> 
    161168    <Compile Include="Gui\ModelRenderHelper.cs"> 
    162169      <SubType>Component</SubType>