Arc Link in SimpleGraph

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Arc Link in SimpleGraph

Postby Marcelo Salas » June 16th, 2008, 10:18 pm

Hi...

I'm newbie using TSimpleGraph.
I need to know if it's possible to construct an Arc Link object additional to TGraphLink.

How can I do it?

Regards.

Marcelo
Marcelo Salas
Active Member
Active Member
 
Posts: 5
Joined: June 16th, 2008, 10:11 pm

Postby Kambiz » June 21st, 2008, 8:56 am

Hi,

You should subclass TGraphLink to replace each segment of link lines with a Bézier curve. I guess you will find some could at http://sourceforge.net/projects/extgraph/.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Marcelo Salas » June 25th, 2008, 7:08 pm

Hi Kambiz...

Thanks for your reply...
I was reviewing the code of extgraph project. I extracted TBezierLink code and push it on TSimplegraph extended (this is my little contribution).

Finally TSimpleGraph have the following new features:
1.- TBezierLink and TCurveLink are based on Stefan Melis code (extgraph Project), allows to draw an arc link between two nodes.
In addition, those links can hook the same node.
2.- TInitUMLNode and TFinishUMLNode draws Initial and Finish Nodes
according to UML State Diagrams

Problems:
1.- When TBezierLink is created, the 4 points used for drawing the
initial curve are not created correctly. I need some help to solve this problem.

I attach a picture with the new features and the complete project for others (in Delphi 2007).

Sincerely
Marcelo
Attachments
DemoDiagramaEstado.JPG
DemoDiagramaEstado.JPG (48.96 KiB) Viewed 3146 times
SimpleGraph263Beta.rar
TSimpleGraph Project extended
(696.18 KiB) Downloaded 288 times
Marcelo Salas
Active Member
Active Member
 
Posts: 5
Joined: June 16th, 2008, 10:11 pm

Postby Kambiz » June 26th, 2008, 10:28 am

It looks very nice, my compliments.

I don't have exprience on Bezier Curves, so I can't help you for solving the problem, sorry.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby kokkoras » June 28th, 2008, 3:25 pm

The picture looks great! Where is the problem ?
Fotis
User avatar
kokkoras
Moderator
Moderator
 
Posts: 317
Joined: March 12th, 2005, 11:19 pm
Location: Thessaloniki, Greece


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron