mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-05 22:30:34 +05:00
Salome 5x Impossible to create true cone
This commit is contained in:
parent
dbf799017d
commit
bb33e4b989
@ -117,10 +117,10 @@ void PrimitiveGUI_ConeDlg::Init()
|
|||||||
|
|
||||||
// min, max, step and decimals for spin boxes & initial values
|
// min, max, step and decimals for spin boxes & initial values
|
||||||
initSpinBox(GroupPoints->SpinBox_DX, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupPoints->SpinBox_DX, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
initSpinBox(GroupPoints->SpinBox_DY, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupPoints->SpinBox_DY, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
initSpinBox(GroupPoints->SpinBox_DZ, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupPoints->SpinBox_DZ, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
initSpinBox(GroupDimensions->SpinBox_DX, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupDimensions->SpinBox_DX, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
initSpinBox(GroupDimensions->SpinBox_DY, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupDimensions->SpinBox_DY, 0.0, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
initSpinBox(GroupDimensions->SpinBox_DZ, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
initSpinBox(GroupDimensions->SpinBox_DZ, 0.000001, COORD_MAX, step, 6); // VSR: TODO: DBL_DIGITS_DISPLAY
|
||||||
|
|
||||||
// init variables
|
// init variables
|
||||||
@ -400,8 +400,10 @@ void PrimitiveGUI_ConeDlg::ActivateThisDialog()
|
|||||||
{
|
{
|
||||||
GEOMBase_Skeleton::ActivateThisDialog();
|
GEOMBase_Skeleton::ActivateThisDialog();
|
||||||
|
|
||||||
// reinit, because some selected objects could be removed
|
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),
|
||||||
Init();
|
this, SLOT( SelectionIntoArgument() ) );
|
||||||
|
|
||||||
|
ConstructorsClicked( getConstructorId() );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -438,6 +440,8 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_ConeDlg::createOperation()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool PrimitiveGUI_ConeDlg::isValid (QString&)
|
bool PrimitiveGUI_ConeDlg::isValid (QString&)
|
||||||
{
|
{
|
||||||
|
if (!getRadius1() && !getRadius2())
|
||||||
|
return false;
|
||||||
return getConstructorId() == 0 ? !(myPoint->_is_nil() || myDir->_is_nil()) : true;
|
return getConstructorId() == 0 ? !(myPoint->_is_nil() || myDir->_is_nil()) : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user