FlowVis 1.0

LayerWidget Class Reference

Layer Configuration Widget. More...

#include <LayerWidget.h>

List of all members.

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
TransferSettingsWidgettransfer
QHBoxLayout * layout

Friends

QDataStream & operator<< (QDataStream &out, const LayerWidget *layer)
 Serialization.
QDataStream & operator>> (QDataStream &in, LayerWidget *layer)
 Deserialization.

Detailed Description

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.

Date:
15.01.2011

Definition at line 23 of file LayerWidget.h.


Member Function Documentation

void LayerWidget::buttonClicked ( int  button,
LayerWidget sender 
) [signal]

Button clicked.

This signal is emitted when a button has been clicked.

Date:
15.01.2011
Parameters:
buttonthe button which has been clicked
senderthis widget
void LayerWidget::channelChanged ( int  newChannel,
LayerWidget sender 
) [signal]

Channel changed.

This signal is emitted when the selected channel has changed.

Date:
15.01.2011
Parameters:
newChannelthe new channel
senderthis 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.

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

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

Date:
15.01.2011

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.

Date:
15.01.2011

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.

Date:
15.01.2011

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.

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

Date:
15.01.2011
Parameters:
imagethe new 1D image representing the transfer function
senderthis widget
void LayerWidget::typeChanged ( int  newType,
LayerWidget sender 
) [signal]

Type changed.

This signal is emitted when the selected type has changed.

Date:
15.01.2011
Parameters:
newTypethe new type
senderthis 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.

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

Date:
15.01.2011

Definition at line 158 of file LayerWidget.h.


Friends And Related Function Documentation

QDataStream & LayerWidget::operator<< ( QDataStream &  out,
const LayerWidget layer 
) [friend]

Serialization.

This operator is used to serialize the LayerWidget class.

Date:
15.01.2011
Parameters:
outdatastream for writing
layerobject 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.

Date:
15.01.2011
Parameters:
indatastream for reading
layerobject which should be deserialized

Definition at line 116 of file LayerWidget.cpp.


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