Exemplo n.º 1
0
        private void ShowGraphs_Click(object sender, EventArgs e)
        {
            if (Graph != null)
            {
                GenStrongConnectedComponentGraph();

                Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
                Gl.glLoadIdentity();

                DrawStrongConnectedComponents();
                DrawEdgesBetweenConnectedComponents();

                for (int i = 0; i < Graph.VerticesCount; ++i)
                {
                    DrawText2D(VertexCoords[i].X + 2, VertexCoords[i].Y + 2, (VertexCoords[i].Index).ToString());
                }

                Gl.glFlush();
                DisplayForGraph.Invalidate();
            }
            else
            {
                MessageBox.Show("Graph == null", "Error");
            }
        }
Exemplo n.º 2
0
        public HelpKsyuMainWindow()
        {
            InitializeComponent();

            DisplayForGraph.InitializeContexts();
            InitOpenGL();
        }