#include <VisuGUI_Prs3dDlg.h>

Public Member Functions | |
| VisuGUI_ScalarBarPane (QWidget *parent, bool theIsDisplayGaussMetric=false, bool thePreview=FALSE) | |
| ~VisuGUI_ScalarBarPane () | |
| void | setRange (double imin, double imax, bool sbRange) |
| void | setDefaultRange (double imin, double imax) |
| int | getOrientation () |
| void | setPosAndSize (double x, double y, double w, double h, bool vert) |
| void | setScalarBarData (int colors, int labels) |
| bool | isIRange () |
| double | getMin () |
| double | getMax () |
| double | getX () |
| double | getY () |
| double | getWidth () |
| double | getHeight () |
| int | getNbColors () |
| int | getNbLabels () |
| bool | isLogarithmic () |
| void | setLogarithmic (bool on) |
| bool | isShowDistribution () |
| void | setShowDistribution (bool on) |
| bool | isToSave () |
| void | storeToResources () |
| Stores dialog values to resources. | |
| void | initFromPrsObject (VISU::ColoredPrs3d_i *thePrs) |
| Initialise dialog box from presentation object. | |
| int | storeToPrsObject (VISU::ColoredPrs3d_i *thePrs) |
| Store values to presentation object. | |
| bool | check () |
Protected Attributes | |
| QButtonGroup * | RangeGroup |
| QRadioButton * | RBFrange |
| QRadioButton * | RBIrange |
| QLineEdit * | MinEdit |
| QLineEdit * | MaxEdit |
| QRadioButton * | RBhori |
| QRadioButton * | RBvert |
| SalomeApp_DoubleSpinBox * | XSpin |
| SalomeApp_DoubleSpinBox * | YSpin |
| SalomeApp_DoubleSpinBox * | WidthSpin |
| SalomeApp_DoubleSpinBox * | HeightSpin |
| SalomeApp_IntSpinBox * | ColorSpin |
| SalomeApp_IntSpinBox * | LabelSpin |
| QCheckBox * | CBSave |
| QCheckBox * | CBLog |
| QCheckBox * | CBDistr |
| QCheckBox * | myHideBar |
| QLabel * | myModeLbl |
| QComboBox * | myModeCombo |
| QLabel * | myGaussMetricLabel |
| QComboBox * | myGaussMetric |
| QPushButton * | myTextBtn |
| QPushButton * | myBarBtn |
| VisuGUI_TextPrefDlg * | myTextDlg |
| VisuGUI_BarPrefDlg * | myBarDlg |
| double | myHorX |
| double | myHorY |
| double | myHorW |
| double | myHorH |
| double | myVerX |
| double | myVerY |
| double | myVerW |
| double | myVerH |
| int | myHorTS |
| int | myHorLS |
| int | myHorBW |
| int | myHorBH |
| int | myVerTS |
| int | myVerTH |
| int | myVerLS |
| int | myVerBW |
| int | myVerBH |
| bool | myIsStoreTextProp |
Private Slots | |
| void | changeDefaults (int) |
| void | changeRange (int) |
| void | onFieldRange (bool) |
| void | onImposedRange (bool) |
| void | XYChanged (double) |
| void | changeScalarMode (int) |
| void | changeGaussMetric (int) |
| void | onTextPref () |
| void | onBarPref () |
| void | onPreviewCheck (bool thePreview) |
| void | updatePreview () |
| void | onShowDistribution (bool) |
Private Member Functions | |
| void | createScalarBar () |
| void | deleteScalarBar () |
Private Attributes | |
| QCheckBox * | myPreviewCheck |
| VISU_ScalarMapAct * | myPreviewActor |
| VISU::ScalarMap_i * | myScalarMap |
| VISU_ScalarMapPL * | myScalarMapPL |
| std::string | myTitle |
| bool | myBusy |
| bool | myIsDisplayGaussMetric |
| VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane | ( | QWidget * | parent, |
| bool | theIsDisplayGaussMetric = false, |
||
| bool | thePreview = FALSE |
||
| ) |
Constructor
References CBDistr, CBLog, CBSave, changeDefaults(), changeGaussMetric(), changeScalarMode(), ColorSpin, VISU.GetResourceMgr(), HeightSpin, VISU.initSpinBox(), LabelSpin, MaxEdit, MinEdit, myBarBtn, myBarDlg, myBusy, myGaussMetric, myGaussMetricLabel, myHideBar, myHorBH, myHorBW, myHorH, myHorLS, myHorTS, myHorW, myHorX, myHorY, myIsDisplayGaussMetric, myIsStoreTextProp, myModeCombo, myModeLbl, myPreviewCheck, myTextBtn, myTextDlg, myVerBH, myVerBW, myVerH, myVerLS, myVerTS, myVerW, myVerX, myVerY, onBarPref(), onFieldRange(), onImposedRange(), onPreviewCheck(), onShowDistribution(), onTextPref(), RangeGroup, RBFrange, RBhori, RBIrange, RBvert, VisuGUI_BarPrefDlg.setLabelsPrecision(), VisuGUI_BarPrefDlg.setRatios(), VisuGUI_TextPrefDlg.setTitleVisible(), VisuGUI_BarPrefDlg.setUnitsVisible(), updatePreview(), WidthSpin, XSpin, XYChanged(), and YSpin.
| VisuGUI_ScalarBarPane::~VisuGUI_ScalarBarPane | ( | ) |
References deleteScalarBar().
| void VisuGUI_ScalarBarPane::setRange | ( | double | imin, |
| double | imax, | ||
| bool | sbRange | ||
| ) |
Sets default values and range mode
References changeRange(), VISU.GetResourceMgr(), MaxEdit, MinEdit, RBFrange, and RBIrange.
| void VisuGUI_ScalarBarPane.setDefaultRange | ( | double | imin, |
| double | imax | ||
| ) |
| int VisuGUI_ScalarBarPane::getOrientation | ( | ) |
Gets orientation
References RBvert.
| void VisuGUI_ScalarBarPane::setPosAndSize | ( | double | x, |
| double | y, | ||
| double | w, | ||
| double | h, | ||
| bool | vert | ||
| ) |
| void VisuGUI_ScalarBarPane::setScalarBarData | ( | int | colors, |
| int | labels | ||
| ) |
| bool VisuGUI_ScalarBarPane::isIRange | ( | ) |
Sets and gets parameters
References RBIrange.
| double VisuGUI_ScalarBarPane::getMin | ( | ) |
References MinEdit.
| double VisuGUI_ScalarBarPane::getMax | ( | ) |
References MaxEdit.
| double VisuGUI_ScalarBarPane::getX | ( | ) |
References XSpin.
| double VisuGUI_ScalarBarPane::getY | ( | ) |
References YSpin.
| double VisuGUI_ScalarBarPane::getWidth | ( | ) |
References WidthSpin.
| double VisuGUI_ScalarBarPane::getHeight | ( | ) |
References HeightSpin.
| int VisuGUI_ScalarBarPane::getNbColors | ( | ) |
References ColorSpin.
| int VisuGUI_ScalarBarPane::getNbLabels | ( | ) |
References LabelSpin.
| bool VisuGUI_ScalarBarPane::isLogarithmic | ( | ) |
References CBLog.
| void VisuGUI_ScalarBarPane::setLogarithmic | ( | bool | on | ) |
References CBLog.
| bool VisuGUI_ScalarBarPane::isShowDistribution | ( | ) |
References CBDistr.
| void VisuGUI_ScalarBarPane::setShowDistribution | ( | bool | on | ) |
References CBDistr.
| bool VisuGUI_ScalarBarPane::isToSave | ( | ) |
References CBSave.
| void VisuGUI_ScalarBarPane::storeToResources | ( | ) |
| void VisuGUI_ScalarBarPane::initFromPrsObject | ( | VISU::ColoredPrs3d_i * | thePrs | ) |
References createScalarBar(), VISU.ColoredPrs3d_i.GetBarHeight(), VISU.ColoredPrs3d_i.GetBarOrientation(), VISU.ColoredPrs3d_i.GetBarWidth(), VISU.ScalarMap_i.GetGaussMetric(), VISU.ColoredPrs3d_i.GetHeight(), VISU.ColoredPrs3d_i.GetIsDistributionVisible(), VISU.ColoredPrs3d_i.GetLabelColor(), VISU.ColoredPrs3d_i.GetLabels(), VISU.ColoredPrs3d_i.GetLabelsFormat(), VISU.ColoredPrs3d_i.GetLabelSize(), VISU.ColoredPrs3d_i.GetLblFontType(), VISU.ColoredPrs3d_i.GetMax(), VISU.ColoredPrs3d_i.GetMin(), VISU.ColoredPrs3d_i.GetNbColors(), VISU.ColoredPrs3d_i.GetPosX(), VISU.ColoredPrs3d_i.GetPosY(), VISU.ColoredPrs3d_i.GetScalarField(), VISU.ColoredPrs3d_i.GetScalarMode(), VISU.ColoredPrs3d_i.GetScalarTimeStampNumber(), VISU.ScalarMap_i.GetScaling(), VISU.ColoredPrs3d_i.GetTitFontType(), VISU.ColoredPrs3d_i.GetTitle(), VISU.ColoredPrs3d_i.GetTitleColor(), VISU.ColoredPrs3d_i.GetTitleSize(), VISU.ColoredPrs3d_i.GetWidth(), VISU.ScalarMap_i.IsBarVisible(), VISU.ColoredPrs3d_i.IsBoldLabel(), VISU.ColoredPrs3d_i.IsBoldTitle(), VISU.ColoredPrs3d_i.IsItalicLabel(), VISU.ColoredPrs3d_i.IsItalicTitle(), VISU.ColoredPrs3d_i.IsRangeFixed(), VISU.ColoredPrs3d_i.IsShadowLabel(), VISU.ColoredPrs3d_i.IsShadowTitle(), VISU.ColoredPrs3d_i.IsUnitsVisible(), VISU.LOGARITHMIC, myBarDlg, myGaussMetric, myGaussMetricLabel, myHideBar, myHorBH, myHorBW, myHorLS, myHorTS, myIsDisplayGaussMetric, VisuGUI_TextPrefDlg.myLabelFont, myModeCombo, myModeLbl, myPreviewCheck, myScalarMap, myTextDlg, myTitle, VisuGUI_TextPrefDlg.myTitleFont, myVerBH, myVerBW, myVerLS, myVerTS, RBvert, VisuGUI_BarPrefDlg.setLabelsPrecision(), setLogarithmic(), setPosAndSize(), setRange(), VisuGUI_BarPrefDlg.setRatios(), setScalarBarData(), setShowDistribution(), VisuGUI_TextPrefDlg.setTitleText(), VisuGUI_BarPrefDlg.setUnitsVisible(), VISU.ToPrecision(), and updatePreview().
| int VisuGUI_ScalarBarPane::storeToPrsObject | ( | VISU::ColoredPrs3d_i * | thePrs | ) |
References ColorSpin, VisuGUI_BarPrefDlg.getLabelsPrecision(), VisuGUI_TextPrefDlg.getTitleText(), HeightSpin, VISU.ColoredPrs3dBase.HORIZONTAL, isLogarithmic(), isShowDistribution(), isToSave(), VisuGUI_BarPrefDlg.isUnitsVisible(), LabelSpin, VISU.LINEAR, VISU.LOGARITHMIC, MaxEdit, MinEdit, myBarDlg, myGaussMetric, myHideBar, myHorBH, myHorBW, myHorLS, myHorTS, myIsStoreTextProp, VisuGUI_TextPrefDlg.myLabelFont, myModeCombo, myScalarMap, myTextDlg, VisuGUI_TextPrefDlg.myTitleFont, myVerBH, myVerBW, myVerLS, myVerTS, RBFrange, RBvert, VISU.ColoredPrs3d_i.SetBarOrientation(), VISU.ScalarMap_i.SetBarVisible(), VISU.ColoredPrs3d_i.SetBoldLabel(), VISU.ColoredPrs3d_i.SetBoldTitle(), VISU.ScalarMap_i.SetGaussMetric(), VISU.ColoredPrs3d_i.SetIsDistributionVisible(), VISU.ColoredPrs3d_i.SetItalicLabel(), VISU.ColoredPrs3d_i.SetItalicTitle(), VISU.ColoredPrs3d_i.SetLabelColor(), VISU.ColoredPrs3d_i.SetLabels(), VISU.ColoredPrs3d_i.SetLabelsFormat(), VISU.ColoredPrs3d_i.SetLblFontType(), VISU.ColoredPrs3d_i.SetNbColors(), VISU.ColoredPrs3d_i.SetPosition(), VISU.ColoredPrs3d_i.SetRange(), VISU.ColoredPrs3d_i.SetRatios(), VISU.ColoredPrs3d_i.SetScalarMode(), VISU.ScalarMap_i.SetScaling(), VISU.ColoredPrs3d_i.SetShadowLabel(), VISU.ColoredPrs3d_i.SetShadowTitle(), VISU.ColoredPrs3d_i.SetSize(), VISU.ColoredPrs3d_i.SetSourceRange(), VISU.ColoredPrs3d_i.SetTitFontType(), VISU.ColoredPrs3d_i.SetTitle(), VISU.ColoredPrs3d_i.SetTitleColor(), VISU.ColoredPrs3d_i.SetUnitsVisible(), storeToResources(), VISU.ToFormat(), VISU.ColoredPrs3dBase.VERTICAL, WidthSpin, XSpin, and YSpin.
| bool VisuGUI_ScalarBarPane::check | ( | ) |
Called when <OK> button is clicked, validates data and closes dialog
References CBLog, changeRange(), MaxEdit, MinEdit, and RBIrange.
| void VisuGUI_ScalarBarPane::changeDefaults | ( | int | ) | [private, slot] |
| void VisuGUI_ScalarBarPane::changeRange | ( | int | ) | [private, slot] |
| void VisuGUI_ScalarBarPane::onFieldRange | ( | bool | isOn | ) | [private, slot] |
Called when Range mode is changed
References changeScalarMode(), MaxEdit, MinEdit, myModeCombo, myScalarMap, and VISU.ColoredPrs3d_i.SetSourceRange().
| void VisuGUI_ScalarBarPane::onImposedRange | ( | bool | isOn | ) | [private, slot] |
| void VisuGUI_ScalarBarPane::XYChanged | ( | double | ) | [private, slot] |
Called when X,Y position is changed
References HeightSpin, updatePreview(), WidthSpin, XSpin, and YSpin.
| void VisuGUI_ScalarBarPane::changeScalarMode | ( | int | theMode | ) | [private, slot] |
Called when scalar mode is changed
References VISU.GetResourceMgr(), VISU.ColoredPrs3d_i.GetSourceMax(), VISU.ColoredPrs3d_i.GetSourceMin(), MaxEdit, MinEdit, myScalarMap, RBFrange, VISU.ColoredPrs3d_i.SetScalarMode(), and updatePreview().
| void VisuGUI_ScalarBarPane::changeGaussMetric | ( | int | theGaussMetric | ) | [private, slot] |
Called when scalar mode is changed
References VISU.GetResourceMgr(), VISU.ColoredPrs3d_i.GetSourceMax(), VISU.ColoredPrs3d_i.GetSourceMin(), MaxEdit, MinEdit, myScalarMap, RBFrange, VISU.ScalarMap_i.SetGaussMetric(), and updatePreview().
| void VisuGUI_ScalarBarPane::onTextPref | ( | ) | [private, slot] |
References myIsStoreTextProp, myTextDlg, VisuGUI_TextPrefDlg.storeBeginValues(), and updatePreview().
| void VisuGUI_ScalarBarPane::onBarPref | ( | ) | [private, slot] |
| void VisuGUI_ScalarBarPane::onPreviewCheck | ( | bool | thePreview | ) | [private, slot] |
References createScalarBar(), and deleteScalarBar().
| void VisuGUI_ScalarBarPane::updatePreview | ( | ) | [private, slot] |
Slot update preview of scalar bar, if preview is checked
References createScalarBar(), deleteScalarBar(), and myPreviewCheck.
| void VisuGUI_ScalarBarPane::onShowDistribution | ( | bool | isOn | ) | [private, slot] |
References myScalarMap, VISU.ColoredPrs3d_i.SetIsDistributionVisible(), and updatePreview().
| void VisuGUI_ScalarBarPane::createScalarBar | ( | ) | [private] |
Creating preview scalar bar
References batchmode_visu_table.aName, check(), VISU_Convertor.GenerateName(), VISU_ColoredPL.GetBarTable(), VISU_ColoredPL.GetDistribution(), getHeight(), VisuGUI_BarPrefDlg.getLabelsPrecision(), getNbColors(), getNbLabels(), getOrientation(), VisuGUI_BarPrefDlg.getRatios(), VISU_ScalarMapAct.GetScalarBar(), VISU.ColoredPrs3d_i.GetScalarField(), VISU.ColoredPrs3d_i.GetScalarTimeStampNumber(), VISU.ScalarMap_i.GetSpecificPL(), VisuGUI_TextPrefDlg.getTitleText(), getWidth(), getX(), getY(), isLogarithmic(), isShowDistribution(), VisuGUI_BarPrefDlg.isUnitsVisible(), VISU.LINEAR, VISU.LOGARITHMIC, MaxEdit, MinEdit, myBarDlg, myBusy, myGaussMetric, VisuGUI_TextPrefDlg.myLabelFont, myModeCombo, myPreviewActor, myScalarMap, myScalarMapPL, myTextDlg, myTitle, VisuGUI_TextPrefDlg.myTitleFont, VISU_ScalarMapAct.New(), VISU_ScalarMapPL.New(), RBFrange, VISU_ScalarBarActor.SetDistribution(), VISU_ScalarBarActor.SetDistributionVisibility(), VISU_ScalarMapPL.SetGaussMetric(), VISU_ScalarBarActor.SetLookupTable(), VISU_ColoredPL.SetNbColors(), VISU_ScalarBarActor.SetRatios(), VISU_ColoredPL.SetScalarMode(), VISU_ColoredPL.SetScalarRange(), VISU_ColoredPL.SetScaling(), VISU_ColoredPL.SetSourceRange(), VISU_PipeLine.ShallowCopy(), VISU.ToFormat(), and VISU_ScalarMapPL.Update().
| void VisuGUI_ScalarBarPane::deleteScalarBar | ( | ) | [private] |
Deleting preview scalar bar
References VISU_ScalarMapAct.GetScalarBar(), myBusy, myPreviewActor, myScalarMapPL, and VISU_ScalarMapAct.RemoveFromRender().
QButtonGroup* VisuGUI_ScalarBarPane.RangeGroup [protected] |
QRadioButton* VisuGUI_ScalarBarPane.RBFrange [protected] |
QRadioButton* VisuGUI_ScalarBarPane.RBIrange [protected] |
QLineEdit* VisuGUI_ScalarBarPane.MinEdit [protected] |
QLineEdit* VisuGUI_ScalarBarPane.MaxEdit [protected] |
QRadioButton* VisuGUI_ScalarBarPane.RBhori [protected] |
QRadioButton* VisuGUI_ScalarBarPane.RBvert [protected] |
SalomeApp_DoubleSpinBox* VisuGUI_ScalarBarPane.XSpin [protected] |
SalomeApp_DoubleSpinBox* VisuGUI_ScalarBarPane.YSpin [protected] |
SalomeApp_DoubleSpinBox* VisuGUI_ScalarBarPane.WidthSpin [protected] |
SalomeApp_DoubleSpinBox* VisuGUI_ScalarBarPane.HeightSpin [protected] |
SalomeApp_IntSpinBox* VisuGUI_ScalarBarPane.ColorSpin [protected] |
SalomeApp_IntSpinBox* VisuGUI_ScalarBarPane.LabelSpin [protected] |
QCheckBox* VisuGUI_ScalarBarPane.CBSave [protected] |
QCheckBox* VisuGUI_ScalarBarPane.CBLog [protected] |
QCheckBox* VisuGUI_ScalarBarPane.CBDistr [protected] |
QCheckBox* VisuGUI_ScalarBarPane.myHideBar [protected] |
QLabel* VisuGUI_ScalarBarPane.myModeLbl [protected] |
QComboBox* VisuGUI_ScalarBarPane.myModeCombo [protected] |
QLabel* VisuGUI_ScalarBarPane.myGaussMetricLabel [protected] |
QComboBox* VisuGUI_ScalarBarPane.myGaussMetric [protected] |
QPushButton* VisuGUI_ScalarBarPane.myTextBtn [protected] |
QPushButton* VisuGUI_ScalarBarPane.myBarBtn [protected] |
VisuGUI_TextPrefDlg* VisuGUI_ScalarBarPane.myTextDlg [protected] |
VisuGUI_BarPrefDlg* VisuGUI_ScalarBarPane.myBarDlg [protected] |
double VisuGUI_ScalarBarPane.myHorX [protected] |
double VisuGUI_ScalarBarPane.myHorY [protected] |
double VisuGUI_ScalarBarPane.myHorW [protected] |
double VisuGUI_ScalarBarPane.myHorH [protected] |
double VisuGUI_ScalarBarPane.myVerX [protected] |
double VisuGUI_ScalarBarPane.myVerY [protected] |
double VisuGUI_ScalarBarPane.myVerW [protected] |
double VisuGUI_ScalarBarPane.myVerH [protected] |
int VisuGUI_ScalarBarPane.myHorTS [protected] |
int VisuGUI_ScalarBarPane.myHorLS [protected] |
int VisuGUI_ScalarBarPane.myHorBW [protected] |
int VisuGUI_ScalarBarPane.myHorBH [protected] |
int VisuGUI_ScalarBarPane.myVerTS [protected] |
int VisuGUI_ScalarBarPane.myVerTH [protected] |
int VisuGUI_ScalarBarPane.myVerLS [protected] |
int VisuGUI_ScalarBarPane.myVerBW [protected] |
int VisuGUI_ScalarBarPane.myVerBH [protected] |
bool VisuGUI_ScalarBarPane.myIsStoreTextProp [protected] |
QCheckBox* VisuGUI_ScalarBarPane.myPreviewCheck [private] |
std::string VisuGUI_ScalarBarPane.myTitle [private] |
bool VisuGUI_ScalarBarPane.myBusy [private] |
bool VisuGUI_ScalarBarPane.myIsDisplayGaussMetric [private] |