Paints a librepcb::Board in realistic mode to a QPainter.
More...
#include <realisticboardpainter.h>
Paints a librepcb::Board in realistic mode to a QPainter.
Similar to librepcb::BoardPainter, but rendering physical layers instead of logical layers, i.e. the output will be a realistic PCB with gray body, golden copper, (typically) green solder resist and (typically) white silkscreen instead of just rendering all objects the same way as on screen.
Used in conjuction with librepcb::GraphicsExport. Colors are obtained from librepcb::SceneData3D and whether the top or the bottom side is rendered is controlled by librepcb::GraphicsExportSettings::getMirror().
- See also
- librepcb::GraphicsPagePainter
-
librepcb::GraphicsExport
-
librepcb::SceneData3D
◆ RealisticBoardPainter() [1/3]
◆ RealisticBoardPainter() [2/3]
◆ RealisticBoardPainter() [3/3]
◆ ~RealisticBoardPainter()
◆ paint()
Draw page content on a QPainter.
- Attention
- This method must be thread-safe as it might be called from multiple threads at the same time!
- Note
- Most settings are already handled by librepcb::GraphicsExport and should not be taken into account when implementing this method. In particular, any page layout or coordinate transformations do not need to be respected by this implementation. And for layer colors, just use librepcb::GraphicsExportSettings::getColor() and librepcb::GraphicsExportSettings::getFillColor().
- Parameters
-
painter | Where to paint the content to. |
settings | Helper class to fetch layer colors depending on the current export settings. |
Implements GraphicsPagePainter.
◆ operator=()
◆ getContent()
◆ mMaxArcTolerance
◆ mData
◆ mDrawSolderPaste
◆ mMutex
◆ mDataPreprocessed
◆ mContentTop
◆ mContentBot
The documentation for this class was generated from the following files: