00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef TRANSFERFUNCTIONEDITOR_H
00010 #define TRANSFERFUNCTIONEDITOR_H
00011
00012 #include <qvariant.h>
00013 #include <qdialog.h>
00014 class QVBoxLayout;
00015 class QHBoxLayout;
00016 class QGridLayout;
00017 class QGroupBox;
00018 class QLabel;
00019 class QLineEdit;
00020 class QListBox;
00021 class QListBoxItem;
00022 class QPushButton;
00023 class QSlider;
00024 class transferFunctionViewer;
00025
00026
00028
00031 class mainWidget : public QWidget
00032 {
00033 public:
00035
00038 mainWidget (QWidget* parent = 0);
00040 ~mainWidget();
00041 };
00042
00043
00045
00049 class transferFunctionEditor : public QDialog
00050 {
00051 Q_OBJECT
00052
00053 public:
00055
00058 transferFunctionEditor( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00060 ~transferFunctionEditor();
00061
00062 QGroupBox* GroupBox2;
00063 QListBox* functionSelector;
00064 QGroupBox* GroupBox1;
00065 QLabel* Name;
00066 QLabel* Color;
00067 QLabel* Opacity;
00068 QLabel* Begin;
00069 QLabel* End;
00070 QLabel* Slope_Left;
00071 QLabel* Slope_Right;
00072 QLineEdit* nameEdit;
00073 QPushButton* changeColorButton;
00074 QSlider* opacitySlider;
00075 QSlider* beginSlider;
00076 QSlider* endSlider;
00077 QSlider* slope_leftSlider;
00078 QSlider* slope_rightSlider;
00079 QGroupBox* GroupBox3;
00080 QPushButton* newButton;
00081 QPushButton* deleteButton;
00082 QPushButton* saveButton;
00083 QPushButton* loadButton;
00084 QGroupBox* GroupBox4;
00085 transferFunctionViewer* viewer;
00086 QPushButton* okayButton;
00087 QPushButton* cancelButton;
00088
00089 public slots:
00091
00094 virtual void beginChanged(int);
00096
00099 virtual void cancelButtonPressed();
00101
00104 virtual void colorButtonPressed();
00106
00109 virtual void deleteButtonPressed();
00111
00114 virtual void endChanged(int);
00116
00119 virtual void functionSelectorPressed(QListBoxItem*);
00121
00124 virtual void loadButtonPressed();
00126
00129 virtual void nameChanged(const QString &);
00131
00134 virtual void newButtonPressed();
00136
00139 virtual void okayButtonPressed();
00141
00144 virtual void opacityChanged(int);
00146
00149 virtual void saveButtonPressed();
00151
00154 virtual void slope_leftChanged(int);
00156
00159 virtual void slope_rightChanged(int);
00160
00161 protected:
00162 QVBoxLayout* transferFunctionEditorLayout;
00163 QHBoxLayout* Layout7;
00164 QVBoxLayout* GroupBox2Layout;
00165 QVBoxLayout* Layout6;
00166 QHBoxLayout* GroupBox1Layout;
00167 QVBoxLayout* Layout5;
00168 QVBoxLayout* Layout9;
00169 QHBoxLayout* Layout1;
00170 QHBoxLayout* Layout8;
00171 QGridLayout* GroupBox3Layout;
00172 QVBoxLayout* GroupBox4Layout;
00173 QHBoxLayout* Layout8_2;
00174 };
00175
00176 #endif // TRANSFERFUNCTIONEDITOR_H