开发者

Diagram connector algorithm

开发者 https://www.devze.com 2023-03-28 14:04 出处:网络
I’m building an application that superficially looks like Visio, so I need to be able to connect objects together with connectors. I want to make the connectors have multiple horizontal and vertical

I’m building an application that superficially looks like Visio, so I need to be able to connect objects together with connectors. I want to make the connectors have multiple horizontal and vertical segments and be able to drag the corner of the connectors about and have them ‘intelligent开发者_如何学编程ly’ add new corners or merge into existing parts of the connector as they are dragged. It would also be nice for connectors to snake around other objects rather than crossing though them.

I figure at the very least thier must be an algorithm for this, and if I’m really lucky some nice c# code!

Any ideas?


Did you know that there is a "Visio SDK" which lets you embed editable Visio drawings in your own app? I was facing a similar problem, and I decided to let Visio solve it for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消