LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::viewer::configDialog Class Reference

Parent class for all types of configuration dialogs for the normal viewer. More...

#include <ltiViewer.h>

Inheritance diagram for lti::viewer::configDialog:
Inheritance graph
[legend]
Collaboration diagram for lti::viewer::configDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 configDialog ()
void useFunctor (viewerFunctor &fct)
Virtual members to be reimplemented

Following members should be reimplemented in your derived class if you add new dialog options.



virtual void insertFrames ()
virtual bool getDialogData ()
virtual bool setDialogData ()
virtual configGTKDialognewInstance () const

Protected Member Functions

bool setCommonDialogData ()
void clearAllWidgets ()
void buildIntensityControlFrame ()
void buildZoomFrame ()
void buildStatisticsFrame ()
void buildPaletteFrame ()
void buildPaletteAndLabelFrame ()
void buildHexadecimalDisplayFrame ()
void buildVectorFrame ()

Protected Attributes

viewerFunctormaster



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)

Detailed Description

Parent class for all types of configuration dialogs for the normal viewer.


Constructor & Destructor Documentation

lti::viewer::configDialog::configDialog (  ) 

Default constructor.


Member Function Documentation

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.

Returns:
true if successful, false otherwise.

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.

Returns:
true if successful, false otherwise.

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


Member Data Documentation

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::BlueButton [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::ColorsBox [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::GrayButton [protected]

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::hbox2 [protected]

GTK Widgets.

GtkWidget* lti::viewer::configDialog::hexDisplay [protected]

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::HueButton [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::lineColor [protected]

GTK Widgets.

The painting functor.

GtkWidget* lti::viewer::configDialog::MaxEntry [protected]

GTK Widgets.

GtkWidget* lti::viewer::configDialog::MaxLabel [protected]

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::MinEntry [protected]

GTK Widgets.

GtkWidget* lti::viewer::configDialog::MinLabel [protected]

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::Neigh8 [protected]

GTK Widgets.

Value used as 1.0 in the given image type (usually 1.0 or 255);.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::RedButton [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::Size [protected]

GTK Widgets.

GtkWidget* lti::viewer::configDialog::SizeEntry [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::table1 [protected]

GTK Widgets.

Temporal parameters object.

The real parameters are taken only if the user does an ok!

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::useBoxes [protected]

GTK Widgets.

GtkWidget* lti::viewer::configDialog::useLines [protected]

GTK Widgets.

GTK Widgets.

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.

GTK Widgets.

GTK Widgets.

GTK Widgets.

GtkWidget* lti::viewer::configDialog::vctSizes [protected]

GTK Widgets.

GTK Widgets.

GTK Widgets.

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.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:29:04 2010 for LTI-Lib by Doxygen 1.6.1