Page 1 of 1

create diagrams

Posted: Wed May 16, 2007 10:07 pm
by jefferds
hello, I would like to create an interface where I could build diagrams with line and components and I could define characteristics and functions for the diagram components. Which classes should I use to do that?

Re: create diagrams

Posted: Fri May 18, 2007 2:09 pm
by Ugly!
jefferds wrote:hello, I would like to create an interface where I could build diagrams with line and components and I could define characteristics and functions for the diagram components. Which classes should I use to do that?
This is kinda vague. Can you elaborate a little more? Would this be like a drawing application? Will you have to move things around? Will you be needing printing?

Regards, Mat

Posted: Sat May 19, 2007 12:31 pm
by jefferds
It is a system simulation application, where will have toolbars with icons representing the system components and line to do the connection among them.

This arrangement of components and lines given a set of input dada for a
numeric simulation program of the system. I will need to print and to
generate graphs for the simulation results.

thanks for any clue!

Posted: Sat May 19, 2007 2:23 pm
by Auria
I am still not sure what kind of graphs you are trying to do

perhaps take a look at http://wxcode.sourceforge.net/components/wxchart/

If this is not what you want, it is always posssible to draw whatever you want in a DC, using either the wxWidgets drawing functions or OpenGL.

Posted: Sat May 19, 2007 9:05 pm
by jefferds
I want to do an application like Umbrello where the components of the diagrams are elements of a system to numeric simulation. Please see
http://uml.sourceforge.net/screen.php

thanks!

Posted: Mon May 21, 2007 4:57 pm
by redrgreen
Since Umbrello is open source I would suggest that you download the source and study it, its not written in wxWidgets but is in C++ so perhaps you could modify it to use the wxWidgets library and in the process make it cross platform. Failing this you might get some ideas at least.

Posted: Mon May 21, 2007 6:37 pm
by Auria
I don't think there exists any similar component already in wxWidgets - you will probably need to draw your own (see samplesa bout drawing, DCs and all that stuff...)

Posted: Fri May 25, 2007 8:54 pm
by jefferds
thank you, you already helped me enough!