Back to index

salome-smesh  6.5.0
StdMeshers_CartesianParameters3D_i.hxx
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 //  File   : StdMeshers_CartesianParameters3D_i.hxx
00023 //  Module : SMESH
00024 //
00025 #ifndef _SMESH_CartesianParameters3D_I_HXX_
00026 #define _SMESH_CartesianParameters3D_I_HXX_
00027 
00028 #include "SMESH_StdMeshers_I.hxx"
00029 
00030 #include <SALOMEconfig.h>
00031 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
00032 
00033 #include "SMESH_Hypothesis_i.hxx"
00034 
00035 class SMESH_Gen;
00036 class StdMeshers_CartesianParameters3D;
00037 
00038 // ======================================================
00039 // "CartesianParameters3D" hypothesis
00040 // ======================================================
00041 
00042 class STDMESHERS_I_EXPORT StdMeshers_CartesianParameters3D_i:
00043   public virtual POA_StdMeshers::StdMeshers_CartesianParameters3D,
00044   public virtual SMESH_Hypothesis_i
00045 {
00046  public:
00047   // Constructor
00048   StdMeshers_CartesianParameters3D_i( PortableServer::POA_ptr thePOA,
00049                                       int                     theStudyId,
00050                                       ::SMESH_Gen*            theGenImpl );
00051   // Destructor
00052   virtual ~StdMeshers_CartesianParameters3D_i();
00053 
00060   void SetSizeThreshold(CORBA::Double threshold) throw (SALOME::SALOME_Exception);
00061   CORBA::Double GetSizeThreshold();
00062 
00066   void SetGrid(const SMESH::double_array& coords,
00067                CORBA::Short               axis) throw (SALOME::SALOME_Exception);
00068   SMESH::double_array* GetGrid(CORBA::Short axis) throw (SALOME::SALOME_Exception);
00069 
00079   void SetGridSpacing(const SMESH::string_array& spaceFunctions,
00080                       const SMESH::double_array& internalPoints,
00081                       CORBA::Short               axis) throw (SALOME::SALOME_Exception);
00082 
00083   void GetGridSpacing(SMESH::string_array_out xSpaceFunctions,
00084                       SMESH::double_array_out xInternalPoints,
00085                       CORBA::Short            axis) throw (SALOME::SALOME_Exception);
00086 
00091   CORBA::Boolean IsGridBySpacing(CORBA::Short axis);
00092 
00101   SMESH::double_array* ComputeCoordinates(CORBA::Double              x0,
00102                                           CORBA::Double              x1,
00103                                           const SMESH::string_array& spaceFuns,
00104                                           const SMESH::double_array& points,
00105                                           const char*                axisName )
00106     throw (SALOME::SALOME_Exception);
00107 
00108   // Get implementation
00109   ::StdMeshers_CartesianParameters3D* GetImpl();
00110 
00111   // Verify whether hypothesis supports given entity type 
00112   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
00113 };
00114 
00115 #endif
00116