00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_QMITKTRANSFERFUNCTIONGENERATORWIDGET_H
00011 #define UI_QMITKTRANSFERFUNCTIONGENERATORWIDGET_H
00012
00013 #include <QmitkCrossWidget.h>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QComboBox>
00019 #include <QtGui/QFrame>
00020 #include <QtGui/QHBoxLayout>
00021 #include <QtGui/QHeaderView>
00022 #include <QtGui/QLabel>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QTabWidget>
00025 #include <QtGui/QVBoxLayout>
00026 #include <QtGui/QWidget>
00027
00028 QT_BEGIN_NAMESPACE
00029
00030 class Ui_QmitkTransferFunctionGeneratorWidget
00031 {
00032 public:
00033 QVBoxLayout *verticalLayout;
00034 QTabWidget *tabWidget;
00035 QWidget *tab_3;
00036 QVBoxLayout *verticalLayout_3;
00037 QFrame *frame_3;
00038 QVBoxLayout *verticalLayout_2;
00039 QComboBox *m_TransferFunctionComboBox;
00040 QFrame *frame_4;
00041 QHBoxLayout *horizontalLayout_4;
00042 QLabel *m_InfoPreset;
00043 QPushButton *m_LoadPreset;
00044 QPushButton *m_SavePreset;
00045 QWidget *tab_2;
00046 QHBoxLayout *horizontalLayout;
00047 QmitkCrossWidget *m_CrossThreshold;
00048 QLabel *m_InfoThreshold;
00049 QWidget *tab;
00050 QHBoxLayout *horizontalLayout_2;
00051 QmitkCrossWidget *m_CrossLevelWindow;
00052 QLabel *m_InfoLevelWindow;
00053
00054 void setupUi(QWidget *QmitkTransferFunctionGeneratorWidget)
00055 {
00056 if (QmitkTransferFunctionGeneratorWidget->objectName().isEmpty())
00057 QmitkTransferFunctionGeneratorWidget->setObjectName(QString::fromUtf8("QmitkTransferFunctionGeneratorWidget"));
00058 QmitkTransferFunctionGeneratorWidget->resize(226, 252);
00059 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
00060 sizePolicy.setHorizontalStretch(1);
00061 sizePolicy.setVerticalStretch(1);
00062 sizePolicy.setHeightForWidth(QmitkTransferFunctionGeneratorWidget->sizePolicy().hasHeightForWidth());
00063 QmitkTransferFunctionGeneratorWidget->setSizePolicy(sizePolicy);
00064 QmitkTransferFunctionGeneratorWidget->setMaximumSize(QSize(16777215, 16777215));
00065 verticalLayout = new QVBoxLayout(QmitkTransferFunctionGeneratorWidget);
00066 verticalLayout->setContentsMargins(0, 0, 0, 0);
00067 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
00068 tabWidget = new QTabWidget(QmitkTransferFunctionGeneratorWidget);
00069 tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
00070 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum);
00071 sizePolicy1.setHorizontalStretch(0);
00072 sizePolicy1.setVerticalStretch(0);
00073 sizePolicy1.setHeightForWidth(tabWidget->sizePolicy().hasHeightForWidth());
00074 tabWidget->setSizePolicy(sizePolicy1);
00075 tabWidget->setMinimumSize(QSize(0, 0));
00076 tabWidget->setMaximumSize(QSize(16777215, 120));
00077 tab_3 = new QWidget();
00078 tab_3->setObjectName(QString::fromUtf8("tab_3"));
00079 QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Maximum);
00080 sizePolicy2.setHorizontalStretch(0);
00081 sizePolicy2.setVerticalStretch(0);
00082 sizePolicy2.setHeightForWidth(tab_3->sizePolicy().hasHeightForWidth());
00083 tab_3->setSizePolicy(sizePolicy2);
00084 verticalLayout_3 = new QVBoxLayout(tab_3);
00085 verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
00086 frame_3 = new QFrame(tab_3);
00087 frame_3->setObjectName(QString::fromUtf8("frame_3"));
00088 QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Expanding);
00089 sizePolicy3.setHorizontalStretch(0);
00090 sizePolicy3.setVerticalStretch(0);
00091 sizePolicy3.setHeightForWidth(frame_3->sizePolicy().hasHeightForWidth());
00092 frame_3->setSizePolicy(sizePolicy3);
00093 frame_3->setFrameShape(QFrame::StyledPanel);
00094 frame_3->setFrameShadow(QFrame::Raised);
00095 verticalLayout_2 = new QVBoxLayout(frame_3);
00096 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
00097 verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
00098 m_TransferFunctionComboBox = new QComboBox(frame_3);
00099 m_TransferFunctionComboBox->setObjectName(QString::fromUtf8("m_TransferFunctionComboBox"));
00100 m_TransferFunctionComboBox->setEnabled(true);
00101 QSizePolicy sizePolicy4(QSizePolicy::Minimum, QSizePolicy::Minimum);
00102 sizePolicy4.setHorizontalStretch(0);
00103 sizePolicy4.setVerticalStretch(0);
00104 sizePolicy4.setHeightForWidth(m_TransferFunctionComboBox->sizePolicy().hasHeightForWidth());
00105 m_TransferFunctionComboBox->setSizePolicy(sizePolicy4);
00106 m_TransferFunctionComboBox->setMinimumSize(QSize(0, 0));
00107 m_TransferFunctionComboBox->setIconSize(QSize(16, 16));
00108 m_TransferFunctionComboBox->setDuplicatesEnabled(false);
00109 m_TransferFunctionComboBox->setFrame(true);
00110
00111 verticalLayout_2->addWidget(m_TransferFunctionComboBox);
00112
00113
00114 verticalLayout_3->addWidget(frame_3);
00115
00116 frame_4 = new QFrame(tab_3);
00117 frame_4->setObjectName(QString::fromUtf8("frame_4"));
00118 QSizePolicy sizePolicy5(QSizePolicy::Preferred, QSizePolicy::Preferred);
00119 sizePolicy5.setHorizontalStretch(0);
00120 sizePolicy5.setVerticalStretch(0);
00121 sizePolicy5.setHeightForWidth(frame_4->sizePolicy().hasHeightForWidth());
00122 frame_4->setSizePolicy(sizePolicy5);
00123 frame_4->setFrameShape(QFrame::StyledPanel);
00124 frame_4->setFrameShadow(QFrame::Raised);
00125 horizontalLayout_4 = new QHBoxLayout(frame_4);
00126 horizontalLayout_4->setContentsMargins(0, 0, 0, 0);
00127 horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
00128 m_InfoPreset = new QLabel(frame_4);
00129 m_InfoPreset->setObjectName(QString::fromUtf8("m_InfoPreset"));
00130 sizePolicy4.setHeightForWidth(m_InfoPreset->sizePolicy().hasHeightForWidth());
00131 m_InfoPreset->setSizePolicy(sizePolicy4);
00132 m_InfoPreset->setMinimumSize(QSize(0, 0));
00133 m_InfoPreset->setMaximumSize(QSize(16777215, 25));
00134 QFont font;
00135 font.setPointSize(7);
00136 m_InfoPreset->setFont(font);
00137 m_InfoPreset->setTextFormat(Qt::AutoText);
00138 m_InfoPreset->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
00139 m_InfoPreset->setWordWrap(true);
00140 m_InfoPreset->setIndent(0);
00141
00142 horizontalLayout_4->addWidget(m_InfoPreset);
00143
00144 m_LoadPreset = new QPushButton(frame_4);
00145 m_LoadPreset->setObjectName(QString::fromUtf8("m_LoadPreset"));
00146 QSizePolicy sizePolicy6(QSizePolicy::Maximum, QSizePolicy::Minimum);
00147 sizePolicy6.setHorizontalStretch(0);
00148 sizePolicy6.setVerticalStretch(0);
00149 sizePolicy6.setHeightForWidth(m_LoadPreset->sizePolicy().hasHeightForWidth());
00150 m_LoadPreset->setSizePolicy(sizePolicy6);
00151 m_LoadPreset->setMaximumSize(QSize(64, 16777215));
00152
00153 horizontalLayout_4->addWidget(m_LoadPreset);
00154
00155 m_SavePreset = new QPushButton(frame_4);
00156 m_SavePreset->setObjectName(QString::fromUtf8("m_SavePreset"));
00157 sizePolicy6.setHeightForWidth(m_SavePreset->sizePolicy().hasHeightForWidth());
00158 m_SavePreset->setSizePolicy(sizePolicy6);
00159 m_SavePreset->setMaximumSize(QSize(64, 16777215));
00160
00161 horizontalLayout_4->addWidget(m_SavePreset);
00162
00163
00164 verticalLayout_3->addWidget(frame_4);
00165
00166 tabWidget->addTab(tab_3, QString());
00167 tabWidget->setTabToolTip(tabWidget->indexOf(tab_3), QString::fromUtf8("Apply internal MITK transferfunction presets.\n"
00168 "Or save and load your own created transferfunctions in a folder in XML format."));
00169 tab_2 = new QWidget();
00170 tab_2->setObjectName(QString::fromUtf8("tab_2"));
00171 sizePolicy2.setHeightForWidth(tab_2->sizePolicy().hasHeightForWidth());
00172 tab_2->setSizePolicy(sizePolicy2);
00173 horizontalLayout = new QHBoxLayout(tab_2);
00174 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
00175 m_CrossThreshold = new QmitkCrossWidget(tab_2);
00176 m_CrossThreshold->setObjectName(QString::fromUtf8("m_CrossThreshold"));
00177 QSizePolicy sizePolicy7(QSizePolicy::Fixed, QSizePolicy::Fixed);
00178 sizePolicy7.setHorizontalStretch(0);
00179 sizePolicy7.setVerticalStretch(0);
00180 sizePolicy7.setHeightForWidth(m_CrossThreshold->sizePolicy().hasHeightForWidth());
00181 m_CrossThreshold->setSizePolicy(sizePolicy7);
00182 m_CrossThreshold->setMinimumSize(QSize(0, 0));
00183 m_CrossThreshold->setMaximumSize(QSize(48, 48));
00184 m_CrossThreshold->setLayoutDirection(Qt::LeftToRight);
00185 m_CrossThreshold->setPixmap(QPixmap(QString::fromUtf8(":/qmitk/cross.png")));
00186 m_CrossThreshold->setScaledContents(true);
00187 m_CrossThreshold->setAlignment(Qt::AlignCenter);
00188 m_CrossThreshold->setIndent(-1);
00189 m_CrossThreshold->setTextInteractionFlags(Qt::NoTextInteraction);
00190
00191 horizontalLayout->addWidget(m_CrossThreshold);
00192
00193 m_InfoThreshold = new QLabel(tab_2);
00194 m_InfoThreshold->setObjectName(QString::fromUtf8("m_InfoThreshold"));
00195 sizePolicy5.setHeightForWidth(m_InfoThreshold->sizePolicy().hasHeightForWidth());
00196 m_InfoThreshold->setSizePolicy(sizePolicy5);
00197 m_InfoThreshold->setMinimumSize(QSize(0, 0));
00198 m_InfoThreshold->setFont(font);
00199 m_InfoThreshold->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
00200 m_InfoThreshold->setWordWrap(true);
00201
00202 horizontalLayout->addWidget(m_InfoThreshold);
00203
00204 tabWidget->addTab(tab_2, QString());
00205 tab = new QWidget();
00206 tab->setObjectName(QString::fromUtf8("tab"));
00207 sizePolicy2.setHeightForWidth(tab->sizePolicy().hasHeightForWidth());
00208 tab->setSizePolicy(sizePolicy2);
00209 horizontalLayout_2 = new QHBoxLayout(tab);
00210 horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
00211 m_CrossLevelWindow = new QmitkCrossWidget(tab);
00212 m_CrossLevelWindow->setObjectName(QString::fromUtf8("m_CrossLevelWindow"));
00213 sizePolicy7.setHeightForWidth(m_CrossLevelWindow->sizePolicy().hasHeightForWidth());
00214 m_CrossLevelWindow->setSizePolicy(sizePolicy7);
00215 m_CrossLevelWindow->setMinimumSize(QSize(0, 0));
00216 m_CrossLevelWindow->setMaximumSize(QSize(48, 48));
00217 m_CrossLevelWindow->setPixmap(QPixmap(QString::fromUtf8(":/qmitk/cross.png")));
00218 m_CrossLevelWindow->setScaledContents(true);
00219 m_CrossLevelWindow->setAlignment(Qt::AlignCenter);
00220 m_CrossLevelWindow->setTextInteractionFlags(Qt::NoTextInteraction);
00221
00222 horizontalLayout_2->addWidget(m_CrossLevelWindow);
00223
00224 m_InfoLevelWindow = new QLabel(tab);
00225 m_InfoLevelWindow->setObjectName(QString::fromUtf8("m_InfoLevelWindow"));
00226 QSizePolicy sizePolicy8(QSizePolicy::Expanding, QSizePolicy::Minimum);
00227 sizePolicy8.setHorizontalStretch(0);
00228 sizePolicy8.setVerticalStretch(0);
00229 sizePolicy8.setHeightForWidth(m_InfoLevelWindow->sizePolicy().hasHeightForWidth());
00230 m_InfoLevelWindow->setSizePolicy(sizePolicy8);
00231 m_InfoLevelWindow->setMinimumSize(QSize(0, 0));
00232 m_InfoLevelWindow->setFont(font);
00233 m_InfoLevelWindow->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
00234 m_InfoLevelWindow->setWordWrap(true);
00235
00236 horizontalLayout_2->addWidget(m_InfoLevelWindow);
00237
00238 tabWidget->addTab(tab, QString());
00239
00240 verticalLayout->addWidget(tabWidget);
00241
00242
00243 retranslateUi(QmitkTransferFunctionGeneratorWidget);
00244
00245 tabWidget->setCurrentIndex(0);
00246 m_TransferFunctionComboBox->setCurrentIndex(-1);
00247
00248
00249 QMetaObject::connectSlotsByName(QmitkTransferFunctionGeneratorWidget);
00250 }
00251
00252 void retranslateUi(QWidget *QmitkTransferFunctionGeneratorWidget)
00253 {
00254 QmitkTransferFunctionGeneratorWidget->setWindowTitle(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Form", 0, QApplication::UnicodeUTF8));
00255 #ifndef QT_NO_TOOLTIP
00256 tabWidget->setToolTip(QString());
00257 #endif // QT_NO_TOOLTIP
00258 #ifndef QT_NO_TOOLTIP
00259 m_TransferFunctionComboBox->setToolTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Choose one of generic MITK internal presets to apply on standard CT data or MR data.", 0, QApplication::UnicodeUTF8));
00260 #endif // QT_NO_TOOLTIP
00261 #ifndef QT_NO_STATUSTIP
00262 m_TransferFunctionComboBox->setStatusTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Load a MITK internal preset", 0, QApplication::UnicodeUTF8));
00263 #endif // QT_NO_STATUSTIP
00264 m_InfoPreset->setText(QString());
00265 #ifndef QT_NO_TOOLTIP
00266 m_LoadPreset->setToolTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Load a transferfunction in xml-format from the filesystem.\n"
00267 "The load includes all transferfunctions: grayvalue, color and gradient.", 0, QApplication::UnicodeUTF8));
00268 #endif // QT_NO_TOOLTIP
00269 m_LoadPreset->setText(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Load", 0, QApplication::UnicodeUTF8));
00270 #ifndef QT_NO_TOOLTIP
00271 m_SavePreset->setToolTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Save a transferfunction in xml-format in the filesystem.\n"
00272 "The save includes all transferfunctions: grayvalue, color and gradient.", 0, QApplication::UnicodeUTF8));
00273 #endif // QT_NO_TOOLTIP
00274 m_SavePreset->setText(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Save", 0, QApplication::UnicodeUTF8));
00275 tabWidget->setTabText(tabWidget->indexOf(tab_3), QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Presets", 0, QApplication::UnicodeUTF8));
00276 #ifndef QT_NO_TOOLTIP
00277 m_CrossThreshold->setToolTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Click and hold left mouse button on the cross.\n"
00278 "Move the mouse to the top and the function will be flatter.\n"
00279 "Move the mouse to the bottom and the function will be steeper.\n"
00280 "Move the mouse to the left and the function moves to the left.\n"
00281 "Move the mouse to the right and the function moves to the right. ", 0, QApplication::UnicodeUTF8));
00282 #endif // QT_NO_TOOLTIP
00283 m_CrossThreshold->setText(QString());
00284 m_InfoThreshold->setText(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Click and hold left mouse button on the cross to interactively generate a threshold transferfunction", 0, QApplication::UnicodeUTF8));
00285 tabWidget->setTabText(tabWidget->indexOf(tab_2), QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Threshold", 0, QApplication::UnicodeUTF8));
00286 tabWidget->setTabToolTip(tabWidget->indexOf(tab_2), QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Generate a threshold transfer function interactively.\n"
00287 "Click on the cross and move the mouse.\n"
00288 "With a vertical move the function will be steeper or flatter.\n"
00289 "With a horizontal move the center of the function left or right.", 0, QApplication::UnicodeUTF8));
00290 #ifndef QT_NO_TOOLTIP
00291 m_CrossLevelWindow->setToolTip(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Click and hold left mouse button on the cross.\n"
00292 "Move the mouse to the top and the bell will be wider.\n"
00293 "Move the mouse to the bottom and the bell will be flattened.\n"
00294 "Move the mouse to the left and the center of the bell moves to the left.\n"
00295 "Move the mouse to the right and the center of the bell moves to the right.", 0, QApplication::UnicodeUTF8));
00296 #endif // QT_NO_TOOLTIP
00297 m_CrossLevelWindow->setText(QString());
00298 m_InfoLevelWindow->setText(QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Click and hold left mouse button on the cross to interactively generate a bell transferfunction", 0, QApplication::UnicodeUTF8));
00299 tabWidget->setTabText(tabWidget->indexOf(tab), QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Bell", 0, QApplication::UnicodeUTF8));
00300 tabWidget->setTabToolTip(tabWidget->indexOf(tab), QApplication::translate("QmitkTransferFunctionGeneratorWidget", "Generate a bell transfer function interactively.\n"
00301 "Click on the cross and move the mouse.\n"
00302 "With a vertical move the bell will be narrower or wider.\n"
00303 "With a horizontal move the center of the bell moves to the left or right.", 0, QApplication::UnicodeUTF8));
00304 }
00305
00306 };
00307
00308 namespace Ui {
00309 class QmitkTransferFunctionGeneratorWidget: public Ui_QmitkTransferFunctionGeneratorWidget {};
00310 }
00311
00312 QT_END_NAMESPACE
00313
00314 #endif // UI_QMITKTRANSFERFUNCTIONGENERATORWIDGET_H