Page 2 of 3

PostPosted: February 7th, 2006, 10:17 pm
by kokkoras
so, may I expect a link categorisation like the one we have for nodes?

Can I distinguise between various link types?


nice work, BTW.
thanks


Fotis

PostPosted: February 7th, 2006, 10:25 pm
by kokkoras
Kambiz wrote:
  • Implemented but needs some adjustments: Links not only can be between two nodes, but also can be between a link and a node, or even between two links.


That makes me anxious. Can I still use the old good link which has a start and an end hooked into the center of nodes?

Fotis

PostPosted: February 7th, 2006, 10:31 pm
by kokkoras
Kambiz wrote:To satisfy your curiosity, here is a snapshot of SimpleGraph in this stage.


Nice arrows!!! are they polylines like in the old version?

PostPosted: February 7th, 2006, 10:51 pm
by Kambiz
kokkoras,

Currently there's only one link class. Maybe for lines (links without source/target objects) I force to use a separate class, but it's low probable.

I'm trying to improve things. The old bahaviours will remain untouched. :cf:

PostPosted: February 7th, 2006, 10:56 pm
by Kambiz
A link is a polyline: two endpoints and some optional breakpoints. An endpoint can be fixed or can be relative to an object.

In the screenshot, if you see branches in a link, actually they are some links which are linked together.

PostPosted: February 8th, 2006, 1:12 am
by Kambiz
To clear more the consept of new links, I colored links of the previous screenshot.

The only thing left, is managing mouse and keyboard actions. :)

EndPoints

PostPosted: February 8th, 2006, 8:14 am
by sergisan
Kambiz,

Will it be possible to define which points of the node are inputs are wich are

outputs and how many points has a node ?

I mean, suppose I want the inputs to a node be always at the top of the

node but i want the outputs be Right and Left if it is a TRhomboidalNode (3

points) and only bottom if it is a TRectangularNode ( 2 points).

Sergi.

PostPosted: February 8th, 2006, 9:16 am
by elias
:)
Hahaha It's magic!
(Queen, 1991)

PostPosted: February 8th, 2006, 11:02 am
by Kambiz
Sergi,

  • As before, only two endpoints of a link can have the arrow.
  • The number of breakpoints are logically unlimited.
  • The links use the shortest path to connect to a linked object. However, using breakpoints you can define the conection path.

PostPosted: February 8th, 2006, 12:45 pm
by kokkoras
Kambiz wrote:Sergi,

  • The links use the shortest path to connect to a linked object. However, using breakpoints you can define the conection path.


So, initialy, we create an ordinary link and then, if we wish, we add breakpoints. Am I right or am I right? :D

PostPosted: February 8th, 2006, 5:59 pm
by Kambiz
You are both right!

You can add breakpoints either after linking two objects or while inserting the link.

PostPosted: February 9th, 2006, 1:09 am
by kokkoras
Kambiz wrote:...or while inserting the link.


click, click, click, link!

very professional, as always

Fotis

PostPosted: February 20th, 2006, 12:53 pm
by Adem
Hi guys,

I wound up here while looking for a Delphi-native alternative to Graphviz/Dot, and I must say I am impressed with what you're doing.

I'd like to know if TSimpleGraph also contains the necessary code to automatically place the nodes (a la Dot) after I --of course-- tell it which nodes are linked.

Cheers,
Adem

PostPosted: February 20th, 2006, 1:01 pm
by kokkoras
Adem wrote:Hi guys,

I wound up here while looking for a Delphi-native alternative to Graphviz/Dot, and I must say I am impressed with what you're doing.

I'd like to know if TSimpleGraph also contains the necessary code to automatically place the nodes (a la Dot) after I --of course-- tell it which nodes are linked.

Cheers,
Adem


yes (to all)

PostPosted: February 22nd, 2006, 12:28 am
by Adem
[quote="kokkoras"][quote="Adem"]Hi guys,
I'd like to know if TSimpleGraph also contains the necessary code to automatically place the nodes (a la Dot) after I --of course-- tell it which nodes are linked.[/quote]

yes (to all)[/quote]

Hi,

That's great. And, now the next question: How? :-)

This is what I wish to do:

I have a list of nodes that link to one another (say, a website map) and I'd like to use TSimpleGraph to generate (programmatically) the diagram to help me visualize it.

It would be beyond me to place each and every node on TSimpleGraph. I'd like TSimpleGraph to handle this if possoble.

It would also be be beyond me to optimize (somehow) the positions of all the nodes according to link length (or whatever else).

IOW, I am hoping (dreaming) that TSimpleGraph handles these issues for me.

I went through the docs but could locate a starting point.

Could someone help --a piece of code snippet would be most welcome :-)

Cheers,
Adem