Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diagram connector algorithm

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 ‘intelligently’ 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?

like image 527
David Vallens Avatar asked Aug 17 '11 15:08

David Vallens


People also ask

What are connectors in algorithm?

Connector : Represents the Continuity of the flowchart in another place / page.

What is a connector in a flowchart?

Flowchart connectors are used to show the beginning and end of an object. The first shape is always the starting point, which is also referred to as the root. The last shape is called the sink.

What is flowchart and algorithm?

Algorithms and flowcharts are different mechanisms used for designing different programs, particularly in computer programming. An algorithm is a step-by-step summary of the procedure, while on the other hand, a flowchart illustrates the steps of a program graphically.


1 Answers

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.

like image 116
AShelly Avatar answered Sep 30 '22 16:09

AShelly