Version: 9.16.0
SMESHGUI_SpinBoxForbiddendRange Class Reference

#include <SMESHGUI_SpinBoxForbiddendRange.h>

Inheritance diagram for SMESHGUI_SpinBoxForbiddendRange:

Public Slots

void SetStep (double)
 

Public Member Functions

 SMESHGUI_SpinBoxForbiddendRange (QWidget *)
 
 ~SMESHGUI_SpinBoxForbiddendRange ()
 
virtual void stepBy (const int steps) override
 
virtual double valueFromText (QString const &text) const override
 
virtual QValidator::State validate (QString &text, int &pos) const override
 
void SetForbiddenRange (const double min, const double max)
 
void RangeStepAndValidator (double=-1000000.0, double=+1000000.0, double=100.0, const char *="length_precision")
 
void SetValue (double)
 
double GetValue () const
 
QString GetString () const
 
QLineEdit * editor () const
 

Protected Member Functions

virtual bool checkRange (const double value) const override
 
bool IsValueInRange (const double value) const
 
double GetValueInRange (const double value) const
 
virtual void showValidationToolTip (const QValidator::State state) const override
 

Private Attributes

double forbiddenMin
 
double forbiddenMax
 
bool toolTipFlag = false
 

Constructor & Destructor Documentation

◆ SMESHGUI_SpinBoxForbiddendRange()

SMESHGUI_SpinBoxForbiddendRange::SMESHGUI_SpinBoxForbiddendRange ( QWidget parent)

◆ ~SMESHGUI_SpinBoxForbiddendRange()

SMESHGUI_SpinBoxForbiddendRange::~SMESHGUI_SpinBoxForbiddendRange ( )

Member Function Documentation

◆ checkRange()

bool SMESHGUI_SpinBoxForbiddendRange::checkRange ( const double  value) const
overrideprotectedvirtual

References IsValueInRange().

◆ editor()

◆ GetString()

QString SMESHGUI_SpinBox::GetString ( ) const
inherited

◆ GetValue()

double SMESHGUI_SpinBox::GetValue ( ) const
inherited

Referenced by SMESHGUI_AddMeshElementDlg::ClickOnApply(), SMESHGUI_BuildCompoundDlg::ClickOnApply(), SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply(), SMESHGUI_NodesDlg::ClickOnApply(), SMESHGUI_RevolutionDlg::ClickOnApply(), SMESHGUI_RotationDlg::ClickOnApply(), SMESHGUI_SewingDlg::ClickOnApply(), SMESHGUI_SmoothingDlg::ClickOnApply(), SMESHGUI_TranslationDlg::ClickOnApply(), SMESHGUI_AddMeshElementDlg::displaySimulation(), SMESHGUI_ExtrusionDlg::getExtrusionVector(), SMESHGUI_SymmetryDlg::getMirror(), StdMeshersGUI_StdHypothesisCreator::getParamFromCustomWidget(), SMESHGUI_ScaleDlg::getScale(), SMESHGUI_ExtrusionDlg::getScaleParams(), SMESHGUI_RevolutionDlg::IsAxisOk(), SMESHGUI_RotationDlg::IsAxisOk(), SMESHGUI_SymmetryDlg::IsMirrorOk(), SMESHGUI_ReorientFacesOp::isValid(), SMESHGUI_ExtrusionDlg::isValuesValid(), SMESHGUI_ExtrusionAlongPathDlg::OnAngleAdded(), SMESHGUI_AddNodeOnFaceOp::onApply(), SMESHGUI_MakeNodeAtPointOp::onApply(), SMESHGUI_ReorientFacesOp::onApply(), SMESHGUI_AddNodeOnSegmentOp::onApply(), SMESHGUI_MergeDlg::onDetect(), SMESHGUI_SewingDlg::onDetectClicked(), SMESHGUI_ExtrusionAlongPathDlg::onDisplaySimulation(), SMESHGUI_UnionOfTrianglesDlg::onDisplaySimulation(), SMESHGUI_RevolutionDlg::onDisplaySimulation(), SMESHGUI_RotationDlg::onDisplaySimulation(), SMESHGUI_TranslationDlg::onDisplaySimulation(), SMESHGUI_FindElemByPointOp::onFind(), SMESHGUI_ExtrusionDlg::OnScaleAdded(), SMESHGUI_MakeNodeAtPointOp::onSelectionDone(), StdMeshersGUI::GridAxisTab::onStepChange(), SMESHGUI_AddNodeOnFaceOp::pointLocationChanged(), SMESHGUI_UnionOfTrianglesDlg::process(), SMESHGUI_SplitVolumesDlg::process(), SMESHGUI_AddNodeOnFaceOp::redisplayPreview(), SMESHGUI_FindElemByPointOp::redisplayPreview(), SMESHGUI_MakeNodeAtPointOp::redisplayPreview(), SMESHGUI_NodesDlg::SelectionIntoArgument(), SMESHGUI_RevolutionDlg::SelectionIntoArgument(), SMESHGUI_RotationDlg::SelectionIntoArgument(), SMESHGUI_SymmetryDlg::SelectionIntoArgument(), StdMeshersGUI::LineDelegate::setModelData(), SMESHGUI_FilterTable::AdditionalWidget::SetPrecision(), SMESHGUI_CtrlInfo::SMESHGUI_CtrlInfo(), SMESHGUI_FindElemByPointOp::SMESHGUI_FindElemByPointOp(), StdMeshersGUI_CartesianParamCreator::storeParams(), and SMESHGUI_NodesDlg::ValueChangedInSpinBox().

◆ GetValueInRange()

double SMESHGUI_SpinBoxForbiddendRange::GetValueInRange ( const double  value) const
protected

References forbiddenMax, forbiddenMin, and IsValueInRange().

Referenced by stepBy(), and valueFromText().

◆ IsValueInRange()

bool SMESHGUI_SpinBoxForbiddendRange::IsValueInRange ( const double  value) const
protected

References forbiddenMax.

Referenced by checkRange(), GetValueInRange(), and validate().

◆ RangeStepAndValidator()

void SMESHGUI_SpinBox::RangeStepAndValidator ( double  min = -1000000.0,
double  max = +1000000.0,
double  step = 100.0,
const char *  quantity = "length_precision" 
)
inherited

Referenced by SMESHGUI_FilterTable::AdditionalWidget::AdditionalWidget(), StdMeshersGUI_StdHypothesisCreator::attuneStdWidget(), StdMeshersGUI_CartesianParamCreator::buildFrame(), StdMeshersGUI_NbSegmentsCreator::buildFrame(), StdMeshersGUI::LineDelegate::createEditor(), StdMeshersGUI_DistrTableFrame::SpinBoxDelegate::createEditor(), StdMeshersGUI_QuadrangleParamCreator::ItemDelegate::createEditor(), SMESHGUI_AddNodeOnFaceDlg::createMainFrame(), SMESHGUI_AddNodeOnSegmentDlg::createMainFrame(), SMESHGUI_FindElemByPointDlg::createMainFrame(), SMESHGUI_MakeNodeAtPointDlg::createMainFrame(), SMESHGUI_ReorientFacesDlg::createMainFrame(), StdMeshersGUI::GridAxisTab::GridAxisTab(), SMESHGUI_MergeDlg::Init(), SMESHGUI_NodesDlg::Init(), StdMeshersGUI::LineDelegate::setEditorData(), SMESHGUI_FilterTable::AdditionalWidget::SetPrecision(), SMESHGUI_AddMeshElementDlg::SMESHGUI_AddMeshElementDlg(), SMESHGUI_BuildCompoundDlg::SMESHGUI_BuildCompoundDlg(), SMESHGUI_CtrlInfo::SMESHGUI_CtrlInfo(), SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg(), SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg(), SMESHGUI_FaceGroupsSeparatedByEdgesDlg::SMESHGUI_FaceGroupsSeparatedByEdgesDlg(), SMESHGUI_OffsetDlg::SMESHGUI_OffsetDlg(), SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg(), SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg(), SMESHGUI_RotationDlg::SMESHGUI_RotationDlg(), SMESHGUI_ScaleDlg::SMESHGUI_ScaleDlg(), SMESHGUI_SewingDlg::SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg(), SMESHGUI_SplitVolumesDlg::SMESHGUI_SplitVolumesDlg(), SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg(), SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg(), SMESHGUI_UnionOfTrianglesDlg::SMESHGUI_UnionOfTrianglesDlg(), StdMeshersGUI_FixedPointsParamWdg::StdMeshersGUI_FixedPointsParamWdg(), and StdMeshersGUI_StdHypothesisCreator::stdParams().

◆ SetForbiddenRange()

void SMESHGUI_SpinBoxForbiddendRange::SetForbiddenRange ( const double  min,
const double  max 
)

◆ SetStep

void SMESHGUI_SpinBox::SetStep ( double  newStep)
slotinherited

◆ SetValue()

void SMESHGUI_SpinBox::SetValue ( double  v)
inherited

References SMESHGUI_SpinBox::editor().

