| ofs | hex dump | ascii |
|---|
| 0000 | 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 38 35 30 32 33 33 | !<arch>./...............14850233 |
| 0020 | 30 33 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 31 32 33 39 20 20 20 20 | 03..............0.......1239.... |
| 0040 | 20 20 60 0a 00 00 00 21 00 00 12 02 00 00 12 02 00 00 1a e2 00 00 1f c0 00 00 2c b6 00 00 33 fa | ..`....!..................,...3. |
| 0060 | 00 00 3b dc 00 00 40 d4 00 00 45 46 00 00 49 a2 00 00 4d b8 00 00 51 a4 00 00 55 3e 00 00 58 b2 | ..;...@...EF..I...M...Q...U>..X. |
| 0080 | 00 00 65 9c 00 00 6c da 00 00 74 b2 00 00 79 ae 00 00 7e 26 00 00 82 5a 00 00 86 6e 00 00 8a 62 | ..e...l...t...y...~&...Z...n...b |
| 00a0 | 00 00 8d f2 00 00 91 34 00 00 91 34 00 00 91 34 00 00 91 34 00 00 9b 22 00 00 9b 22 00 00 a1 18 | .......4...4...4...4..."...".... |
| 00c0 | 00 00 a3 e8 00 00 a3 e8 00 00 ad a6 5f 78 38 36 53 50 5f 46 33 32 5f 72 61 64 69 78 34 5f 6b 65 | ............_x86SP_F32_radix4_ke |
| 00e0 | 72 6e 65 6c 5f 4f 75 74 4f 66 50 6c 61 63 65 00 5f 78 38 36 53 50 5f 46 33 32 5f 72 61 64 69 78 | rnel_OutOfPlace._x86SP_F32_radix |
| 0100 | 34 5f 6b 65 72 6e 65 6c 5f 4f 75 74 4f 66 50 6c 61 63 65 5f 73 73 65 00 5f 78 38 36 53 50 5f 46 | 4_kernel_OutOfPlace_sse._x86SP_F |
| 0120 | 33 32 5f 72 61 64 69 78 32 5f 6b 65 72 6e 65 6c 5f 4f 75 74 4f 66 50 6c 61 63 65 00 5f 78 38 36 | 32_radix2_kernel_OutOfPlace._x86 |
| 0140 | 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 78 34 5f 6d 73 5f 73 | SP_FFT_CToC_FC32_Inv_Radix4_ms_s |
| 0160 | 73 65 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 | se._x86SP_FFT_CToC_FC32_Inv_Radi |
| 0180 | 78 34 5f 6d 73 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 | x4_ms._x86SP_FFT_CToC_FC32_Inv_R |
| 01a0 | 61 64 69 78 34 5f 6c 73 5f 73 73 65 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 | adix4_ls_sse._x86SP_FFT_CToC_FC3 |
| 01c0 | 32 5f 49 6e 76 5f 52 61 64 69 78 34 5f 6c 73 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f | 2_Inv_Radix4_ls._x86SP_FFT_CToC_ |
| 01e0 | 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 78 34 5f 66 73 5f 73 73 65 00 5f 78 38 36 53 50 5f 46 46 | FC32_Inv_Radix4_fs_sse._x86SP_FF |
| 0200 | 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 78 34 5f 66 73 00 5f 78 38 36 53 50 | T_CToC_FC32_Inv_Radix4_fs._x86SP |
| 0220 | 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 78 32 5f 6d 73 00 5f 78 38 | _FFT_CToC_FC32_Inv_Radix2_ms._x8 |
| 0240 | 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 69 78 32 5f 6c 73 5f | 6SP_FFT_CToC_FC32_Inv_Radix2_ls_ |
| 0260 | 73 73 65 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f 46 43 33 32 5f 49 6e 76 5f 52 61 64 | sse._x86SP_FFT_CToC_FC32_Inv_Rad |
| 0280 | 69 78 32 5f 6c 73 00 5f 78 38 36 53 50 5f 46 46 54 5f 43 54 6f 43 5f using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Tango.Visuals.Components
{
/// <summary>
/// Interaction logic for TicksAxis.xaml
/// </summary>
internal partial class XAxisTicks : UserControl
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="XAxisTicks"/> class.
/// </summary>
public XAxisTicks()
{
InitializeComponent();
this.Loaded += TicksAxis_Loaded;
}
#endregion
#region Event Handlers
/// <summary>
/// Handles the Loaded event of the TicksAxis control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
private void TicksAxis_Loaded(object sender, RoutedEventArgs e)
{
DrawTicks();
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the ticks.
/// </summary>
/// <value>
/// The ticks.
/// </value>
public int Ticks
{
get { return (int)GetValue(TicksProperty); }
set { SetValue(TicksProperty, value); }
}
public static readonly DependencyProperty TicksProperty =
DependencyProperty.Register("Ticks", typeof(int), typeof(XAxisTicks), new PropertyMetadata(11));
/// <summary>
/// Gets or sets the tick template.
/// </summary>
/// <value>
/// The tick template.
/// </value>
public DataTemplate TickTemplate
{
get { return (DataTemplate)GetValue(TickTemplateProperty); }
set { SetValue(TickTemplateProperty, value); }
}
public static readonly DependencyProperty TickTemplateProperty =
DependencyProperty.Register("TickTemplate", typeof(DataTemplate), typeof(XAxisTicks), new PropertyMetadata(null));
#endregion
#region Methods
/// <summary>
/// Draws the ticks.
/// </summary>
private void DrawTicks()
{
grid.Children.Clear();
grid.ColumnDefinitions.Clear();
for (int i = 0; i < Ticks; i++)
{
if (i == Ticks - 1)
{
var rec = AddTick(i, i);
rec.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
grid.Children.Add(rec);
}
else
{
ColumnDefinition column = new ColumnDefinition();
column.Width = new GridLength(1, GridUnitType.Star);
grid.ColumnDefinitions.Add(column);
var rec = AddTick(i, i);
grid.Children.Add(rec);
}
}
}
/// <summary>
/// Adds the tick.
/// </summary>
/// <param name="value">The value.</param>
/// <param name="index">The index.</param>
/// <returns></returns>
private ContentControl AddTick(double value, int index)
{
ContentControl tick = new ContentControl();
tick.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
tick.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
Grid.SetColumn(tick, index);
if (TickTemplate != null)
{
tick.ContentTemplate = TickTemplate;
}
return tick;
}
#endregion
}
}
|