| 20 | } |
| 21 | |
| 22 | NODESIZE CNodeMatrix::Draw( const PVIEWINFO View, int x, int y ) |
| 23 | { |
| 24 | int tx, mx; |
| 25 | NODESIZE DrawSize; |
| 26 | float* Data; |
| 27 | |
| 28 | if (m_bHidden) |
| 29 | return DrawHidden( View, x, y ); |
| 30 | |
| 31 | Data = (float*)(View->Data + m_Offset); |
| 32 | AddSelection( View, 0, y, g_FontHeight ); |
| 33 | AddDelete( View, x, y ); |
| 34 | AddTypeDrop( View, x, y ); |
| 35 | |
| 36 | tx = x + TXOFFSET; |
| 37 | tx = AddIcon( View, tx, y, ICON_MATRIX, HS_NONE, HS_NONE ); |
| 38 | mx = tx; |
| 39 | tx = AddAddressOffset( View, tx, y ); |
| 40 | tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "Matrix " ) ); |
| 41 | tx = AddText( View, tx, y, g_crName, 69, _T( "%s" ), m_strName ); |
| 42 | tx = AddOpenClose( View, tx, y ); |
| 43 | tx += g_FontWidth; |
| 44 | tx = AddComment( View, tx, y ); |
| 45 | |
| 46 | if (m_LevelsOpen[View->Level]) |
| 47 | { |
| 48 | y += g_FontHeight; |
| 49 | tx = mx; |
| 50 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "|" ) ); |
| 51 | tx = AddText( View, tx, y, g_crValue, 0, _T( "% 14.3f" ), Data[0] ); |
| 52 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 53 | tx = AddText( View, tx, y, g_crValue, 1, _T( "% 14.3f" ), Data[1] ); |
| 54 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 55 | tx = AddText( View, tx, y, g_crValue, 2, _T( "% 14.3f" ), Data[2] ); |
| 56 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 57 | tx = AddText( View, tx, y, g_crValue, 3, _T( "% 14.3f" ), Data[3] ); |
| 58 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "|" ) ); |
| 59 | y += g_FontHeight; |
| 60 | tx = mx; |
| 61 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "|" ) ); |
| 62 | tx = AddText( View, tx, y, g_crValue, 4, _T( "% 14.3f" ), Data[4] ); |
| 63 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 64 | tx = AddText( View, tx, y, g_crValue, 5, _T( "% 14.3f" ), Data[5] ); |
| 65 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 66 | tx = AddText( View, tx, y, g_crValue, 6, _T( "% 14.3f" ), Data[6] ); |
| 67 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 68 | tx = AddText( View, tx, y, g_crValue, 7, _T( "% 14.3f" ), Data[7] ); |
| 69 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "|" ) ); |
| 70 | y += g_FontHeight; |
| 71 | tx = mx; |
| 72 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "|" ) ); |
| 73 | tx = AddText( View, tx, y, g_crValue, 8, _T( "% 14.3f" ), Data[8] ); |
| 74 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 75 | tx = AddText( View, tx, y, g_crValue, 9, _T( "% 14.3f" ), Data[9] ); |
| 76 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 77 | tx = AddText( View, tx, y, g_crValue, 10, _T( "% 14.3f" ), Data[10] ); |
| 78 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( "," ) ); |
| 79 | tx = AddText( View, tx, y, g_crValue, 11, _T( "% 14.3f" ), Data[11] ); |
nothing calls this directly
no outgoing calls
no test coverage detected