FlowVis 1.0

LayerManagerWidget Class Reference

Manager for LayerWidgets. More...

#include <LayerManagerWidget.h>

List of all members.

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.
LayerWidgetaddLayerWidget ()

Private Attributes

QVBoxLayout * layout
QPushButton * addLayerButton
QVBoxLayout * stackedLayers
int channelCount

Detailed Description

Manager for LayerWidgets.

This Widget handles multiple LayerWidgets.

Date:
15.01.2011

Definition at line 18 of file LayerManagerWidget.h.


Member Function Documentation

void LayerManagerWidget::addLayer ( ) [private, slot]

Add layer.

This slot is used to signal that a new layer has to be added.

Date:
15.01.2011

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.

Date:
15.01.2011
Parameters:
layerthe 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.

Date:
15.01.2011
Parameters:
channelsthe 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.

Date:
15.01.2011

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.

Date:
15.01.2011
Parameters:
layerthe 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.

Date:
15.01.2011
Parameters:
buttonthe specified button
senderthe 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.

Date:
15.01.2011
Parameters:
layerthe specified layer
channelthe 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.

Date:
15.01.2011
Parameters:
channelthe new selected channel
senderthe 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.

Date:
15.01.2011
Parameters:
layerthe specified layer
newPosthe new position
void LayerManagerWidget::layerRemoved ( int  layer) [signal]

Layers removed.

This signal is emitted when a layer is removed.

Date:
15.01.2011
Parameters:
layerthe 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.

Date:
15.01.2011
Parameters:
layerthe specified layer
imagethe 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.

Date:
15.01.2011
Parameters:
imagethe 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.

Date:
15.01.2011
Parameters:
typethe 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.

Date:
15.01.2011
Parameters:
layerthe specified layer
typethe 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.

Date:
15.01.2011

Definition at line 164 of file LayerManagerWidget.cpp.

void LayerManagerWidget::removeLayer ( LayerWidget layer,
bool  check = true 
)

Removes a layer.

Removes a specified layer.

Date:
15.01.2011
Parameters:
layerthe layer which is removed
checkif 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.

Date:
15.01.2011

Definition at line 142 of file LayerManagerWidget.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends