We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下のコードで0番目と2番目のノードが重なって配置される
#include <Siv3D.hpp> // OpenSiv3D v0.6 #include "GraphDrawing.hpp" class LabelGraphVisualizer : public BasicGraphVisualizer { public: explicit LabelGraphVisualizer(const Font& font) : BasicGraphVisualizer{} , m_labelFont(font) {} virtual ~LabelGraphVisualizer() = default; virtual void drawNode(const Vec2& pos, GraphEdge::IndexType nodeIndex) const override { m_labelFont(nodeIndex).drawAt(pos); } Font m_labelFont; }; void Main() { const ConnectedGraph graph = { { {0, 1}, {1, 2}, {2, 0}, {1, 3}, {3, 4}, } }; const LayoutForceDirected layout{ graph, ForceDirectedConfig{.startImmediately = StartImmediately::Yes } }; LabelGraphVisualizer visualizer{ Font{ 24 } }; while (System::Update()) { layout.draw(visualizer); } }
The text was updated successfully, but these errors were encountered:
agehama
No branches or pull requests
以下のコードで0番目と2番目のノードが重なって配置される
The text was updated successfully, but these errors were encountered: