OpenWalnut  1.5.0dev
Public Types | Public Member Functions | List of all members
WTransferFunctionBackground Class Reference

A QGraphicsItem that displays a pixmap in the background of the scene. More...

#include <WTransferFunctionBackground.h>

+ Inheritance diagram for WTransferFunctionBackground:
+ Collaboration diagram for WTransferFunctionBackground:

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...
 

Detailed Description

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.

Member Typedef Documentation

◆ BaseClass

type of base class

Definition at line 43 of file WTransferFunctionBackground.h.

Constructor & Destructor Documentation

◆ WTransferFunctionBackground()

WTransferFunctionBackground::WTransferFunctionBackground ( WTransferFunctionWidget parent = 0x0)
explicit

Default constructor.

Parameters
parentpointer to parent widget

Definition at line 34 of file WTransferFunctionBackground.cpp.

◆ ~WTransferFunctionBackground()

WTransferFunctionBackground::~WTransferFunctionBackground ( )
virtual

Default destructor.

Definition at line 56 of file WTransferFunctionBackground.cpp.

Member Function Documentation

◆ boundingRect()

QRectF WTransferFunctionBackground::boundingRect ( ) const

Get the bounding rectangle.

Returns
the bounding rectangle

Definition at line 60 of file WTransferFunctionBackground.cpp.

◆ setMyPixmap()

void WTransferFunctionBackground::setMyPixmap ( const QPixmap &  pixmap)

Set the background pixmap that will be displayed.

In our case, this is the transfer function

Parameters
pixmapthe pixmap to display

Definition at line 43 of file WTransferFunctionBackground.cpp.

Referenced by WTransferFunctionWidget::setMyBackground().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: