A class to draw images of the grid.
More...
#include <writer.h>
|
| GridImage (World &world, QColor bg=Qt::black, QObject *parent=0) |
| create the image and painter, setting the background and size More...
|
|
void | drawSites (QList< int > &sites, QColor color, int layer) |
| draw some sites More...
|
|
void | drawCharges (QList< ChargeAgent * > &charges, QColor color, int layer) |
| draw some sites More...
|
|
void | save (QString name, int scale=3) |
| save the image to a file More...
|
|
A class to draw images of the grid.
LangmuirCore::GridImage::GridImage |
( |
World & |
world, |
|
|
QColor |
bg = Qt::black , |
|
|
QObject * |
parent = 0 |
|
) |
| |
create the image and painter, setting the background and size
- Parameters
-
world | Reference to the world object |
bg | Background color |
parent | parent QObject |
void LangmuirCore::GridImage::drawCharges |
( |
QList< ChargeAgent * > & |
charges, |
|
|
QColor |
color, |
|
|
int |
layer |
|
) |
| |
draw some sites
- Parameters
-
charges | A list of ChargeAgents, which have site ids
- could be the list of electrons
- could be the list of holes
|
color | The color of the points |
layer | Which layer are we drawing? its a 2D image |
void LangmuirCore::GridImage::drawSites |
( |
QList< int > & |
sites, |
|
|
QColor |
color, |
|
|
int |
layer |
|
) |
| |
draw some sites
- Parameters
-
sites | A list of integers that are site ids
- could be the list of trap ids
- could be the list of defect ids
|
color | The color of the points |
layer | Which layer are we drawing? its a 2D image |
void LangmuirCore::GridImage::save |
( |
QString |
name, |
|
|
int |
scale = 3 |
|
) |
| |
save the image to a file
- Parameters
-
name | A file name that is passed to a OutputInfo object, the output is assummed png |
scale | Multiply the image by some scale, increasing the resolution |
QImage LangmuirCore::GridImage::m_image |
|
private |
QPainter LangmuirCore::GridImage::m_painter |
|
private |
the painter that paints the image
World& LangmuirCore::GridImage::m_world |
|
private |
reference to the world object
The documentation for this class was generated from the following file:
- /home/adam/opt/langmuir/src/langmuirCore/include/writer.h