2022-05-05 18:51:12 +05:00
|
|
|
// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
|
2004-06-18 14:34:31 +06:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2004-06-18 14:34:31 +06:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
2014-02-20 18:25:37 +06:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2004-06-18 14:34:31 +06:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
2009-02-17 10:27:49 +05:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-17 10:27:49 +05:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-17 10:27:49 +05:00
|
|
|
//
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2009-02-17 10:27:49 +05:00
|
|
|
// File : StdMeshersGUI.cxx
|
|
|
|
// Author : Alexander SOLOVYOV, Open CASCADE S.A.S.
|
|
|
|
// SMESH includes
|
2004-06-18 14:34:31 +06:00
|
|
|
//
|
2020-10-09 13:44:21 +05:00
|
|
|
#include "StdMeshersGUI_BlockRenumberCreator.h"
|
2012-08-09 16:03:55 +06:00
|
|
|
#include "StdMeshersGUI_CartesianParamCreator.h"
|
2020-10-09 13:44:21 +05:00
|
|
|
#include "StdMeshersGUI_NbSegmentsCreator.h"
|
2014-02-14 18:03:53 +06:00
|
|
|
#include "StdMeshersGUI_QuadrangleParamWdg.h"
|
2020-10-09 13:44:21 +05:00
|
|
|
#include "StdMeshersGUI_StdHypothesisCreator.h"
|
2004-06-18 14:34:31 +06:00
|
|
|
|
|
|
|
//=============================================================================
|
2005-12-28 14:17:39 +05:00
|
|
|
/*! GetHypothesisCreator
|
2004-06-18 14:34:31 +06:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
//=============================================================================
|
2005-12-28 14:17:39 +05:00
|
|
|
extern "C"
|
2004-06-18 14:34:31 +06:00
|
|
|
{
|
2008-03-07 12:47:05 +05:00
|
|
|
STDMESHERSGUI_EXPORT
|
2005-12-28 14:17:39 +05:00
|
|
|
SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType )
|
2004-06-18 14:34:31 +06:00
|
|
|
{
|
2005-12-28 14:17:39 +05:00
|
|
|
if( aHypType=="NumberOfSegments" )
|
|
|
|
return new StdMeshersGUI_NbSegmentsCreator();
|
2012-08-09 16:03:55 +06:00
|
|
|
else if ( aHypType=="CartesianParameters3D" )
|
|
|
|
return new StdMeshersGUI_CartesianParamCreator( aHypType );
|
2014-02-14 18:03:53 +06:00
|
|
|
else if ( aHypType=="QuadrangleParams" )
|
|
|
|
return new StdMeshersGUI_QuadrangleParamCreator( aHypType );
|
2020-10-09 13:44:21 +05:00
|
|
|
else if ( aHypType=="BlockRenumber")
|
|
|
|
return new StdMeshersGUI_BlockRenumberCreator( aHypType );
|
2004-12-01 15:48:31 +05:00
|
|
|
else
|
2005-12-28 14:17:39 +05:00
|
|
|
return new StdMeshersGUI_StdHypothesisCreator( aHypType );
|
2004-06-18 14:34:31 +06:00
|
|
|
}
|
|
|
|
}
|