netgenplugin/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx

84 lines
2.8 KiB
C++
Raw Normal View History

2013-04-01 13:28:55 +00:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
2012-08-09 11:45:31 +00:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
2012-08-09 11:45:31 +00: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
// version 2.1 of the License.
//
2012-08-09 11:45:31 +00: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.
//
2012-08-09 11:45:31 +00: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 07:15:34 +00:00
//
2012-08-09 11:45:31 +00:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
2012-08-09 11:45:31 +00:00
2004-03-26 07:05:19 +00:00
//=============================================================================
// File : NETGENPlugin_NETGEN_3D.hxx
// Moved here from SMESH_NETGEN_3D.hxx
// Created : lundi 27 Janvier 2003
// Author : Nadir BOUHAMOU (CEA)
// Project : SALOME
//=============================================================================
2009-02-17 07:15:34 +00:00
//
2004-03-26 07:05:19 +00:00
#ifndef _NETGENPlugin_NETGEN_3D_HXX_
#define _NETGENPlugin_NETGEN_3D_HXX_
#include "NETGENPlugin_Defs.hxx"
2012-08-09 11:45:31 +00:00
#include "NETGENPlugin_Mesher.hxx"
2012-10-08 13:15:52 +00:00
#include "SMESH_Algo.hxx"
2004-03-26 07:05:19 +00:00
#include "Utils_SALOME_Exception.hxx"
2012-08-09 11:45:31 +00:00
class StdMeshers_ViscousLayers;
class StdMeshers_MaxElementVolume;
class NETGENPlugin_Hypothesis;
class NETGENPLUGIN_EXPORT NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo
2004-03-26 07:05:19 +00:00
{
2012-08-09 11:45:31 +00:00
public:
2004-03-26 07:05:19 +00:00
NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen);
virtual ~NETGENPlugin_NETGEN_3D();
virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape,
SMESH_Hypothesis::Hypothesis_Status& aStatus);
virtual bool Compute(SMESH_Mesh& aMesh,
2012-08-09 11:45:31 +00:00
const TopoDS_Shape& aShape);
2004-03-26 07:05:19 +00:00
virtual bool Compute(SMESH_Mesh& aMesh,
SMESH_MesherHelper* aHelper);
2012-08-09 11:45:31 +00:00
virtual void CancelCompute();
2013-07-03 16:22:00 +00:00
virtual double GetProgress() const;
2012-08-09 11:45:31 +00:00
virtual bool Evaluate(SMESH_Mesh& aMesh,
const TopoDS_Shape& aShape,
MapShapeNbElems& aResMap);
protected:
bool compute(SMESH_Mesh& mesh,
SMESH_MesherHelper& helper,
vector< const SMDS_MeshNode* >& nodeVec,
nglib::Ng_Mesh* ngMesh);
2004-03-26 07:05:19 +00:00
double _maxElementVolume;
2012-08-09 11:45:31 +00:00
const NETGENPlugin_Hypothesis * _hypParameters;
2004-03-26 07:05:19 +00:00
const StdMeshers_MaxElementVolume* _hypMaxElementVolume;
2012-08-09 11:45:31 +00:00
const StdMeshers_ViscousLayers* _viscousLayersHyp;
2013-09-03 15:43:58 +00:00
double _progressByTic;
2004-03-26 07:05:19 +00:00
};
#endif