FlowVis 1.0
|
Transfer settings widget. More...
#include <transfersettingswidget.h>
Public Slots | |
void | Load () |
Loads a saved transfer function. | |
void | Save () |
Saves the transfer function. | |
Signals | |
void | TransferImageUpdated (const QImage &image) |
Transfer image updated. | |
void | SaveConfig () |
Saves the configuration. | |
Public Member Functions | |
TransferSettingsWidget (QWidget *parent=NULL) | |
Private Attributes | |
TransferWidget * | transfer |
QtColorTriangle * | triangle |
Friends | |
QDataStream & | operator<< (QDataStream &out, const TransferSettingsWidget *item) |
Serialization. | |
QDataStream & | operator>> (QDataStream &in, TransferSettingsWidget *item) |
Deserialization. |
Transfer settings widget.
This widget handles the transfer function widget.
Definition at line 21 of file transfersettingswidget.h.
void TransferSettingsWidget::Load | ( | ) | [slot] |
Loads a saved transfer function.
Opens a load file dialog and loads the transfer function.
Definition at line 29 of file transfersettingswidget.cpp.
void TransferSettingsWidget::Save | ( | ) | [slot] |
Saves the transfer function.
Opens a save file dialog and saves the current transfer function.
Definition at line 35 of file transfersettingswidget.cpp.
void TransferSettingsWidget::SaveConfig | ( | ) | [signal] |
Saves the configuration.
The configuration of the transfer function is saved to the standard config file ("transfer.cfg").
void TransferSettingsWidget::TransferImageUpdated | ( | const QImage & | image | ) | [signal] |
Transfer image updated.
Signals that the transfer function has changed and a new 1d image can be uploaded to the shader.
image | The image. |
QDataStream & TransferSettingsWidget::operator<< | ( | QDataStream & | out, |
const TransferSettingsWidget * | item | ||
) | [friend] |
Serialization.
This operator is used to serialize the TransferSettingsWidget class.
out | datastream for writing |
item | object which should be serialized |
Definition at line 42 of file transfersettingswidget.cpp.
QDataStream & TransferSettingsWidget::operator>> | ( | QDataStream & | in, |
TransferSettingsWidget * | item | ||
) | [friend] |
Deserialization.
This operator is used to deserialize the TransferSettingsWidget class.
out | datastream for writing |
item | object which should be serialized |
Definition at line 47 of file transfersettingswidget.cpp.