DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TSimpleGraph extended
Goto page Previous  1, 2, 3  Next
 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 08/10/04 15:50    Post subject: Reply with quote

I forgot that rectangle connector option is already implemented, you are right. This will not be enhacement.
I am not an expert on svg, my way is learning "on the fly". We will have to check it and if there is nothing appropriate, maybe to enhance svg a little.
Cheers

_________________
Pavel
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 385
Location: Tehran, Iran

PostPosted: 08/10/04 16:43    Post subject: Reply with quote

Hi guys,

I'm glad to see you so active here.

I too agree with the MPL license. And, please just feel free to do whatever you want regarding the component.

Good luck,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 10/10/04 16:43    Post subject: Reply with quote

Hi guys,

The sourceforge project is now pending. We will probably get an answer this week. I'll report any progress in the process.

Pavel, I'll have to get back to you on the SVG connection points. I'm a bit busy the next day or two so I'll probably have my questions ready after that.

Cheers,
Stefan
Back to top
View user's profile Send e-mail
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 12/10/04 08:23    Post subject: Reply with quote

Hello all,

Good news! The project has been approved for SourceForge, it can now be found on http://sourceforge.net/projects/extgraph/
and the webspace is available at http://extgraph.sourceforge.net (though there's no site there yet).

I think it would be wise to keep the discussion here for a while though, up until we are beyond the planning stage.
I'll upload the latest version of TSimpleGraph for the time being.

More good news, development for the polylines and routing is taking shape. It is quite a daunting task however, but we did expect that.

Cheers,
Stefan
Back to top
View user's profile Send e-mail
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 13/10/04 11:48    Post subject: Reply with quote

More good news...

