Version: 6.3.1
Public Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes

VisuGUI_ScalarBarPane Class Reference

#include <VisuGUI_Prs3dDlg.h>

Inheritance diagram for VisuGUI_ScalarBarPane:
Inheritance graph

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
QLineEditMinEdit
QLineEditMaxEdit
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_TextPrefDlgmyTextDlg
VisuGUI_BarPrefDlgmyBarDlg
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_ScalarMapActmyPreviewActor
VISU::ScalarMap_imyScalarMap
VISU_ScalarMapPLmyScalarMapPL
std::string myTitle
bool myBusy
bool myIsDisplayGaussMetric

Constructor & Destructor Documentation

VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane ( QWidget parent,
bool  theIsDisplayGaussMetric = false,
bool  thePreview = FALSE 
)
VisuGUI_ScalarBarPane::~VisuGUI_ScalarBarPane ( )

References deleteScalarBar().


Member Function Documentation

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 
)

Sets size and position

References changeDefaults(), myHorH, myHorW, myHorX, myHorY, myVerH, myVerW, myVerX, myVerY, RBhori, and RBvert.

void VisuGUI_ScalarBarPane::setScalarBarData ( int  colors,
int  labels 
)

Sets colors and labels number

References ColorSpin, and LabelSpin.

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]

Called when orientation is changed

References HeightSpin, myHorH, myHorW, myHorX, myHorY, myVerH, myVerW, myVerX, myVerY, RBvert, updatePreview(), WidthSpin, XSpin, and YSpin.

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]
void VisuGUI_ScalarBarPane::changeGaussMetric ( int  theGaussMetric) [private, slot]
void VisuGUI_ScalarBarPane::onTextPref ( ) [private, slot]
void VisuGUI_ScalarBarPane::onBarPref ( ) [private, slot]
void VisuGUI_ScalarBarPane::onPreviewCheck ( bool  thePreview) [private, slot]
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]
void VisuGUI_ScalarBarPane::createScalarBar ( ) [private]
void VisuGUI_ScalarBarPane::deleteScalarBar ( ) [private]

Field Documentation

QButtonGroup* VisuGUI_ScalarBarPane.RangeGroup [protected]
QRadioButton* VisuGUI_ScalarBarPane.RBFrange [protected]
QRadioButton* VisuGUI_ScalarBarPane.RBIrange [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]
QComboBox* VisuGUI_ScalarBarPane.myGaussMetric [protected]
QPushButton* VisuGUI_ScalarBarPane.myTextBtn [protected]
QPushButton* VisuGUI_ScalarBarPane.myBarBtn [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]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS