FlowVis 1.0
|
Layer Configuration Widget. More...
#include <LayerWidget.h>
Public Slots | |
void | channelCountChanged (int channels) |
Number of channels changed. | |
Signals | |
void | buttonClicked (int button, LayerWidget *sender) |
Button clicked. | |
void | typeChanged (int newType, LayerWidget *sender) |
Type changed. | |
void | channelChanged (int newChannel, LayerWidget *sender) |
Channel changed. | |
void | transferImageUpdated (const QImage &image, LayerWidget *sender) |
Transfer function changed. | |
Public Member Functions | |
LayerWidget (QWidget *parent=NULL) | |
Private Slots | |
void | downButtonClicked () |
Button Down clicked. | |
void | upButtonClicked () |
Button Up clicked. | |
void | removeButtonClicked () |
Button Remove clicked. | |
void | typeComboBoxChanged (const QString &text) |
Type ComboBox changed. | |
void | channelComboBoxChanged (int index) |
Channel ComboBox changed. | |
void | transferImageUpdated (const QImage &image) |
Transfer function changed. | |
Private Member Functions | |
void | connectSignals () |
Connects the Signals. | |
Private Attributes | |
QPushButton * | up |
QPushButton * | down |
QPushButton * | remove |
QGroupBox * | box |
QComboBox * | comboBoxType |
QComboBox * | comboBoxChannel |
QLabel * | labelType |
QLabel * | labelChannel |
QGridLayout * | grid |
TransferSettingsWidget * | transfer |
QHBoxLayout * | layout |
Friends | |
QDataStream & | operator<< (QDataStream &out, const LayerWidget *layer) |
Serialization. | |
QDataStream & | operator>> (QDataStream &in, LayerWidget *layer) |
Deserialization. |
Layer Configuration Widget.
This Widget handles the configuration of the layers. This includes the transfer function, selection of channel and type and additionally placement of the layer.
Definition at line 23 of file LayerWidget.h.
void LayerWidget::buttonClicked | ( | int | button, |
LayerWidget * | sender | ||
) | [signal] |
Button clicked.
This signal is emitted when a button has been clicked.
button | the button which has been clicked |
sender | this widget |
void LayerWidget::channelChanged | ( | int | newChannel, |
LayerWidget * | sender | ||
) | [signal] |
Channel changed.
This signal is emitted when the selected channel has changed.
newChannel | the new channel |
sender | this widget |
void LayerWidget::channelComboBoxChanged | ( | int | index | ) | [inline, private, slot] |
Channel ComboBox changed.
This slot is used to signal that the selected channel in the Channel Combobox has been changed.
index | new selected channel |
Definition at line 193 of file LayerWidget.h.
void LayerWidget::channelCountChanged | ( | int | channels | ) | [slot] |
Number of channels changed.
This slot is used to signal that number of channels has changed.
channels | new number of channels |
Definition at line 90 of file LayerWidget.cpp.
void LayerWidget::connectSignals | ( | ) | [private] |
Connects the Signals.
This function is used to connect the signals of the widget controls like buttons with the slots provided by this widgets.
Definition at line 62 of file LayerWidget.cpp.
void LayerWidget::downButtonClicked | ( | ) | [inline, private, slot] |
Button Down clicked.
This slot is used to signal that the Down Button has been clicked.
Definition at line 147 of file LayerWidget.h.
void LayerWidget::removeButtonClicked | ( | ) | [inline, private, slot] |
Button Remove clicked.
This slot is used to signal that the Remove Button has been clicked.
Definition at line 169 of file LayerWidget.h.
void LayerWidget::transferImageUpdated | ( | const QImage & | image | ) | [inline, private, slot] |
Transfer function changed.
This slot is used to signal that the transfer function has been changed.
image | new 1D image representing the transfer function |
Definition at line 205 of file LayerWidget.h.
void LayerWidget::transferImageUpdated | ( | const QImage & | image, |
LayerWidget * | sender | ||
) | [signal] |
Transfer function changed.
This signal is emitted when the transfer function has changed.
image | the new 1D image representing the transfer function |
sender | this widget |
void LayerWidget::typeChanged | ( | int | newType, |
LayerWidget * | sender | ||
) | [signal] |
Type changed.
This signal is emitted when the selected type has changed.
newType | the new type |
sender | this widget |
void LayerWidget::typeComboBoxChanged | ( | const QString & | text | ) | [private, slot] |
Type ComboBox changed.
This slot is used to signal that the selected type in the Type Combobox has been changed.
text | name of the new selected type |
Definition at line 72 of file LayerWidget.cpp.
void LayerWidget::upButtonClicked | ( | ) | [inline, private, slot] |
Button Up clicked.
This slot is used to signal that the Up Button has been clicked.
Definition at line 158 of file LayerWidget.h.
QDataStream & LayerWidget::operator<< | ( | QDataStream & | out, |
const LayerWidget * | layer | ||
) | [friend] |
Serialization.
This operator is used to serialize the LayerWidget class.
out | datastream for writing |
layer | object which should be serialized |
Definition at line 111 of file LayerWidget.cpp.
QDataStream & LayerWidget::operator>> | ( | QDataStream & | in, |
LayerWidget * | layer | ||
) | [friend] |
Deserialization.
This operator is used to deserialize the LayerWidget class.
in | datastream for reading |
layer | object which should be deserialized |
Definition at line 116 of file LayerWidget.cpp.