I've finished the routing algo, it works much the same way as I described it. I'll upload a couple of screenshots later today...
It adds a variable ammount of weight to the changing of direction, it adds weight to the crossing of another GraphLink and it avoides GraphNodes and their bubbles (which are variable in size, depending on the user's settings).

Cheers,
Stefan
Back to top
View user's profile Send e-mail
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 14/10/04 08:00    Post subject: Screenshots Reply with quote

Here are the screenshots...
The red line is the path it has to find from node (0,0) to (50,30) which is somewhere in the lower-right regions of the "grid" (as you can see)...



and this is how.JPG
 Description:
Green is a valid square, red squares are invalid, thin red lines is the algo looking for a path, fat red line is the path...
 Filesize:  339.2 KB
 Viewed:  165 Time(s)





drawing-before gridding.JPG
 Description:
See how this drawing is "gridded" in the previous picture
 Filesize:  295.58 KB
 Viewed:  165 Time(s)

drawing-before gridding.JPG



Screen3.JPG
 Description:
Lots in the way
 Filesize:  326.8 KB
 Viewed:  165 Time(s)

Screen3.JPG



Screen2.JPG
 Description:
One node in the way
 Filesize:  356 KB
 Viewed:  165 Time(s)

Screen2.JPG



Screen1.JPG
 Description:
Simple view
 Filesize:  364.14 KB
 Viewed:  165 Time(s)

Screen1.JPG


Back to top
View user's profile Send e-mail
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 17/10/04 19:30    Post subject: SVG Reply with quote

Hi Stefan,
I have made some prototype, too.
I have extended Simplegraph so that you can select svg file and it is parsed and partially displayed.
Implemented are:
- path in the from lines
- rectangles
SVG file can be edited so that XML editor is called.

I think that we should co-ordinate development a little, now.

Pavel

_________________
Pavel
Back to top
View user's profile
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 18/10/04 12:12    Post subject: extgraph progress Reply with quote

Hello all,

Pavel, as you know you have been added to the SF project. Also, coordination will be a lot easier now as we can use all of SF's project-management capabilities such as the task-manager, bug-tracker, CVS, and so on...
Anyone else interested in developing/testing should register with sourceforge and give Pavel or me an email with your SF-loginname and an indication on what you plan to do to help.

Pavel: vrecion [at] users . sourceforge . net
Stefan: stefanmelis [at] users . sourceforge . net

I also have some good news regarding the PolyLine support, see attached screenshots for details...

Cheers,
Stefan



polyline3.GIF
 Description:
Mutliple connections
 Filesize:  31.08 KB
 Viewed:  143 Time(s)

polyline3.GIF



polyline2.GIF
 Description:
Putting something in its way
 Filesize:  31.38 KB
 Viewed:  143 Time(s)

polyline2.GIF



polyline.GIF
 Description:
Simple connection of two nodes
 Filesize:  30.47 KB
 Viewed:  143 Time(s)

polyline.GIF


Back to top
View user's profile Send e-mail
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 18/10/04 15:44    Post subject: Reply with quote

Well done, but if we will be so fast, what we will do tomorrow?
Pavel

_________________
Pavel
Back to top
View user's profile
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 19/10/04 07:22    Post subject: Reply with quote

hahaha... whatever should we do...
euhm...? improve it! Smile
seriously, it''s not all that good yet, it's slow as hell and still will take me more of the week / month to improve it to anything stable

Still you have a point.... what else is on people's wishlists?

Stefan
Back to top
View user's profile Send e-mail
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 19/10/04 07:56    Post subject: SVG Reply with quote

Hi all readers,

I have worked a little on svg glyphs.
Now I have implemented some really basic subset of svg tags.
Nevertheless I think that basic framework, that can be extended is already in place meaning that:
- svg file (which is pure xml) is opened and parsed into DOM model
- glyphs borders are calculated
- rectangles and/or lines are displayed, rest is omitted
- doubleclick displays integrated xml editor

Attached are some screen shots, including drawing glyph in svg editor (Inkscape). I hope that it gives some picture of current state.
During the work I found that:
- there is a "svg jungle", while many editors saves svg in enhanced formats (Inkscape, Sodipodi ..). Others like Corel Draw 11 seems to convert svg incorrectly (I did not studied it deeply, so I do not know if the problem was on side of Corel or SVG editor I have used)
- generaly SVG support in vector editors, inet browsers is far from ideal, but it seems to gain ground.

But I have also found that svg can be format of extended graph, while all currently implemented objects (rectangle, ellipse, polygon, link ...) can be described in svg syntax, even if we will strictly use w3c.org specs without enhancements.
This will enable to save graph and use it for example on the web without any conversion (supposing that mainstream browsers will became "svg enabled") or imported into other vector editors.

And finally ... is out of there volunteer that will help to implement other svg objects (like circles, Bezier curves) and features like gradient fill? There are interesting problems, that will train your brain.
Dear new volunteer country and humankind needs you.

Pavel



XMLEditor.gif
 Description:
 Filesize:  36.61 KB
 Viewed:  123 Time(s)

XMLEditor.gif



SVGGlyph.gif
 Description:
 Filesize:  21.51 KB
 Viewed:  123 Time(s)

SVGGlyph.gif



InkscapeSVG.gif
 Description:
 Filesize:  33.83 KB
 Viewed:  123 Time(s)

InkscapeSVG.gif



_________________
Pavel
Back to top
View user's profile
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 21/10/04 14:46    Post subject: Reply with quote

Hi dear reader.
we, Stefan and I, have had some direct discussion about further development that we would like to summarize as a list of questions we agreed on and which will become project tasks:

- There should be an option of user defined connection points.
- Definition of connection points is done as a part of designing shape.
- We will try to find a SVG feature for connetion points, if there is no appropriate, we will make proprietary enhancement to SVG format, similarly to sodipodi/inkscape... extensions.
- There should be some default connection points.
- Default points algorithm. During programming of optimized connector lines, we will see which approach gives the best results. So far we have in store algoritms: center based; edge division predefined and dynamic; minimal path. Center based will be easiest (as it is already implemented) edge division will by hard (?) as we will have to (dynamicilly) decide what part of the drawing is an edge (this could be troublesome when there are single lines in a drawing).
- Design of user defined connection points. Idea is based on using external shape/glyph designer, so connection points in best case scenario should be defined there.
- Current shapes (Rectangle, Circle ...) should be reimplemented so that we will have one mechanism. There is question of backward compatibility, but it is probably solveable.
- Format of shapes. Clean solution will be svg only. Vector (WMF, EMF, SVG) and bitmap formats (GIF, JPEG, BMP), are not interchangeable. To minimize this complexity it should be imported to svg using appropriate svg editor. Standardizing on SVG would be a good thing. This will even be quite helpful in determining ConnectionPoint position and such.

_________________
Pavel
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 385
Location: Tehran, Iran

PostPosted: 21/10/04 19:17    Post subject: Reply with quote

Hi guys,

You are going so fast indeed, my compliments!

I'm going to update SimpleGraph's page on DELPHI AREA to inform visitors about your movement. Do you need anything particular to appear on the page?

Greetings,
Kambiz

P.S. Sorry for not being here for a couple of days.
Back to top
View user's profile Send e-mail Visit poster's website
pavel
Member


Joined: 29 Sep 2004
Posts: 15
Location: Czech Republic; Prague

PostPosted: 21/10/04 19:41    Post subject: Reply with quote

Thanx for appreciation, even premature one.
maybe you can mention that there is possibility to join and volunteers are welcomed.
Expecially svg features can be implemented step by step and there is good opportunity to work on relatively small and separated problems like Bezier curves.

_________________
Pavel
Back to top
View user's profile
Stefan
Member


Joined: 27 Sep 2004
Posts: 22
Location: Netherlands

PostPosted: 22/10/04 08:37    Post subject: Reply with quote

Thanks Kambiz Smile

I agree with Pavel. We could use help, especially with the SVG implementation. Other things aswell by the way, ideas on what to implement are more than welcome too!
Back to top
View user's profile Send e-mail
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group