1 // NETGENPlugin : C++ implementation
3 // Copyright (C) 2006 OPEN CASCADE, CEA/DEN, EDF R&D
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : NETGENPlugin_Hypothesis_2D.hxx
23 // Author : Michael Sazonov (OCN)
27 //=============================================================================
29 #ifndef _NETGENPlugin_Hypothesis_2D_HXX_
30 #define _NETGENPlugin_Hypothesis_2D_HXX_
32 #include "NETGENPlugin_Hypothesis.hxx"
33 #include "Utils_SALOME_Exception.hxx"
35 // Parameters for work of NETGEN.
36 // This class is just to give 2D dimension, actually
37 // it inherits all behaviour of the parent
39 class NETGENPlugin_Hypothesis_2D: public NETGENPlugin_Hypothesis
43 NETGENPlugin_Hypothesis_2D(int hypId, int studyId, SMESH_Gen * gen);
45 void SetQuadAllowed(bool theVal);
46 bool GetQuadAllowed() const { return _quadAllowed; }
47 static bool GetDefaultQuadAllowed();
50 virtual ostream & SaveTo(ostream & save);
51 virtual istream & LoadFrom(istream & load);