Class for drawing a single cell of a grid slice.
#include <CellView.h>
Public Member Functions | |
CellView (QGraphicsItem *par=0) | |
void | setText (const QString &text) |
void | setArrow (double xVal, double yVal) |
Enables arrow display and sets x and y value xVal and yVal should not form a vector with length > 1. More... | |
void | reset () |
void | addText (const QString &s) |
void | setPDF (stencil::Direction dir, const double &val) |
Static Public Attributes | |
static const double | BLOCK_PIXEL_SIZE = 100 |
Protected Member Functions | |
void | paintVector (QPainter *p) |
void | paintTexts (QPainter *p) |
void | paintPDFs (QPainter *p) |
void | paintArrow (QPainter *p, const QPointF &src, const QPointF &dst, double arrowSize) |
virtual void | paint (QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Protected Attributes | |
QVector< QString > | texts |
bool | pdfsEnabled_ |
double | pdfs_ [9] |
bool | arrowEnabled_ |
double | arrowX_ |
double | arrowY_ |
double | vectorArrowSize |
double | pdfArrowSize |
QString | text_ |
walberla::gui::CellView::CellView | ( | QGraphicsItem * | par = 0 | ) |
|
inline |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
void walberla::gui::CellView::reset | ( | ) |
void walberla::gui::CellView::setArrow | ( | double | xVal, |
double | yVal | ||
) |
Enables arrow display and sets x and y value xVal and yVal should not form a vector with length > 1.
void walberla::gui::CellView::setPDF | ( | stencil::Direction | dir, |
const double & | val | ||
) |
|
inline |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |