#include <SMESHGUI_Preferences_ScalarBarDlg.h>
SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg |
( |
SMESHGUI * |
theModule | ) |
|
|
private |
SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg.
Constructor
References DEF_HOR_H, DEF_HOR_W, DEF_HOR_X, DEF_HOR_Y, DEF_VER_H, DEF_VER_W, DEF_VER_X, DEF_VER_Y, SMESH::GetResourceMgr(), MARGIN_SIZE, MINIMUM_WIDTH, myActor, myApplyBtn, myButtonGrp, myCancelBtn, myColorsSpin, myDistribColorGrp, myDistributionColorLbl, myDistributionGrp, myDMonoColor, myDMultiColor, myFontGrp, myHeightSpin, myHelpBtn, myHelpFileName, myHorizRadioBtn, myIniH, myIniOrientation, myIniW, myIniX, myIniY, myLabColorGrp, myLabelsBoldCheck, myLabelsColorBtn, myLabelsFontCombo, myLabelsItalicCheck, myLabelsShadowCheck, myLabelsSpin, myLogarithmicCheck, myMaxEdit, myMinEdit, myMonoColorBtn, myOkBtn, myOrientationGrp, myOriginDimGrp, myRangeGrp, mySelectionMgr, mySMESHGUI, myTitleBoldCheck, myTitleColorBtn, myTitleFontCombo, myTitleItalicCheck, myTitleShadowCheck, myVertRadioBtn, myWidthSpin, myXSpin, myYSpin, onApply(), onDistributionActivated(), onDistributionChanged(), onHelp(), onMinMaxChanged(), onOk(), onOrientationChanged(), onSelectionChanged(), onXYChanged(), SMESHGUI_SpinBox::RangeStepAndValidator(), reject(), setOriginAndSize(), SMESH_MONOCOLOR_TYPE, and SPACING_SIZE.
Referenced by ScalarBarProperties().
SMESHGUI_Preferences_ScalarBarDlg::~SMESHGUI_Preferences_ScalarBarDlg |
( |
| ) |
|
void SMESHGUI_Preferences_ScalarBarDlg::initScalarBarFromResources |
( |
| ) |
|
bool SMESHGUI_Preferences_ScalarBarDlg::onApply |
( |
| ) |
|
|
protectedslot |
SMESHGUI_Preferences_ScalarBarDlg::onApply.
Apply button slot
References SMESH_ScalarBarActor::GetDistributionColor(), SMESH_ScalarBarActor::GetDistributionColoringType(), SMESH_Actor::GetPlot2Histogram(), SMESH_Actor::GetScalarBarActor(), myActor, myColorsSpin, myDistributionGrp, myDMultiColor, myHeightSpin, myHorizRadioBtn, myLabelsBoldCheck, myLabelsColorBtn, myLabelsFontCombo, myLabelsItalicCheck, myLabelsShadowCheck, myLabelsSpin, myLogarithmicCheck, myMaxEdit, myMinEdit, myMonoColorBtn, myTitleBoldCheck, myTitleColorBtn, myTitleFontCombo, myTitleItalicCheck, myTitleShadowCheck, myWidthSpin, myXSpin, myYSpin, SMESH::ProcessIn2DViewers(), SMESH::RepaintCurrentView(), SMESH_ScalarBarActor::SetDistributionColor(), SMESH_ScalarBarActor::SetDistributionColoringType(), SMESH_ScalarBarActor::SetDistributionVisibility(), SMESH_ScalarBarActor::SetLabelTextProperty(), SMESH_ScalarBarActor::SetOrientationToHorizontal(), SMESH_ScalarBarActor::SetOrientationToVertical(), SMESH_ScalarBarActor::SetTitleTextProperty(), SMESH_MONOCOLOR_TYPE, SMESH_MULTICOLOR_TYPE, and SMESH_Actor::UpdateDistribution().
Referenced by onOk(), and SMESHGUI_Preferences_ScalarBarDlg().
void SMESHGUI_Preferences_ScalarBarDlg::onDistributionActivated |
( |
bool |
on | ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::onDistributionChanged |
( |
int |
id | ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::onHelp |
( |
| ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::onMinMaxChanged |
( |
| ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::onOk |
( |
| ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::onOrientationChanged |
( |
| ) |
|
|
protectedslot |
SMESHGUI_Preferences_ScalarBarDlg::onOrientationChanged.
Called when orientation is changed
References DEF_HOR_H, DEF_HOR_W, DEF_HOR_X, DEF_HOR_Y, DEF_VER_H, DEF_VER_W, DEF_VER_X, DEF_VER_Y, initScalarBarFromResources(), myIniH, myIniOrientation, myIniW, myIniX, myIniY, myVertRadioBtn, and setOriginAndSize().
Referenced by SMESHGUI_Preferences_ScalarBarDlg().
void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged |
( |
| ) |
|
|
protectedslot |
SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged.
Called when selection changed
References SMESH_Actor::eNone, SMESH::FindActorByEntry(), SMESH_Actor::GetControlMode(), SMESH_ScalarBarActor::GetDistributionColor(), SMESH_ScalarBarActor::GetDistributionColoringType(), SMESH_ScalarBarActor::GetDistributionVisibility(), SMESH_Actor::GetScalarBarActor(), Handle(), myActor, myApplyBtn, myColorsSpin, myDistribColorGrp, myDistributionGrp, myDMonoColor, myDMultiColor, myFontGrp, myHorizRadioBtn, myIniH, myIniOrientation, myIniW, myIniX, myIniY, myLabColorGrp, myLabelsBoldCheck, myLabelsColorBtn, myLabelsFontCombo, myLabelsItalicCheck, myLabelsShadowCheck, myLabelsSpin, myLogarithmicCheck, myMaxEdit, myMinEdit, myMonoColorBtn, myOkBtn, myOrientationGrp, myOriginDimGrp, myRangeGrp, mySelectionMgr, myTitleBoldCheck, myTitleColorBtn, myTitleFontCombo, myTitleItalicCheck, myTitleShadowCheck, myVertRadioBtn, onDistributionActivated(), onDistributionChanged(), setOriginAndSize(), SMESH_MONOCOLOR_TYPE, and VTK_ORIENT_VERTICAL.
Referenced by SMESHGUI_Preferences_ScalarBarDlg().
void SMESHGUI_Preferences_ScalarBarDlg::onXYChanged |
( |
| ) |
|
|
protectedslot |
void SMESHGUI_Preferences_ScalarBarDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_Preferences_ScalarBarDlg::ScalarBarProperties |
( |
SMESHGUI * |
theModule | ) |
|
|
static |
void SMESHGUI_Preferences_ScalarBarDlg::setOriginAndSize |
( |
const double |
x, |
|
|
const double |
y, |
|
|
const double |
w, |
|
|
const double |
h |
|
) |
| |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_HOR_H |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_HOR_W |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_HOR_X |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_HOR_Y |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_VER_H |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_VER_W |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_VER_X |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::DEF_VER_Y |
|
private |
SMESH_Actor* SMESHGUI_Preferences_ScalarBarDlg::myActor |
|
private |
QPushButton* SMESHGUI_Preferences_ScalarBarDlg::myApplyBtn |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myButtonGrp |
|
private |
QPushButton* SMESHGUI_Preferences_ScalarBarDlg::myCancelBtn |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_Preferences_ScalarBarDlg::myColorsSpin |
|
private |
QButtonGroup* SMESHGUI_Preferences_ScalarBarDlg::myDistribColorGrp |
|
private |
QLabel* SMESHGUI_Preferences_ScalarBarDlg::myDistributionColorLbl |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myDistributionGrp |
|
private |
QRadioButton* SMESHGUI_Preferences_ScalarBarDlg::myDMonoColor |
|
private |
QRadioButton* SMESHGUI_Preferences_ScalarBarDlg::myDMultiColor |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myFontGrp |
|
private |
QPushButton* SMESHGUI_Preferences_ScalarBarDlg::myHelpBtn |
|
private |
QString SMESHGUI_Preferences_ScalarBarDlg::myHelpFileName |
|
private |
QRadioButton* SMESHGUI_Preferences_ScalarBarDlg::myHorizRadioBtn |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::myIniH |
|
private |
int SMESHGUI_Preferences_ScalarBarDlg::myIniOrientation |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::myIniW |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::myIniX |
|
private |
double SMESHGUI_Preferences_ScalarBarDlg::myIniY |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myLabColorGrp |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myLabelsBoldCheck |
|
private |
QtxColorButton* SMESHGUI_Preferences_ScalarBarDlg::myLabelsColorBtn |
|
private |
QComboBox* SMESHGUI_Preferences_ScalarBarDlg::myLabelsFontCombo |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myLabelsItalicCheck |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myLabelsShadowCheck |
|
private |
SalomeApp_IntSpinBox* SMESHGUI_Preferences_ScalarBarDlg::myLabelsSpin |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myLogarithmicCheck |
|
private |
QLineEdit* SMESHGUI_Preferences_ScalarBarDlg::myMaxEdit |
|
private |
QLineEdit* SMESHGUI_Preferences_ScalarBarDlg::myMinEdit |
|
private |
QtxColorButton* SMESHGUI_Preferences_ScalarBarDlg::myMonoColorBtn |
|
private |
QPushButton* SMESHGUI_Preferences_ScalarBarDlg::myOkBtn |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myOrientationGrp |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myOriginDimGrp |
|
private |
QGroupBox* SMESHGUI_Preferences_ScalarBarDlg::myRangeGrp |
|
private |
LightApp_SelectionMgr* SMESHGUI_Preferences_ScalarBarDlg::mySelectionMgr |
|
private |
SMESHGUI* SMESHGUI_Preferences_ScalarBarDlg::mySMESHGUI |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myTitleBoldCheck |
|
private |
QtxColorButton* SMESHGUI_Preferences_ScalarBarDlg::myTitleColorBtn |
|
private |
QComboBox* SMESHGUI_Preferences_ScalarBarDlg::myTitleFontCombo |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myTitleItalicCheck |
|
private |
QCheckBox* SMESHGUI_Preferences_ScalarBarDlg::myTitleShadowCheck |
|
private |
QRadioButton* SMESHGUI_Preferences_ScalarBarDlg::myVertRadioBtn |
|
private |