latest version v1.9 - last update 10 Apr 2010 |
Parent class for all types of configuration dialogs for the normal viewer. More...
#include <ltiViewer.h>
Public Member Functions | |
configDialog () | |
void | useFunctor (viewerFunctor &fct) |
Virtual members to be reimplemented | |
virtual void | insertFrames () |
virtual bool | getDialogData () |
virtual bool | setDialogData () |
virtual configGTKDialog * | newInstance () const |
Protected Member Functions | |
bool | setCommonDialogData () |
void | clearAllWidgets () |
void | buildIntensityControlFrame () |
void | buildZoomFrame () |
void | buildStatisticsFrame () |
void | buildPaletteFrame () |
void | buildPaletteAndLabelFrame () |
void | buildHexadecimalDisplayFrame () |
void | buildVectorFrame () |
Protected Attributes | |
viewerFunctor * | master |
| |
GtkWidget * | StatisticsFrame |
GtkWidget * | StatisticsBox |
GtkWidget * | StatisticsSubBox |
GtkWidget * | MinLabel |
GtkWidget * | MaxLabel |
GtkWidget * | AverageLabel |
GtkWidget * | StdDevLabel |
GtkWidget * | SizeEntry |
GtkWidget * | MinEntry |
GtkWidget * | MaxEntry |
GtkWidget * | AverageEntry |
GtkWidget * | StdDevEntry |
GtkWidget * | ScaleMinimumButton |
GtkWidget * | ScaleMaximumButton |
GtkWidget * | ScaleMinMaxButton |
GtkWidget * | Size |
GtkWidget * | AvrgStdDevScalingBox |
GtkWidget * | ScaleStdDevButton |
GtkWidget * | ScalingFactorEntry |
GtkWidget * | ColorsBox |
GtkWidget * | UnderflowColorLabel |
GtkWidget * | UnderflowColorButton |
GtkWidget * | OverflowColorButton |
GtkWidget * | OverflowColorLabel |
GtkWidget * | IntensityControlFrame |
GtkWidget * | table1 |
GtkWidget * | ZoomLabel |
GtkWidget * | ContrastLabel |
GtkWidget * | BrightnessLabel |
GtkWidget * | ZoomScale |
GtkObject * | ZoomAdjustment |
GtkObject * | BrightnessAdjustment |
GtkObject * | ContrastAdjustment |
GtkWidget * | BrightnessEntry |
GtkWidget * | ContrastEntry |
GtkWidget * | ZoomEntry |
GtkWidget * | ContrastScale |
GtkWidget * | BrightnessScale |
GtkWidget * | PaletteControlFrame |
GtkWidget * | PaletteOptionsBox |
GtkWidget * | UsualPalettes |
GSList * | _1_group |
GtkWidget * | GrayButton |
GtkWidget * | RedButton |
GtkWidget * | GreenButton |
GtkWidget * | BlueButton |
GtkWidget * | HueButton |
GtkWidget * | UserDefinedButton |
GtkWidget * | LabelAdjacencyButton |
GtkWidget * | hbox2 |
GSList * | _2_group |
GtkWidget * | Neigh4Button |
GtkWidget * | Neigh8 |
GtkWidget * | MinColorsButton |
GtkWidget * | hexDisplay |
GtkWidget * | VectorOptionsFrame |
GtkWidget * | vctSubframe |
GtkWidget * | vctbox1 |
GtkWidget * | vctSizes |
GtkWidget * | vctHeightLabel |
GtkWidget * | vctHeight |
GtkWidget * | vctPixPerElemLabel |
GtkWidget * | vctPixPerElem |
GtkWidget * | vctBools |
GtkWidget * | useBoxes |
GtkWidget * | useLines |
GtkWidget * | horizontalAxis |
GtkWidget * | drawMeanValues |
GtkWidget * | vctColors |
GtkWidget * | backgroundColor |
GtkWidget * | lineColor |
float | norm |
parameters | tmpParam |
void | minScaling (float &contr, float &bright) |
void | maxScaling (float &contr, float &bright) |
void | deltaScaling (float &contr, float &bright) |
static void | on_ScaleMinimumButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_ScaleMaximumButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_ScaleMinMaxButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_ScaleStdDevButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_UnderflowColorButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_OverflowColorButton_clicked (GtkButton *button, gpointer user_data) |
static void | on_zoom_value_changed (GtkAdjustment *widget, gpointer value) |
static void | on_contrast_value_changed (GtkAdjustment *widget, gpointer value) |
static void | on_brightness_value_changed (GtkAdjustment *widget, gpointer value) |
static void | on_BrightnessEntry_changed (GtkEditable *editable, gpointer user_data) |
static void | on_ContrastEntry_changed (GtkEditable *editable, gpointer user_data) |
static void | on_ZoomEntry_changed (GtkEditable *editable, gpointer user_data) |
static void | on_palette_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_LabelAdjacencyButton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_neighborhood_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_MinColorsButton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_hexDisplay_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_vctHeight_changed (GtkEditable *editable, gpointer user_data) |
static void | on_vctPixPerElem_changed (GtkEditable *editable, gpointer user_data) |
static void | on_useBoxes_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_useLines_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_horizontalAxis_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_drawMeanValues_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_backgroundColor_clicked (GtkButton *button, gpointer user_data) |
static void | on_lineColor_clicked (GtkButton *button, gpointer user_data) |
Parent class for all types of configuration dialogs for the normal viewer.
lti::viewer::configDialog::configDialog | ( | ) |
Default constructor.
void lti::viewer::configDialog::buildHexadecimalDisplayFrame | ( | ) | [protected] |
Build hexadecimal button.
void lti::viewer::configDialog::buildIntensityControlFrame | ( | ) | [protected] |
Build and Append the intensity control frame.
void lti::viewer::configDialog::buildPaletteAndLabelFrame | ( | ) | [protected] |
Build and Append the Palette frame with label control.
void lti::viewer::configDialog::buildPaletteFrame | ( | ) | [protected] |
Build and Append the Palette frame.
void lti::viewer::configDialog::buildStatisticsFrame | ( | ) | [protected] |
Build and Append the statistics frame.
void lti::viewer::configDialog::buildVectorFrame | ( | ) | [protected] |
Build vector options frame.
void lti::viewer::configDialog::buildZoomFrame | ( | ) | [protected] |
Build and Append the intensity control frame.
void lti::viewer::configDialog::clearAllWidgets | ( | ) | [protected] |
Set all widgets as NULL.
void lti::viewer::configDialog::deltaScaling | ( | float & | contr, | |
float & | bright | |||
) | [protected] |
compute, using the min and max values in the parameters object, which contrast and brightness are required to have an interval between avrg-factor*stddev and avrg+factor*stddev
virtual bool lti::viewer::configDialog::getDialogData | ( | ) | [virtual] |
copy the contents of the dialog in the parameters object.
This method should read all data from the GTK-Widget and write them in the parameter object. Do not forget to check first if the parameter pointer is valid or not.
Reimplemented from lti::configGTKDialog.
virtual void lti::viewer::configDialog::insertFrames | ( | ) | [virtual] |
Inserts all pages in the main settings dialog.
Reimplemented from lti::configGTKDialog.
Reimplemented in lti::viewer::configChannelFixed, lti::viewer::configChannelFloat, lti::viewer::configImage, and lti::viewer::configVector.
void lti::viewer::configDialog::maxScaling | ( | float & | contr, | |
float & | bright | |||
) | [protected] |
compute, using the min and max values in the parameters object, which contrast and brightness are required to have an interval between min and 1
void lti::viewer::configDialog::minScaling | ( | float & | contr, | |
float & | bright | |||
) | [protected] |
compute, using the min and max values in the parameters object, which contrast and brightness are required to have an interval between 0 and max
virtual configGTKDialog* lti::viewer::configDialog::newInstance | ( | ) | const [virtual] |
create a new instance of this configuration dialog
Reimplemented from lti::configGTKDialog.
Reimplemented in lti::viewer::configChannelFixed, lti::viewer::configChannelFloat, lti::viewer::configImage, and lti::viewer::configVector.
static void lti::viewer::configDialog::on_backgroundColor_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_brightness_value_changed | ( | GtkAdjustment * | widget, | |
gpointer | value | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_BrightnessEntry_changed | ( | GtkEditable * | editable, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_contrast_value_changed | ( | GtkAdjustment * | widget, | |
gpointer | value | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_ContrastEntry_changed | ( | GtkEditable * | editable, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_drawMeanValues_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_hexDisplay_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_horizontalAxis_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_LabelAdjacencyButton_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_lineColor_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_MinColorsButton_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_neighborhood_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_OverflowColorButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_palette_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_ScaleMaximumButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_ScaleMinimumButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
Callback functions.
static void lti::viewer::configDialog::on_ScaleMinMaxButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_ScaleStdDevButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_UnderflowColorButton_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_useBoxes_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_useLines_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_vctHeight_changed | ( | GtkEditable * | editable, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_vctPixPerElem_changed | ( | GtkEditable * | editable, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_zoom_value_changed | ( | GtkAdjustment * | widget, | |
gpointer | value | |||
) | [static, protected] |
GTK Widgets.
static void lti::viewer::configDialog::on_ZoomEntry_changed | ( | GtkEditable * | editable, | |
gpointer | user_data | |||
) | [static, protected] |
GTK Widgets.
bool lti::viewer::configDialog::setCommonDialogData | ( | ) | [protected] |
Non virtual function to set all common dialog data.
virtual bool lti::viewer::configDialog::setDialogData | ( | ) | [virtual] |
copy the contents of the parameters object into the dialog entries
This method should write all data given in the parameters into the GTK-Widget. Do not forget to check first if the parameter pointer is valid or not.
Reimplemented from lti::configGTKDialog.
Reimplemented in lti::viewer::configChannelFixed, lti::viewer::configChannelFloat, lti::viewer::configImage, and lti::viewer::configVector.
void lti::viewer::configDialog::useFunctor | ( | viewerFunctor & | fct | ) |
set the drawing functor being used
GSList* lti::viewer::configDialog::_1_group [protected] |
GTK Widgets.
GSList* lti::viewer::configDialog::_2_group [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::AverageEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::AverageLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::AvrgStdDevScalingBox [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::backgroundColor [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::BlueButton [protected] |
GTK Widgets.
GtkObject* lti::viewer::configDialog::BrightnessAdjustment [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::BrightnessEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::BrightnessLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::BrightnessScale [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ColorsBox [protected] |
GTK Widgets.
GtkObject* lti::viewer::configDialog::ContrastAdjustment [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ContrastEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ContrastLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ContrastScale [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::drawMeanValues [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::GrayButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::GreenButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::hbox2 [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::hexDisplay [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::horizontalAxis [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::HueButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::IntensityControlFrame [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::LabelAdjacencyButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::lineColor [protected] |
GTK Widgets.
viewerFunctor* lti::viewer::configDialog::master [protected] |
The painting functor.
GtkWidget* lti::viewer::configDialog::MaxEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::MaxLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::MinColorsButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::MinEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::MinLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::Neigh4Button [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::Neigh8 [protected] |
GTK Widgets.
float lti::viewer::configDialog::norm [protected] |
Value used as 1.0 in the given image type (usually 1.0 or 255);.
GtkWidget* lti::viewer::configDialog::OverflowColorButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::OverflowColorLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::PaletteControlFrame [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::PaletteOptionsBox [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::RedButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ScaleMaximumButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ScaleMinimumButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ScaleMinMaxButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ScaleStdDevButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ScalingFactorEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::Size [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::SizeEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::StatisticsBox [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::StatisticsFrame [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::StatisticsSubBox [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::StdDevEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::StdDevLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::table1 [protected] |
GTK Widgets.
parameters lti::viewer::configDialog::tmpParam [protected] |
Temporal parameters object.
The real parameters are taken only if the user does an ok!
GtkWidget* lti::viewer::configDialog::UnderflowColorButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::UnderflowColorLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::useBoxes [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::useLines [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::UserDefinedButton [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::UsualPalettes [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctBools [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctbox1 [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctColors [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctHeight [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctHeightLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctPixPerElem [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctPixPerElemLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctSizes [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::vctSubframe [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::VectorOptionsFrame [protected] |
GTK Widgets.
GtkObject* lti::viewer::configDialog::ZoomAdjustment [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ZoomEntry [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ZoomLabel [protected] |
GTK Widgets.
GtkWidget* lti::viewer::configDialog::ZoomScale [protected] |
GTK Widgets.