An IViewportPainter that paints IOGraph objects.
Inheritance: IViewportPainter
コード例 #1
0
		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());
		}
コード例 #2
0
ファイル: NeatGenomeView.cs プロジェクト: colgreen/sharpneat
 /// <summary>
 /// Default constructor.
 /// </summary>
 public NeatGenomeView()
 {
     InitializeComponent();
     graphControl1.ViewportPainter = _viewportPainter = new IOGraphViewportPainter(new IOGraphPainter());
 }
コード例 #3
0
 /// <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));
 }