A simple class for drawing the libgerbv images using QPainter rather than the cairo library
C++
Latest commit 5fa0e52 Aug 12, 2016 @sx107 Methods renamed, layer rendering, example rewritten to the Format_Mono
Renamed the drawImageToQt -> renderImageToQt
Added the renderLayerToQt method
Rewrote the example to show why dm_TwoColors is needed

README.md

gerbvQt

A simple class for drawing the libgerbv images using QPainter rather than the cairo library.

Folders and files

  • gerbvQt - folder containing the class, one .h and one .cpp file
  • example - example of usage
  • LICENSE - GNU GPL v3 license
  • README.md - this file

Building and running the example

  1. Create the "build" folder (mkdir build)
  2. Go into it (cd build)
  3. cmake ../examples/
  4. make
  5. ./gerbvQtexample [any gerber file]
  6. The example will output to the build folder two files: test.png and cairo.png, which are generated using QPainter and cairo correspondingly.

Macro options

There are two macros options in gerbvQt.h: GERBVQT_MACRO_USE_TEMPIMAGE and GERBVQT_MACRO_CIRCLE_PRECISION.
See gerbvQt::drawMacroFlash(...) function for more info on these ones.

References

This project uses Qt, cairo and libgerbv. Links: