OpenWalnut
1.5.0dev
|
This class represents a texture item in the list widget. More...
Public Member Functions | |
WQtTextureListItem (const osg::ref_ptr< WGETexture3D > texture, WQtColormapper *cmapper, QListWidget *parent=0) | |
Creates new instance of list item. More... | |
virtual | ~WQtTextureListItem () |
Destructor. More... | |
const osg::ref_ptr< WGETexture3D > | getTexture () const |
Returns the associated texture. More... | |
QWidget * | getWidget () const |
Create a new widget for this item. More... | |
Private Attributes | |
const osg::ref_ptr< WGETexture3D > | m_texture |
The texture that gets handled. More... | |
QListWidget * | m_parent |
Parent list. More... | |
QWidget * | m_itemWidget |
Widget representing the item. More... | |
This class represents a texture item in the list widget.
It provides the pointer to the texture it manages.
Definition at line 128 of file WQtColormapper.h.
WQtColormapper::WQtTextureListItem::WQtTextureListItem | ( | const osg::ref_ptr< WGETexture3D > | texture, |
WQtColormapper * | cmapper, | ||
QListWidget * | parent = 0 |
||
) |
Creates new instance of list item.
It takes the texture it handles as argument.
texture | the texture to handle with this item |
parent | parent widget |
cmapper | the colormapper widget managing updates for this item. |
Definition at line 125 of file WQtColormapper.cpp.
References WQtPropertyGroupWidget::createPropertyGroupBox(), WPropertyStringWidget::disableTextInteraction(), WPropertyWidget::forceInformationMode(), WQtGui::getMainWindow(), m_itemWidget, m_parent, m_texture, and string_utils::tokenize().
|
virtual |
Destructor.
Definition at line 238 of file WQtColormapper.cpp.
const osg::ref_ptr< WGETexture3D > WQtColormapper::WQtTextureListItem::getTexture | ( | ) | const |
Returns the associated texture.
Definition at line 243 of file WQtColormapper.cpp.
Referenced by WQtColormapper::handleTextureClicked(), WQtColormapper::moveItemBottom(), WQtColormapper::moveItemDown(), WQtColormapper::moveItemTop(), WQtColormapper::moveItemUp(), WQtColormapper::rowsMoved(), WQtColormapper::selectTexture(), and WQtColormapper::update().
QWidget * WQtColormapper::WQtTextureListItem::getWidget | ( | ) | const |
Create a new widget for this item.
Definition at line 248 of file WQtColormapper.cpp.
Referenced by WQtColormapper::update().
|
private |
Widget representing the item.
Definition at line 172 of file WQtColormapper.h.
Referenced by WQtTextureListItem().
|
private |
|
private |
The texture that gets handled.
Definition at line 162 of file WQtColormapper.h.
Referenced by WQtTextureListItem().