public int AddDataSet( TimeGraphDataSet dataSet ) { TimeGraphDataSet[] newDataSets = new TimeGraphDataSet[ m_dataSets.Length + 1 ]; m_dataSets.CopyTo( newDataSets, 0 ); newDataSets[ newDataSets.Length - 1 ] = dataSet; m_dataSets = newDataSets; return newDataSets.Length - 1; }
public int AddDataSet(TimeGraphDataSet dataSet) { TimeGraphDataSet[] newDataSets = new TimeGraphDataSet[m_dataSets.Length + 1]; m_dataSets.CopyTo(newDataSets, 0); newDataSets[newDataSets.Length - 1] = dataSet; m_dataSets = newDataSets; return(newDataSets.Length - 1); }
private void DrawGraph(TimeGraphDataSet data) { GL.Color(data.m_displayColor); float x = m_position.x + m_size.x; float x2; float y, y2; float step = m_size.x / m_horizontalEntries; for (int i = data.m_data.Count - 1; i > 0 && x > m_position.x; i--) { x2 = x - step; y = m_position.y + m_size.y - CalcPointY(data.m_data[i]); y2 = m_position.y + m_size.y - CalcPointY(data.m_data[i - 1]); PushPoint(x, y); PushPoint(x2, y2); x = x2; } }
private void DrawGraph( TimeGraphDataSet data ) { GL.Color( data.m_displayColor ); float x = m_position.x + m_size.x; float x2; float y, y2; float step = m_size.x / m_horizontalEntries; for ( int i = data.m_data.Count - 1; i > 0 && x > m_position.x; i-- ) { x2 = x - step; y = m_position.y + m_size.y - CalcPointY( data.m_data[ i ] ); y2 = m_position.y + m_size.y - CalcPointY( data.m_data[ i - 1 ] ); PushPoint( x, y ); PushPoint( x2, y2 ); x = x2; } }