Back to index

salome-smesh  6.5.0
StdMeshersGUI.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File   : StdMeshersGUI.cxx
00024 // Author : Alexander SOLOVYOV, Open CASCADE S.A.S.
00025 // SMESH includes
00026 //
00027 #include "StdMeshersGUI_StdHypothesisCreator.h"
00028 #include "StdMeshersGUI_NbSegmentsCreator.h"
00029 #include "StdMeshersGUI_CartesianParamCreator.h"
00030 
00031 //=============================================================================
00035 //=============================================================================
00036 extern "C"
00037 {
00038  STDMESHERSGUI_EXPORT
00039   SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType )
00040   {
00041     if( aHypType=="NumberOfSegments" )
00042       return new StdMeshersGUI_NbSegmentsCreator();
00043     else if ( aHypType=="CartesianParameters3D" )
00044       return new StdMeshersGUI_CartesianParamCreator( aHypType );
00045     else
00046       return new StdMeshersGUI_StdHypothesisCreator( aHypType );
00047   }
00048 }