mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
fix bug 9395. set coordinates and displacements limit to interval [-1e+15, 1e+15]
This commit is contained in:
parent
647f5d3b2b
commit
3588d5b642
@ -125,7 +125,7 @@ void BasicGUI_CircleDlg::Init()
|
|||||||
double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPntVecR->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, aStep, 3);
|
GroupPntVecR->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, aStep, 3);
|
||||||
GroupPntVecR->SpinBox_DX->SetValue( 100 );
|
GroupPntVecR->SpinBox_DX->SetValue( 100 );
|
||||||
|
|
||||||
/* signals and slots connections */
|
/* signals and slots connections */
|
||||||
|
@ -114,8 +114,8 @@ void BasicGUI_EllipseDlg::Init()
|
|||||||
double aMajorR( 200. ), aMinorR( 100. );
|
double aMajorR( 200. ), aMinorR( 100. );
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator( 0.001, 999.999, step, 3 );
|
GroupPoints->SpinBox_DX->RangeStepAndValidator( 0.001, COORD_MAX, step, 3 );
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator( 0.001, 999.999, step, 3 );
|
GroupPoints->SpinBox_DY->RangeStepAndValidator( 0.001, COORD_MAX, step, 3 );
|
||||||
GroupPoints->SpinBox_DX->SetValue( aMajorR );
|
GroupPoints->SpinBox_DX->SetValue( aMajorR );
|
||||||
GroupPoints->SpinBox_DY->SetValue( aMinorR );
|
GroupPoints->SpinBox_DY->SetValue( aMinorR );
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ void BasicGUI_MarkerDlg::Init()
|
|||||||
|
|
||||||
for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
|
for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
|
||||||
{
|
{
|
||||||
anIter.data()->RangeStepAndValidator( -999.999, 999.999, step, 3 );
|
anIter.data()->RangeStepAndValidator( COORD_MIN, COORD_MAX, step, 3 );
|
||||||
connect( anIter.data(), SIGNAL( valueChanged( double ) ),
|
connect( anIter.data(), SIGNAL( valueChanged( double ) ),
|
||||||
this, SLOT( onValueChanged( double ) ) );
|
this, SLOT( onValueChanged( double ) ) );
|
||||||
}
|
}
|
||||||
|
@ -136,11 +136,11 @@ void BasicGUI_PlaneDlg::Init()
|
|||||||
double aTrimSize = 2000.0;
|
double aTrimSize = 2000.0;
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
GroupPntDir->SpinBox_DX->RangeStepAndValidator( 0.001, 10000000.0, aStep, 3 );
|
GroupPntDir->SpinBox_DX->RangeStepAndValidator( 0.001, COORD_MAX, aStep, 3 );
|
||||||
GroupPntDir->SpinBox_DX->SetValue( aTrimSize );
|
GroupPntDir->SpinBox_DX->SetValue( aTrimSize );
|
||||||
Group3Pnts->SpinBox_DX->RangeStepAndValidator(0.001, 10000000.0, aStep, 3);
|
Group3Pnts->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, aStep, 3);
|
||||||
Group3Pnts->SpinBox_DX->SetValue( aTrimSize );
|
Group3Pnts->SpinBox_DX->SetValue( aTrimSize );
|
||||||
GroupFace->SpinBox_DX->RangeStepAndValidator(0.001, 10000000.0, aStep, 3);
|
GroupFace->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, aStep, 3);
|
||||||
GroupFace->SpinBox_DX->SetValue( aTrimSize );
|
GroupFace->SpinBox_DX->SetValue( aTrimSize );
|
||||||
|
|
||||||
/* signals and slots connections */
|
/* signals and slots connections */
|
||||||
|
@ -157,16 +157,16 @@ void BasicGUI_PointDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
GroupXYZ->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupXYZ->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupXYZ->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupXYZ->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupXYZ->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupXYZ->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupXYZ->SpinBox_DX->SetValue(0.0);
|
GroupXYZ->SpinBox_DX->SetValue(0.0);
|
||||||
GroupXYZ->SpinBox_DY->SetValue(0.0);
|
GroupXYZ->SpinBox_DY->SetValue(0.0);
|
||||||
GroupXYZ->SpinBox_DZ->SetValue(0.0);
|
GroupXYZ->SpinBox_DZ->SetValue(0.0);
|
||||||
|
|
||||||
GroupRefPoint->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupRefPoint->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupRefPoint->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupRefPoint->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupRefPoint->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupRefPoint->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupRefPoint->SpinBox_DX->SetValue(0.0);
|
GroupRefPoint->SpinBox_DX->SetValue(0.0);
|
||||||
GroupRefPoint->SpinBox_DY->SetValue(0.0);
|
GroupRefPoint->SpinBox_DY->SetValue(0.0);
|
||||||
GroupRefPoint->SpinBox_DZ->SetValue(0.0);
|
GroupRefPoint->SpinBox_DZ->SetValue(0.0);
|
||||||
|
@ -118,9 +118,9 @@ void BasicGUI_VectorDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
|
|
||||||
double dx( 0. ), dy( 0. ), dz( 200. );
|
double dx( 0. ), dy( 0. ), dz( 200. );
|
||||||
GroupDimensions->SpinBox_DX->SetValue( dx );
|
GroupDimensions->SpinBox_DX->SetValue( dx );
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
#else
|
#else
|
||||||
#define DLGREF_WNT_EXPORT
|
#define DLGREF_WNT_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define COORD_MIN -1e+15
|
||||||
|
#define COORD_MAX +1e+15
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : DlgRef_SpinBox
|
// class : DlgRef_SpinBox
|
||||||
// purpose : Derivated from QSpinBox class and modified to accept floats
|
// purpose : Derivated from QSpinBox class and modified to accept floats
|
||||||
|
@ -257,16 +257,16 @@ void EntityGUI_SketcherDlg::Init()
|
|||||||
double step = SUIT_Session::session()->resourceMgr()->doubleValue( "Geometry", "SettingsGeomStep", 100.0 );
|
double step = SUIT_Session::session()->resourceMgr()->doubleValue( "Geometry", "SettingsGeomStep", 100.0 );
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
Group1Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group1Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group2Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group2Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group3Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group3Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group3Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group3Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group3Spin->SpinBox_DZ->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group3Spin->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group4Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 0.1, 3);
|
Group4Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 0.1, 3);
|
||||||
Group4Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 0.1, 3);
|
Group4Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 0.1, 3);
|
||||||
Group4Spin->SpinBox_DZ->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
|
Group4Spin->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
Group4Spin->SpinBox_DS->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group4Spin->SpinBox_DS->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
|
|
||||||
/* displays Dialog */
|
/* displays Dialog */
|
||||||
GroupConstructors->setEnabled(false);
|
GroupConstructors->setEnabled(false);
|
||||||
@ -364,8 +364,8 @@ void EntityGUI_SketcherDlg::PointClicked(int constructorId)
|
|||||||
if ( constructorId == 1 )
|
if ( constructorId == 1 )
|
||||||
{ // XY
|
{ // XY
|
||||||
mySketchType = PT_ABS;
|
mySketchType = PT_ABS;
|
||||||
Group2Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_X2"));
|
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_X2"));
|
||||||
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_Y2"));
|
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_Y2"));
|
||||||
myX = 0.0;
|
myX = 0.0;
|
||||||
@ -380,8 +380,8 @@ void EntityGUI_SketcherDlg::PointClicked(int constructorId)
|
|||||||
else if ( constructorId == 0 )
|
else if ( constructorId == 0 )
|
||||||
{ // DXDY
|
{ // DXDY
|
||||||
mySketchType = PT_RELATIVE;
|
mySketchType = PT_RELATIVE;
|
||||||
Group2Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_DX2"));
|
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_DX2"));
|
||||||
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_DY2"));
|
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_DY2"));
|
||||||
myDX = 0.0;
|
myDX = 0.0;
|
||||||
@ -435,8 +435,8 @@ void EntityGUI_SketcherDlg::Dir2Clicked(int constructorId)
|
|||||||
myLength = 100.0;
|
myLength = 100.0;
|
||||||
if ( myConstructorDirId == 2 )
|
if ( myConstructorDirId == 2 )
|
||||||
{ // Angle
|
{ // Angle
|
||||||
Group2Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group2Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
||||||
Group2Spin->SpinBox_DX->SetValue(myAngle);
|
Group2Spin->SpinBox_DX->SetValue(myAngle);
|
||||||
Group2Spin->buttonApply->setFocus();
|
Group2Spin->buttonApply->setFocus();
|
||||||
@ -511,9 +511,9 @@ void EntityGUI_SketcherDlg::Dir2Clicked(int constructorId)
|
|||||||
}
|
}
|
||||||
else if ( myConstructorDirId == 3 )
|
else if ( myConstructorDirId == 3 )
|
||||||
{ // DXDY
|
{ // DXDY
|
||||||
Group3Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 0.1, 3);
|
Group3Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 0.1, 3);
|
||||||
Group3Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 0.1, 3);
|
Group3Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 0.1, 3);
|
||||||
Group3Spin->SpinBox_DZ->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group3Spin->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group3Spin->TextLabel1->setText(tr("GEOM_SKETCHER_VX2"));
|
Group3Spin->TextLabel1->setText(tr("GEOM_SKETCHER_VX2"));
|
||||||
Group3Spin->TextLabel2->setText(tr("GEOM_SKETCHER_VY2"));
|
Group3Spin->TextLabel2->setText(tr("GEOM_SKETCHER_VY2"));
|
||||||
myDX = 0.0;
|
myDX = 0.0;
|
||||||
@ -550,9 +550,9 @@ void EntityGUI_SketcherDlg::Dir2Clicked(int constructorId)
|
|||||||
if ( constructorId == 2 )
|
if ( constructorId == 2 )
|
||||||
{ // Length
|
{ // Length
|
||||||
mySketchType = DIR_ANGLE_LENGTH;
|
mySketchType = DIR_ANGLE_LENGTH;
|
||||||
Group3Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group3Spin->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
Group3Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group3Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group3Spin->SpinBox_DZ->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group3Spin->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
Group3Spin->TextLabel1->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
Group3Spin->TextLabel1->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
||||||
Group3Spin->TextLabel2->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
Group3Spin->TextLabel2->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
||||||
Group3Spin->TextLabel3->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
Group3Spin->TextLabel3->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
||||||
@ -570,8 +570,8 @@ void EntityGUI_SketcherDlg::Dir2Clicked(int constructorId)
|
|||||||
if ( constructorId == 2 )
|
if ( constructorId == 2 )
|
||||||
{ // Length
|
{ // Length
|
||||||
mySketchType = DIR_PER_LENGTH;
|
mySketchType = DIR_PER_LENGTH;
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
||||||
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
||||||
myRadius = 100.0;
|
myRadius = 100.0;
|
||||||
@ -587,8 +587,8 @@ void EntityGUI_SketcherDlg::Dir2Clicked(int constructorId)
|
|||||||
if ( constructorId == 2 )
|
if ( constructorId == 2 )
|
||||||
{ // Length
|
{ // Length
|
||||||
mySketchType = DIR_TAN_LENGTH;
|
mySketchType = DIR_TAN_LENGTH;
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 100., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 100., 3);
|
||||||
Group2Spin->SpinBox_DY->RangeStepAndValidator(-999999.999, 999999.999, 5., 3);
|
Group2Spin->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 5., 3);
|
||||||
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
Group2Spin->TextLabel1->setText(tr("GEOM_SKETCHER_RADIUS2"));
|
||||||
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
Group2Spin->TextLabel2->setText(tr("GEOM_SKETCHER_ANGLE2"));
|
||||||
myRadius = 100.0;
|
myRadius = 100.0;
|
||||||
|
@ -133,7 +133,7 @@ void GenerationGUI_PrismDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, +999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(100.0);
|
GroupPoints->SpinBox_DX->SetValue(100.0);
|
||||||
|
|
||||||
/* signals and slots connections */
|
/* signals and slots connections */
|
||||||
|
@ -115,7 +115,7 @@ void GenerationGUI_RevolDlg::Init()
|
|||||||
|
|
||||||
double SpecificStep = 5;
|
double SpecificStep = 5;
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, SpecificStep, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, SpecificStep, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(45.0);
|
GroupPoints->SpinBox_DX->SetValue(45.0);
|
||||||
|
|
||||||
/* signals and slots connections */
|
/* signals and slots connections */
|
||||||
|
@ -103,9 +103,9 @@ void OperationGUI_ArchimedeDlg::Init()
|
|||||||
double SpecificStep1 = 0.1;
|
double SpecificStep1 = 0.1;
|
||||||
double SpecificStep2 = 0.01;
|
double SpecificStep2 = 0.01;
|
||||||
/* min, max, myStep and decimals for spin boxes & initial values */
|
/* min, max, myStep and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, myStep, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, myStep, 3);
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.001, 999.999, SpecificStep1, 3);
|
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.001, COORD_MAX, SpecificStep1, 3);
|
||||||
GroupPoints->SpinBox_DZ->RangeStepAndValidator(0.001, 999.999, SpecificStep2, 3);
|
GroupPoints->SpinBox_DZ->RangeStepAndValidator(0.001, COORD_MAX, SpecificStep2, 3);
|
||||||
|
|
||||||
GroupPoints->SpinBox_DX->SetValue( 100.0 );
|
GroupPoints->SpinBox_DX->SetValue( 100.0 );
|
||||||
GroupPoints->SpinBox_DY->SetValue( 1.0 );
|
GroupPoints->SpinBox_DY->SetValue( 1.0 );
|
||||||
|
@ -146,7 +146,7 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg(GeometryGUI* theGeometryGUI, QW
|
|||||||
double SpecificStep = 10.0;
|
double SpecificStep = 10.0;
|
||||||
QMap< int, DlgRef_SpinBox* >::iterator anIter;
|
QMap< int, DlgRef_SpinBox* >::iterator anIter;
|
||||||
for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
|
for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
|
||||||
anIter.data()->RangeStepAndValidator( 0.001, 999.999, SpecificStep, 3 );
|
anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 );
|
||||||
|
|
||||||
setHelpFileName("chamfer.htm");
|
setHelpFileName("chamfer.htm");
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ OperationGUI_ClippingDlg::OperationGUI_ClippingDlg(GeometryGUI* theGeometryGUI,
|
|||||||
Layout1->addWidget( GroupArguments, 2, 0 );
|
Layout1->addWidget( GroupArguments, 2, 0 );
|
||||||
|
|
||||||
/* Initialisations */
|
/* Initialisations */
|
||||||
SpinBox_Near->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
|
SpinBox_Near->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
|
||||||
SpinBox_Far->RangeStepAndValidator( -999999.999, +999999.999, 10.0, 3 );
|
SpinBox_Far->RangeStepAndValidator( COORD_MIN, COORD_MAX, 10.0, 3 );
|
||||||
|
|
||||||
/* signals and slots connections */
|
/* signals and slots connections */
|
||||||
connect( buttonOk , SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
|
connect( buttonOk , SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );
|
||||||
|
@ -105,9 +105,9 @@ OperationGUI_FilletDlg::OperationGUI_FilletDlg(GeometryGUI* theGeometryGUI, QWid
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
double SpecificStep = 10.0;
|
double SpecificStep = 10.0;
|
||||||
Group1->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
|
Group1->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, SpecificStep, 3);
|
||||||
Group2->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
|
Group2->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, SpecificStep, 3);
|
||||||
Group3->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
|
Group3->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, SpecificStep, 3);
|
||||||
|
|
||||||
setHelpFileName("fillet.htm");
|
setHelpFileName("fillet.htm");
|
||||||
|
|
||||||
|
@ -117,9 +117,9 @@ void PrimitiveGUI_BoxDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
|
|
||||||
double initValue = 200.0;
|
double initValue = 200.0;
|
||||||
GroupDimensions->SpinBox_DX->SetValue(initValue);
|
GroupDimensions->SpinBox_DX->SetValue(initValue);
|
||||||
|
@ -119,12 +119,12 @@ void PrimitiveGUI_ConeDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.000, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.000, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.000, 999.999, step, 3);
|
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.000, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.000, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.000, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY->RangeStepAndValidator(0.000, 999.999, step, 3);
|
GroupDimensions->SpinBox_DY->RangeStepAndValidator(0.000, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
|
|
||||||
double aRadius1(100.0), aRadius2(0.0), aHeight(300.0);
|
double aRadius1(100.0), aRadius2(0.0), aHeight(300.0);
|
||||||
GroupPoints->SpinBox_DX->SetValue(aRadius1);
|
GroupPoints->SpinBox_DX->SetValue(aRadius1);
|
||||||
|
@ -118,13 +118,13 @@ void PrimitiveGUI_CylinderDlg::Init()
|
|||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
/* First constructor : radius */
|
/* First constructor : radius */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
/* First constructor : algebric height */
|
/* First constructor : algebric height */
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
/* Second constructor : radius */
|
/* Second constructor : radius */
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
/* Second constructor : algebric height */
|
/* Second constructor : algebric height */
|
||||||
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
|
|
||||||
GroupPoints->SpinBox_DX->SetValue(100.0);
|
GroupPoints->SpinBox_DX->SetValue(100.0);
|
||||||
GroupPoints->SpinBox_DY->SetValue(300.0);
|
GroupPoints->SpinBox_DY->SetValue(300.0);
|
||||||
|
@ -112,8 +112,8 @@ void PrimitiveGUI_SphereDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes */
|
/* min, max, step and decimals for spin boxes */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(100.0);
|
GroupPoints->SpinBox_DX->SetValue(100.0);
|
||||||
GroupDimensions->SpinBox_DX->SetValue(100.0);
|
GroupDimensions->SpinBox_DX->SetValue(100.0);
|
||||||
|
|
||||||
|
@ -117,10 +117,10 @@ void PrimitiveGUI_TorusDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY->RangeStepAndValidator(0.001, 999.999, step, 3);
|
GroupDimensions->SpinBox_DY->RangeStepAndValidator(0.001, COORD_MAX, step, 3);
|
||||||
|
|
||||||
GroupPoints->SpinBox_DX->SetValue(300.0);
|
GroupPoints->SpinBox_DX->SetValue(300.0);
|
||||||
GroupPoints->SpinBox_DY->SetValue(100.0);
|
GroupPoints->SpinBox_DY->SetValue(100.0);
|
||||||
|
@ -124,13 +124,13 @@ void TransformationGUI_MultiRotationDlg::Init()
|
|||||||
double SpecificStep1 = 5;
|
double SpecificStep1 = 5;
|
||||||
double SpecificStep2 = 1;
|
double SpecificStep2 = 1;
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(1.0, 999.999, SpecificStep2, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep2, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(myNbTimes1);
|
GroupPoints->SpinBox_DX->SetValue(myNbTimes1);
|
||||||
|
|
||||||
GroupDimensions->SpinBox_DX1->RangeStepAndValidator(-999.999, 999.999, SpecificStep1, 3);
|
GroupDimensions->SpinBox_DX1->RangeStepAndValidator(COORD_MIN, COORD_MAX, SpecificStep1, 3);
|
||||||
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, 999.999, SpecificStep2, 3);
|
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep2, 3);
|
||||||
GroupDimensions->SpinBox_DX2->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX2->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, 999.999, SpecificStep2, 3);
|
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep2, 3);
|
||||||
GroupDimensions->SpinBox_DX1->SetValue(myAng);
|
GroupDimensions->SpinBox_DX1->SetValue(myAng);
|
||||||
GroupDimensions->SpinBox_DY1->SetValue(myNbTimes1);
|
GroupDimensions->SpinBox_DY1->SetValue(myNbTimes1);
|
||||||
GroupDimensions->SpinBox_DX2->SetValue(myStep);
|
GroupDimensions->SpinBox_DX2->SetValue(myStep);
|
||||||
|
@ -130,15 +130,15 @@ void TransformationGUI_MultiTranslationDlg::Init()
|
|||||||
|
|
||||||
double SpecificStep = 1;
|
double SpecificStep = 1;
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
|
GroupPoints->SpinBox_DY->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(myStepU);
|
GroupPoints->SpinBox_DX->SetValue(myStepU);
|
||||||
GroupPoints->SpinBox_DY->SetValue(myNbTimesU);
|
GroupPoints->SpinBox_DY->SetValue(myNbTimesU);
|
||||||
|
|
||||||
GroupDimensions->SpinBox_DX1->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX1->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
|
GroupDimensions->SpinBox_DY1->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||||
GroupDimensions->SpinBox_DX2->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupDimensions->SpinBox_DX2->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
|
GroupDimensions->SpinBox_DY2->RangeStepAndValidator(1.0, COORD_MAX, SpecificStep, 3);
|
||||||
GroupDimensions->SpinBox_DX1->SetValue(myStepU);
|
GroupDimensions->SpinBox_DX1->SetValue(myStepU);
|
||||||
GroupDimensions->SpinBox_DY1->SetValue(myNbTimesU);
|
GroupDimensions->SpinBox_DY1->SetValue(myNbTimesU);
|
||||||
GroupDimensions->SpinBox_DX2->SetValue(myStepV);
|
GroupDimensions->SpinBox_DX2->SetValue(myStepV);
|
||||||
|
@ -108,7 +108,7 @@ void TransformationGUI_OffsetDlg::Init()
|
|||||||
double step = 1;
|
double step = 1;
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox_DX->setPrecision(5);
|
GroupPoints->SpinBox_DX->setPrecision(5);
|
||||||
//@ GroupPoints->SpinBox_DX->setDblPrecision(1e-05);
|
//@ GroupPoints->SpinBox_DX->setDblPrecision(1e-05);
|
||||||
GroupPoints->SpinBox_DX->SetValue(1e-05);
|
GroupPoints->SpinBox_DX->SetValue(1e-05);
|
||||||
|
@ -82,7 +82,7 @@ TransformationGUI_RotationDlg::TransformationGUI_RotationDlg
|
|||||||
double anAngle = 0;
|
double anAngle = 0;
|
||||||
double SpecificStep = 5;
|
double SpecificStep = 5;
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, SpecificStep, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, SpecificStep, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(anAngle);
|
GroupPoints->SpinBox_DX->SetValue(anAngle);
|
||||||
|
|
||||||
// Activate Create a Copy mode
|
// Activate Create a Copy mode
|
||||||
|
@ -85,7 +85,7 @@ TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(GeometryGUI* theGeometryG
|
|||||||
double aFactor = 2.0;
|
double aFactor = 2.0;
|
||||||
double SpecificStep = 0.5;
|
double SpecificStep = 0.5;
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, SpecificStep, 3);
|
GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, SpecificStep, 3);
|
||||||
GroupPoints->SpinBox_DX->SetValue(aFactor);
|
GroupPoints->SpinBox_DX->SetValue(aFactor);
|
||||||
|
|
||||||
// Activate Create a Copy mode
|
// Activate Create a Copy mode
|
||||||
|
@ -124,9 +124,9 @@ void TransformationGUI_TranslationDlg::Init()
|
|||||||
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
||||||
|
|
||||||
/* min, max, step and decimals for spin boxes & initial values */
|
/* min, max, step and decimals for spin boxes & initial values */
|
||||||
GroupPoints->SpinBox1->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox1->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox2->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox2->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
GroupPoints->SpinBox3->RangeStepAndValidator(-999.999, 999.999, step, 3);
|
GroupPoints->SpinBox3->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
|
||||||
|
|
||||||
GroupPoints->SpinBox1->SetValue(0.0);
|
GroupPoints->SpinBox1->SetValue(0.0);
|
||||||
GroupPoints->SpinBox2->SetValue(0.0);
|
GroupPoints->SpinBox2->SetValue(0.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user