OpenWalnut
1.5.0dev
|
A QGraphicsItem that displays a pixmap in the background of the scene. More...
#include <WTransferFunctionBackground.h>
Public Types | |
typedef QGraphicsPixmapItem | BaseClass |
type of base class More... | |
Public Member Functions | |
WTransferFunctionBackground (WTransferFunctionWidget *parent=0x0) | |
Default constructor. More... | |
virtual | ~WTransferFunctionBackground () |
Default destructor. More... | |
QRectF | boundingRect () const |
Get the bounding rectangle. More... | |
void | setMyPixmap (const QPixmap &pixmap) |
Set the background pixmap that will be displayed. More... | |
A QGraphicsItem that displays a pixmap in the background of the scene.
Compared to the QT implementation, the function setMyPixmap (which has to be used because setPixmap is not virutal) scales the item to the size of the scene, so it covers the entire area.
Definition at line 39 of file WTransferFunctionBackground.h.
type of base class
Definition at line 43 of file WTransferFunctionBackground.h.
|
explicit |
Default constructor.
parent | pointer to parent widget |
Definition at line 34 of file WTransferFunctionBackground.cpp.
|
virtual |
Default destructor.
Definition at line 56 of file WTransferFunctionBackground.cpp.
QRectF WTransferFunctionBackground::boundingRect | ( | ) | const |
Get the bounding rectangle.
Definition at line 60 of file WTransferFunctionBackground.cpp.
void WTransferFunctionBackground::setMyPixmap | ( | const QPixmap & | pixmap | ) |
Set the background pixmap that will be displayed.
In our case, this is the transfer function
pixmap | the pixmap to display |
Definition at line 43 of file WTransferFunctionBackground.cpp.
Referenced by WTransferFunctionWidget::setMyBackground().