28 #include "QStyleOption" 
   29 #include "QGraphicsSceneMouseEvent" 
   31 #include "WTransferFunctionBackground.h" 
   32 #include "WTransferFunctionWidget.h" 
   40     setPos( QPointF( 0, 0 ) );
 
   45     if( newpixmap.width() > 0 && newpixmap.height() > 0 )
 
   48         QTransform m( scene()->sceneRect().width()/( 
double )newpixmap.width(), 0, 0,
 
   49                       0, scene()->sceneRect().height()/( 
double )newpixmap.height(), 0,
 
   53     BaseClass::setPixmap( newpixmap );
 
   62     return scene()->sceneRect();
 
WTransferFunctionBackground(WTransferFunctionWidget *parent=0x0)
Default constructor.
 
void setMyPixmap(const QPixmap &pixmap)
Set the background pixmap that will be displayed.
 
QRectF boundingRect() const
Get the bounding rectangle.
 
virtual ~WTransferFunctionBackground()
Default destructor.