/// <summary>
    /// This resets this data group to all default values.
    /// </summary>
    public void Reset()
    {
        dataGroupName = Defaults.dataGroupName + (++Defaults.dataGroupNameCounter).ToString();

        dataSource               = Defaults.dataSource;
        numberSubDataGroups      = Defaults.numberSubDataGroups;
        frequencyRangeStartIndex = Defaults.frequencyRangeStartIndex;
        frequencyRangeEndIndex   = Defaults.frequencyRangeEndIndex;
        boost  = Defaults.boost;
        cutoff = Defaults.cutoff;
    }
 /// <summary>
 /// This gets the debug gui color for a specific frequency index
 /// </summary>
 /// <param name="freqIndex">
 /// This is the frequency index used to lookup the debug color.
 /// </param>
 /// <param name="dataSource">
 /// The data source.
 /// </param>
 /// <returns>
 /// This returns the debug color to be used to display the requested frequency index.
 /// </returns>
 private Color GetDebugColor(int freqIndex, VisDataSource dataSource)
 {
     for (int i = 0; i < m_oDataGroups.Count; i++)
     {
         if (m_oDataGroups[i] != null &&
             m_oDataGroups[i].dataSource == dataSource &&
             freqIndex >= m_oDataGroups[i].frequencyRangeStartIndex &&
             freqIndex <= m_oDataGroups[i].frequencyRangeEndIndex)
         {
             return(m_oDataGroups[i].debugColor);
         }
     }
     return(Color.white);
 }
Example #3
0
	/// <summary>
	/// This gets the debug gui color for a specific frequency index 
	/// </summary>
	/// <param name="freqIndex">
	/// This is the frequency index used to lookup the debug color.
	/// </param>
    /// <param name="dataSource">
    /// The data source.
    /// </param>
	/// <returns>
	/// This returns the debug color to be used to display the requested frequency index.
	/// </returns>
    private Color GetDebugColor(int freqIndex, VisDataSource dataSource)
    {
        for (int i = 0; i < m_oDataGroups.Count; i++)
        {
            if (m_oDataGroups[i] != null &&
			    m_oDataGroups[i].dataSource == dataSource &&
                freqIndex >= m_oDataGroups[i].frequencyRangeStartIndex &&
                freqIndex <= m_oDataGroups[i].frequencyRangeEndIndex)
            {
                return m_oDataGroups[i].debugColor;
            }
        }
        return Color.white;
    }