FlowVis 1.0
|
Manager for LayerWidgets. More...
#include <LayerManagerWidget.h>
Signals | |
void | layerChannelChanged (int channel, int layer) |
Layers Channel changed. | |
void | layerTypeChanged (int type, int layer) |
Layers Type changed. | |
void | layerTransferImageChanged (const QImage &image, int layer) |
Layers TransferFunction changed. | |
void | layerPosChanged (int layer, int newPos) |
Layers Position changed. | |
void | layerAdded (int layer) |
Layers added. | |
void | layerRemoved (int layer) |
Layers removed. | |
void | channelCountUpdated (int channels) |
Channel Count updated. | |
Public Member Functions | |
LayerManagerWidget (QWidget *parent=NULL) | |
void | removeLayer (LayerWidget *layer, bool check=true) |
Removes a layer. | |
Private Slots | |
void | channelCountChanged (int channels) |
Channel Count changed. | |
void | addLayer () |
Add layer. | |
void | layerButtonClicked (int button, LayerWidget *sender) |
Layer Button clicked. | |
void | layerChannelChanged (int channel, LayerWidget *sender) |
Layer Channel changed. | |
void | layerTypeChanged (int type, LayerWidget *sender) |
Layer Type changed. | |
void | layerTransferImageUpdated (const QImage &image, LayerWidget *sender) |
Layer TransferFunction changed. | |
void | saveToFile () |
Save to File. | |
void | loadFromFile () |
Load from File. | |
Private Member Functions | |
void | testAddLayers () |
void | connectSignals () |
Connects the Signals. | |
LayerWidget * | addLayerWidget () |
Private Attributes | |
QVBoxLayout * | layout |
QPushButton * | addLayerButton |
QVBoxLayout * | stackedLayers |
int | channelCount |
Manager for LayerWidgets.
This Widget handles multiple LayerWidgets.
Definition at line 18 of file LayerManagerWidget.h.
void LayerManagerWidget::addLayer | ( | ) | [private, slot] |
Add layer.
This slot is used to signal that a new layer has to be added.
Definition at line 76 of file LayerManagerWidget.cpp.
void LayerManagerWidget::channelCountChanged | ( | int | channels | ) | [private, slot] |
Channel Count changed.
This slot is used to signal that the number of channels has changed.
layer | the new number of channels |
Definition at line 132 of file LayerManagerWidget.cpp.
void LayerManagerWidget::channelCountUpdated | ( | int | channels | ) | [signal] |
Channel Count updated.
This signal is emitted when the number of channels has changed.
channels | the new number of channels |
void LayerManagerWidget::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 27 of file LayerManagerWidget.cpp.
void LayerManagerWidget::layerAdded | ( | int | layer | ) | [signal] |
Layers added.
This signal is emitted when a new layer is added.
layer | the new layer |
void LayerManagerWidget::layerButtonClicked | ( | int | button, |
LayerWidget * | sender | ||
) | [private, slot] |
Layer Button clicked.
This slot is used to signal that in a layer widget a specified button has been clicked.
button | the specified button |
sender | the LayerWidget containing that button - the sender |
Definition at line 80 of file LayerManagerWidget.cpp.
void LayerManagerWidget::layerChannelChanged | ( | int | channel, |
int | layer | ||
) | [signal] |
Layers Channel changed.
This signal is emitted when the selected channel of a specified layer has changed.
layer | the specified layer |
channel | the new channel |
void LayerManagerWidget::layerChannelChanged | ( | int | channel, |
LayerWidget * | sender | ||
) | [private, slot] |
Layer Channel changed.
This slot is used to signal that in a layer widget the selected channel has changed.
channel | the new selected channel |
sender | the sender |
Definition at line 39 of file LayerManagerWidget.cpp.
void LayerManagerWidget::layerPosChanged | ( | int | layer, |
int | newPos | ||
) | [signal] |
Layers Position changed.
This signal is emitted when the position of a specified layer has changed.
layer | the specified layer |
newPos | the new position |
void LayerManagerWidget::layerRemoved | ( | int | layer | ) | [signal] |
Layers removed.
This signal is emitted when a layer is removed.
layer | the layer which is removed |
void LayerManagerWidget::layerTransferImageChanged | ( | const QImage & | image, |
int | layer | ||
) | [signal] |
Layers TransferFunction changed.
This signal is emitted when the transfer function of a specified layer has changed.
layer | the specified layer |
image | the new 1D image representing the transfer function |
void LayerManagerWidget::layerTransferImageUpdated | ( | const QImage & | image, |
LayerWidget * | sender | ||
) | [private, slot] |
Layer TransferFunction changed.
This slot is used to signal that in a layer widget the transfer function has changed.
image | the new 1D image representing the transfer function |
LayerWidget* | the sender |
Definition at line 46 of file LayerManagerWidget.cpp.
void LayerManagerWidget::layerTypeChanged | ( | int | type, |
LayerWidget * | sender | ||
) | [private, slot] |
Layer Type changed.
This slot is used to signal that in a layer widget the selected type has changed.
type | the new selected type |
LayerWidget* | the sender |
Definition at line 32 of file LayerManagerWidget.cpp.
void LayerManagerWidget::layerTypeChanged | ( | int | type, |
int | layer | ||
) | [signal] |
Layers Type changed.
This signal is emitted when the selected type of a specified layer has changed.
layer | the specified layer |
type | the new type |
void LayerManagerWidget::loadFromFile | ( | ) | [private, slot] |
Load from File.
This slot is used to signal that a saved layer configuration has to be loaded from a file.
Definition at line 164 of file LayerManagerWidget.cpp.
void LayerManagerWidget::removeLayer | ( | LayerWidget * | layer, |
bool | check = true |
||
) |
Removes a layer.
Removes a specified layer.
layer | the layer which is removed |
check | if true at least one layer remains |
Definition at line 113 of file LayerManagerWidget.cpp.
void LayerManagerWidget::saveToFile | ( | ) | [private, slot] |
Save to File.
This slot is used to signal that the current layer configuration has to be saved to a file.
Definition at line 142 of file LayerManagerWidget.cpp.