25 #ifndef WQTCOLORMAPPER_H
26 #define WQTCOLORMAPPER_H
31 #include <QDockWidget>
32 #include <QListWidget>
33 #include <QListWidgetItem>
34 #include <QPushButton>
35 #include <QVBoxLayout>
36 #include <boost/signals2/signal.hpp>
38 #include "../guiElements/WQtDockWidget.h"
39 #include "core/common/WSharedObject.h"
40 #include "core/common/WSharedSequenceContainer.h"
41 #include "core/graphicsEngine/WGETexture.h"
150 const osg::ref_ptr< WGETexture3D >
getTexture()
const;
186 void rowsMoved(
const QModelIndex& sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex& destinationParent,
int destinationRow );
Base class for all data set types.
This class represents a texture item in the list widget.
const osg::ref_ptr< WGETexture3D > getTexture() const
Returns the associated texture.
const osg::ref_ptr< WGETexture3D > m_texture
The texture that gets handled.
virtual ~WQtTextureListItem()
Destructor.
QWidget * m_itemWidget
Widget representing the item.
QWidget * getWidget() const
Create a new widget for this item.
QListWidget * m_parent
Parent list.
WQtTextureListItem(const osg::ref_ptr< WGETexture3D > texture, WQtColormapper *cmapper, QListWidget *parent=0)
Creates new instance of list item.
This widget controls the colormapper of openwalnut.
void moveItemUp()
change order of items, move currently selected item up
WQtColormapper(QWidget *parent=0)
Default constructor.
QListWidget * m_textureListWidget
pointer to the tree widget
QVBoxLayout * m_layout
Layout of the widget.
void update()
Update the list view from the list of data sets.
void selectTexture(std::shared_ptr< WDataSet > dataSet)
Select a certain texture in the texture sorter belonging to the specified dataset.
virtual bool event(QEvent *event)
Custom event dispatcher.
boost::signals2::connection m_replaceConnection
Connection of the WGEColormapping signal "replaced" to the member function pushUpdateEvent.
void moveItemTop()
change order of items, move currently selected item to top
boost::signals2::connection m_deregisterConnection
Connection of the WGEColormapping signal "deregistered" to the member function pushUpdateEvent.
virtual ~WQtColormapper()
Destructor.
void moveItemBottom()
change order of items, move currently selected item to bottom
boost::signals2::connection m_sortConnection
Connection of the WGEColormapping signal "Sort" to the member function pushUpdateEvent.
void textureSelectionChanged(osg::ref_ptr< WGETexture3D > texture)
Indicates that a texture has been clicked and return the texture.
void handleTextureClicked()
Handles a click to a texture in the list.
void pushUpdateEvent()
Called by the colormapper causing an update event being pushed to the event queue.
void rowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
A item was moved into another row.
void moveItemDown()
change order of items, move currently selected item down
boost::signals2::connection m_registerConnection
Connection of the WGEColormapping signal "registered" to the member function pushUpdateEvent.