/*!
\brief Constructor.
\param parent Parent widget.
- \param name Field name. Defauls to null string.
+ \param name Field name. Defaults to null string.
*/
Field::Field( QWidget* parent, const QString& name ): QLabel( parent )
{
\brief Format connectivity data to string representation.
\param connectivity Connectivity map.
\param type Element type or face index if negative
- \return Stringifed representation of the connectivity.
+ \return Stringified representation of the connectivity.
*/
QString formatConnectivity( SMESH::Connectivity connectivity, int type )
{
}
/*!
- \brief Write information from panel to ouput stream.
+ \brief Write information from panel to output stream.
\param out Text stream output.
*/
void SMESHGUI_BaseInfo::saveInfo( QTextStream& out )
}
/*!
- \brief Write information from panel to ouput stream.
+ \brief Write information from panel to output stream.
\param out Text stream output.
*/
void SMESHGUI_ElemInfo::saveInfo( QTextStream &out )
}
/*!
- \brief Write information from panel to ouput stream.
+ \brief Write information from panel to output stream.
\param out Text stream output.
*/
void SMESHGUI_AddInfo::saveInfo( QTextStream &out )
};
/*!
- \brief Contructor.
+ \brief Constructor.
\param parent Parent widget.
\internal
*/
void SMESHGUI_CtrlInfo::setTolerance( double theTolerance )
{
- //SMESH::long_array_var anElems = getElementsByType( SMESH::NODE );
- myButtons[1]->setEnabled( true );
- myWidgets[2]->setText("");
+ myButtons[2]->setEnabled( true );
+ myWidgets[3]->setText("");
+ for ( int i = 0; i < myPredicates.count(); ++i )
+ if ( myPredicates[i]->GetFunctorType() == SMESH::FT_EqualNodes )
+ {
+ SMESH::EqualNodes_var functor = SMESH::EqualNodes::_narrow( myPredicates[i] );
+ if ( !functor->_is_nil() )
+ functor->SetTolerance( theTolerance );
+ }
}
#ifndef DISABLE_PLOT2DVIEWER