OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WQtColormapper::WQtTextureListItem Class Reference

This class represents a texture item in the list widget. More...

+ Inheritance diagram for WQtColormapper::WQtTextureListItem:
+ Collaboration diagram for WQtColormapper::WQtTextureListItem:

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< WGETexture3DgetTexture () const
 Returns the associated texture. More...
 
QWidget * getWidget () const
 Create a new widget for this item. More...
 

Private Attributes

const osg::ref_ptr< WGETexture3Dm_texture
 The texture that gets handled. More...
 
QListWidget * m_parent
 Parent list. More...
 
QWidget * m_itemWidget
 Widget representing the item. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WQtTextureListItem()

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.

Parameters
texturethe texture to handle with this item
parentparent widget
cmapperthe 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().

+ Here is the call graph for this function:

◆ ~WQtTextureListItem()

WQtColormapper::WQtTextureListItem::~WQtTextureListItem ( )
virtual

Destructor.

Definition at line 238 of file WQtColormapper.cpp.

Member Function Documentation

◆ getTexture()

const osg::ref_ptr< WGETexture3D > WQtColormapper::WQtTextureListItem::getTexture ( ) const

◆ getWidget()

QWidget * WQtColormapper::WQtTextureListItem::getWidget ( ) const

Create a new widget for this item.

Returns
the widget

Definition at line 248 of file WQtColormapper.cpp.

Referenced by WQtColormapper::update().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_itemWidget

QWidget* WQtColormapper::WQtTextureListItem::m_itemWidget
private

Widget representing the item.

Definition at line 172 of file WQtColormapper.h.

Referenced by WQtTextureListItem().

◆ m_parent

QListWidget* WQtColormapper::WQtTextureListItem::m_parent
private

Parent list.

Definition at line 167 of file WQtColormapper.h.

Referenced by WQtTextureListItem().

◆ m_texture

const osg::ref_ptr< WGETexture3D > WQtColormapper::WQtTextureListItem::m_texture
private

The texture that gets handled.

Definition at line 162 of file WQtColormapper.h.

Referenced by WQtTextureListItem().


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