public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); nc = new GraphControl(); nc.Dock = DockStyle.Fill; panMain.Controls.Add(nc); // TODO: Reimplement zoom! //txtZoom.Text = nc.ZoomFactor.ToString(); nc.ViewportPainter = _viewportPainter = new IOGraphViewportPainter(new IOGraphPainter()); }
/// <summary> /// Default constructor. /// </summary> public NeatGenomeView() { InitializeComponent(); graphControl1.ViewportPainter = _viewportPainter = new IOGraphViewportPainter(new IOGraphPainter()); }
/// <summary> /// Construct with the provided CPPN activation function library to draw CPPNs with (genome nodes contain an index into this library). /// </summary> /// <param name="actFnLib"></param> public CppnGenomeView(IActivationFunctionLibrary actFnLib) { InitializeComponent(); graphControl1.ViewportPainter = _viewportPainter = new IOGraphViewportPainter(new CppnGraphPainter(actFnLib)); }