Referenced by StdMeshersGUI_CartesianParamCreator::buildFrame(), SMESHGUI_MakeNodeAtPointDlg::ConstructorsClicked(), SMESHGUI_FindElemByPointDlg::createMainFrame(), SMESHGUI_ReorientFacesDlg::createMainFrame(), StdMeshersGUI::GridAxisTab::GridAxisTab(), SMESHGUI_BuildCompoundDlg::Init(), SMESHGUI_MergeDlg::Init(), SMESHGUI_NodesDlg::Init(), SMESHGUI_ExtrusionAlongPathDlg::Init(), SMESHGUI_ExtrusionDlg::Init(), SMESHGUI_OffsetDlg::Init(), SMESHGUI_RevolutionDlg::Init(), SMESHGUI_RotationDlg::Init(), SMESHGUI_ScaleDlg::Init(), SMESHGUI_SymmetryDlg::Init(), SMESHGUI_TranslationDlg::Init(), SMESHGUI_MakeNodeAtPointOp::onApply(), StdMeshersGUI_CartesianParamCreator::onOptimalAxes(), StdMeshersGUI_CartesianParamCreator::onOrthogonalAxes(), StdMeshersGUI_CartesianParamCreator::onResetAxes(), StdMeshersGUI_CartesianParamCreator::onSelectionChange(), SMESHGUI_AddNodeOnFaceOp::onSelectionDone(), SMESHGUI_MakeNodeAtPointOp::onSelectionDone(), SMESHGUI_BuildCompoundDlg::onSelectMerge(), SMESHGUI_SplitVolumesDlg::onSetDir(), StdMeshersGUI::GridAxisTab::onStepChange(), SMESHGUI_AddNodeOnFaceOp::pointLocationChanged(), SMESHGUI_AddNodeOnFaceOp::processStyleEvents(), SMESHGUI_AddNodeOnSegmentOp::processStyleEvents(), SMESHGUI_MakeNodeAtPointOp::processStyleEvents(), SMESHGUI_MakeNodeAtPointOp::redisplayPreview(), StdMeshersGUI_CartesianParamCreator::retrieveParams(), SMESHGUI_ReorientFacesOp::selectionDone(), SMESHGUI_ExtrusionAlongPathDlg::SelectionIntoArgument(), SMESHGUI_ExtrusionDlg::SelectionIntoArgument(), SMESHGUI_NodesDlg::SelectionIntoArgument(), SMESHGUI_RevolutionDlg::SelectionIntoArgument(), SMESHGUI_RotationDlg::SelectionIntoArgument(), SMESHGUI_ScaleDlg::SelectionIntoArgument(), SMESHGUI_SymmetryDlg::SelectionIntoArgument(), SMESHGUI_TranslationDlg::SelectionIntoArgument(), StdMeshersGUI::LineDelegate::setEditorData(), SMESHGUI_FilterTable::AdditionalWidget::SetPrecision(), SMESHGUI_SplitVolumesDlg::showFacetByElement(), SMESHGUI_AddMeshElementDlg::SMESHGUI_AddMeshElementDlg(), SMESHGUI_CtrlInfo::SMESHGUI_CtrlInfo(), SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg(), SMESHGUI_SewingDlg::SMESHGUI_SewingDlg(), SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg(), SMESHGUI_SplitVolumesDlg::SMESHGUI_SplitVolumesDlg(), SMESHGUI_UnionOfTrianglesDlg::SMESHGUI_UnionOfTrianglesDlg(), SMESHGUI_AddNodeOnFaceOp::startOperation(), SMESHGUI_AddNodeOnSegmentOp::startOperation(), SMESHGUI_MakeNodeAtPointOp::startOperation(), and StdMeshersGUI_StdHypothesisCreator::stdParams().

◆ showValidationToolTip()

void SMESHGUI_SpinBoxForbiddendRange::showValidationToolTip ( const QValidator::State  state) const
overrideprotectedvirtual

References forbiddenMax, forbiddenMin, and toolTipFlag.

Referenced by validate().

◆ stepBy()

void SMESHGUI_SpinBoxForbiddendRange::stepBy ( const int  steps)
overridevirtual

References GetValueInRange().

◆ validate()

QValidator::State SMESHGUI_SpinBoxForbiddendRange::validate ( QString &  text,
int &  pos 
) const
overridevirtual

◆ valueFromText()

double SMESHGUI_SpinBoxForbiddendRange::valueFromText ( QString const &  text) const
overridevirtual

References GetValueInRange().

Field Documentation

◆ forbiddenMax

double SMESHGUI_SpinBoxForbiddendRange::forbiddenMax
private

◆ forbiddenMin

double SMESHGUI_SpinBoxForbiddendRange::forbiddenMin
private

◆ toolTipFlag

bool SMESHGUI_SpinBoxForbiddendRange::toolTipFlag = false
mutableprivate

Referenced by showValidationToolTip().