Hi,

You have to write your algorithm to make the symbols on the diagram.
You define your objects in javascript with properties and methods. The
actual drawing can be done by putting SVG element on your canvas with
appendChild. The SVG objects have links to the javascript objects.

See how we did it in open-modeling look in /diagram/flowchart/ here is
a complex algorithm to determine positions of symbols on a flowchart.
Download it at http://sourceforge.net/projects/open-modeling (feedback
welcome). In the war file you find the code. Src directories contains
the code readable.

John


--- In [email protected], "r_v_putten" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I had sent a message 90 minutes ago, but used a wrong mail address so
> it probably got rejected... I'll just copy it here.
> 
> One note: Mark might be right about database+xslt+whatever being
> simpler (I haven't used xslt yet), but as a proficient C/C++
> programmer who is used to working with flat ascii files, this might
> get you to the point in a shorter time, because you don't have to
> learn a new concept. If you knew you had to work on the project for
> the next 4 years, my suggestion is xslt/whatever, for a project in a
> very short time, it's C++.
> 
> And now the old message:
> 
> Hello Chris,
> 
> > I'm new to SVG. I've never used it before but i want to use it to
> generate images that can be used in Visio (which can open SVG),
> possibly convert to PDF and also view on the web. The images will be
> generated by a program i want to write which will interpret some data
> in a database.
> 
> My first suggestion is to check if Visio really can open all of SVG.
> SVG is a really complex thing, so if you take one program that outputs
> SVG, I don't think another program that inputs SVG can necessarily
> understand everything correctly.
> 
> > Basically i'm making schematics for a wiring diagram and i will have
> connector types saved in a database as well as to/from pin routings.
> From this data i want to generate the schematic using SVG.
> >
> > I'm proficient in C/C++ but i'm not sure where to begin. Is there an
> SVG SDK for C/C++ out there somewhere?
> 
> I'm a C/C++ programmer too, and if I had to do such a thing today, I
> would probable just output text files from my program. That way you
> can control what's in the SVG and that Visio will understand it. An
> XML library might be of help, but it shouldn't even be necessary. I
> think I'd chose fprintf().
> 
> My suggestion would be to read a book about SVG and then use it like
> an operating systems drawing functions. Lines and rects are no problem
> at all, transformations and scaling is easy if you extensively used a
> graphics lib before. Reusing parts of the graphic with <defs /> and
> <use /> will come in quite handy. There are many more things that SVG
> can do but you will probably not need them.
> 
> Just two cents from an advanced SVG beginner.
> 
> Raoul




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h5ogvbr/M=362335.6886445.7839731.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123012708/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to