-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-
// File : StdMeshersGUI_CartesianParamCreator.cxx
// Author : Open CASCADE S.A.S.
+
// SMESH includes
-//
#include "StdMeshersGUI_CartesianParamCreator.h"
#include <SMESHGUI.h>
}
mySpacingTreeWdg->addTopLevelItem( setToItem( 0., 1., spacing ) );
}
- myCoordList->clear();
+ //myCoordList->clear();
}
else
{
- mySpacingTreeWdg->clear();
+ //mySpacingTreeWdg->clear();
if ( myCoordList->count() == 0 )
myCoordList->addItem( coordToItem( 0 ));
}
argGroupLayout->addWidget( new QLabel( tr( "THRESHOLD" ), GroupC1 ), row, 0 );
myThreshold = new SMESHGUI_SpinBox( GroupC1 );
myThreshold->setAcceptNames( false ); // No Notebook variables allowed
- myThreshold->RangeStepAndValidator( 1.1, 1e+10, 1., "length_precision" );
+ myThreshold->RangeStepAndValidator( 1.00001, 1e+10, 1., "length_precision" );
argGroupLayout->addWidget( myThreshold, row, 1 );
row++;
if( myName )
myName->setText( hypName() );
- myThreshold->setValue( h->GetSizeThreshold() );
+ QString varName = getVariableName( "SetSizeThreshold" );
+ if ( varName.isEmpty() )
+ myThreshold->setValue( h->GetSizeThreshold() );
+ else
+ myThreshold->setText( varName );
for ( int ax = 0; ax < 3; ++ax )
{
if( isCreation() )
SMESH::SetName( SMESH::FindSObject( h ), myName->text().toLatin1().constData() );
+ h->SetVarParameter( myThreshold->text().toLatin1().constData(), "SetSizeThreshold" );
h->SetSizeThreshold( myThreshold->text().toDouble() );
for ( int ax = 0; ax < 3; ++ax )
return "";
}
+QString StdMeshersGUI_CartesianParamCreator::helpPage() const
+{
+ return "cartesian_algo_page.html#cartesian_hyp_anchor";
+}