src/GraphLib/Renderer.cpp
// Scale the nodes within the canvas dimensions
// Keep a distance to the canvas edges of half a node radius
Scale the nodes within the canvas dimensions
Keep a distance to the canvas edges of half a node radius
Scale the nodes within the canvas dimensions Keep a distance to the canvas edges of half a node radius
void Renderer::Paint(Draw& id) {
	id.DrawRect(pt_sz, White());
	for(int i = 0; i < graph->edges.GetCount(); i++) {
		Edge& edge = graph->edges[i];
		DrawEdge(id, edge);
	}
	for(int i = 0; i < graph->nodes.GetCount(); i++) {
		Node& node = graph->nodes[i];
		DrawNode(id, node);
	}
}
void Renderer :: Paint ( Draw & id ) { id . DrawRect ( pt_sz , White ( ) ) ; for ( int i = 0 ; i < graph -> edges . GetCount ( ) ; i ++ ) { Edge & edge = graph -> edges [ i ] ; DrawEdge ( id , edge ) ; } for ( int i = 0 ; i < graph -> nodes . GetCount ( ) ; i ++ ) { Node & node = graph -> nodes [ i ] ; DrawNode ( id , node ) ; } }
Scale the nodes within the canvas dimensions
Keep a distance to the canvas edges of half a node radius
Scale the nodes within the canvas dimensions Keep a distance to the canvas edges of half a node radius