-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "H.S.Rai" == H S Rai <[EMAIL PROTECTED]> writes:
H.S.Rai> On Feb 12, 2008 7:53 PM, Kunal Ghosh <[EMAIL PROTECTED]> wrote:
H.S.Rai> [ Warning: Programmer related stuff ]
>> CAD for drawing primitives may fall in geometry / mechanical drawings
>> / Schematic drawings / PCB drawings / Architectural etc.
H.S.Rai> Drawing primitives (lines, circles) through programming.
H.S.Rai> Once such primitives are available through some software,
H.S.Rai> that software may be used by Mechanical Engineers or
H.S.Rai> Architects. I am asking about development of CAD software.
This is a cool idea. First you need to be clear on what kind of
graphics system you're targetting. Framebuffer, or X server. For
framebuffer, you can try directfb[1], and for X server, you should try
Xlib[2] or XCB[3]. I've never worked with directfb, so now ideas about
the API.
But you can check out following examples of them:
Xlib API example
http://en.wikipedia.org/wiki/Xlib
XCB API example
http://en.wikipedia.org/wiki/XCB
X11 Specification Documents
http://www.xfree.org/current/specindex.html
http://www.x.org/docs/
XCB provides the most low-level interface to interact with X
server. Xlib is also the same thing with different nomenclature plus
some additional helper functions.
Its good for students to have their first X programming experience
with these libraries as these will make them aware of concepts of X
server. Once they're familiar with protocol, they can use toolkits,
since they'll now understand the importance of toolkit.
OR they can simply start using X toolkits like GTK[4], Qt[5],
GNUstep[6], Xt[7], Lesstif[8], Tk[9], etc., without wasting time with
Xlib :) .
>> All can be
>> implemented using C under Linux
H.S.Rai> For graphics, which library to be used?
Cairo[10] is a cool graphics library, which these days couple of the X
applications use. It has _python_ bindings available.
>> or using packages like PCAD or Kdraw
H.S.Rai> Can you give URL. I got www.pacd.com, which I guess is not
H.S.Rai> what you want to convey.
H.S.Rai> As such for end user, QCAD looks good choice. But this is
H.S.Rai> not my requirement.
You should also check out, Xfig[11], and BRLCAD[12].
>> CAD for accessing peripherals is something new to me.
H.S.Rai> To get user data using keyboard (arrow keys), mouse and
H.S.Rai> giving output to plotter.
Generating HPGL output, which can be cat-ed to a HPGL capable plotter device.
H.S.Rai> Thanks for your email.
BtW, there is a Python version of xlib available[13].
References:
[1] - http://www.directfb.org/
[2] - http://en.wikipedia.org/wiki/Xlib
[3] - http://xcb.freedesktop.org/
[4] - http://www.gtk.org/
[5] - http://trolltech.com/products/qt
[6] - http://www.gnustep.org/
[7] - http://en.wikipedia.org/wiki/Xt
[8] - http://www.lesstif.org/
[9] - http://www.tcl.tk/
[10] - http://cairographics.org/
[11] - http://www.xfig.org/
[12] - http://www.brlcad.org/
[13] - http://python-xlib.sourceforge.net/
HTH
- --
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
freed.in | freedom in technology and software | 22-24 February 2008 | Delhi
··-· ·-· · · -·· ·-·-·- ·· -· ··--- ----- ----- ---··
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHtcp3Hy+EEHYuXnQRAnsgAJ4wdx4jg5FP2EtKEmjNSLrrmORlWQCgoL/F
V9Gva1FxtSmQtfiM+EtTHDo=
=7otT
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help