A simple class for drawing the libgerbv images using QPainter rather than the cairo library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Methods renamed, layer rendering, example rewritten to the Format_Mono Aug 12, 2016
gerbvQt
LICENSE Initial commit Aug 10, 2016
README.md Added partial macros support. Aug 11, 2016

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: