00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_COLORINGSETTINGSDIALOG_H
00008 #define BALL_VIEW_DIALOGS_COLORINGSETTINGSDIALOG_H
00009
00010 #ifndef BALL_COMMON_GLOBAL_H
00011 # include <BALL/COMMON/global.h>
00012 #endif
00013
00014 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00015 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00016 #endif
00017
00018 #ifndef BALL_VIEW_KERNEL_COMMON_H
00019 # include <BALL/VIEW/KERNEL/common.h>
00020 #endif
00021
00022 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
00023 # include <BALL/VIEW/DATATYPE/colorRGBA.h>
00024 #endif
00025
00026 #include <BALL/VIEW/UIC/ui_coloringSettingsDialog.h>
00027
00028 #include <vector>
00029
00030 namespace BALL
00031 {
00032 class PTE;
00033
00034 namespace VIEW
00035 {
00036 class ColorProcessor;
00037
00038
00043 class BALL_VIEW_EXPORT ColoringSettingsDialog
00044 : public QWidget,
00045 public Ui_ColoringSettingsDialogData,
00046 public PreferencesEntry
00047 {
00048 Q_OBJECT
00049
00050 public:
00051
00053 ColoringSettingsDialog( QWidget* parent = 0, const char* name = "ColoringSettings", Qt::WFlags fl = 0 );
00054
00056 virtual ~ColoringSettingsDialog() {}
00057
00059 virtual void applySettingsTo(ColorProcessor& cp) const;
00060
00062 virtual ColorProcessor* createColorProcessor(ColoringMethod method) const
00063 throw(Exception::InvalidOption);
00064
00066 virtual void getSettings(const ColorProcessor& cp);
00067
00069 virtual QWidget* getEntryFor(ColoringMethod method);
00070
00072 virtual vector<ColorRGBA> getColors(ColoringMethod method) const;
00073
00074 protected slots:
00075
00076 virtual void maxDistanceChanged();
00077 virtual void maxTFChanged();
00078 virtual void forceMaxValueChanged();
00079 virtual void forceMinValueChanged();
00080
00081 protected:
00082
00083 virtual void setDefaultValues_();
00084 };
00085
00086 } }
00087
00088 #endif