00001 // Copyright (C) 2007-2011 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 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses 00024 // File : StdMeshers_NumberOfSegments_i.hxx 00025 // Moved here from SMESH_NumberOfSegments_i.hxx 00026 // Author : Paul RASCLE, EDF 00027 // Module : SMESH 00028 // $Header: /home/server/cvs/SMESH/SMESH_SRC/src/StdMeshers_I/StdMeshers_NumberOfSegments_i.hxx,v 1.11.2.2.6.1.8.1 2011-06-02 05:57:35 vsr Exp $ 00029 // 00030 #ifndef _SMESH_NUMBEROFSEGMENTS_I_HXX_ 00031 #define _SMESH_NUMBEROFSEGMENTS_I_HXX_ 00032 00033 #include "SMESH_StdMeshers_I.hxx" 00034 00035 #include <SALOMEconfig.h> 00036 #include CORBA_SERVER_HEADER(SMESH_Mesh) 00037 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis) 00038 00039 #include "SMESH_Hypothesis_i.hxx" 00040 #include "StdMeshers_NumberOfSegments.hxx" 00041 00042 // ====================================================== 00043 // Number of segments hypothesis 00044 // ====================================================== 00045 class STDMESHERS_I_EXPORT StdMeshers_NumberOfSegments_i: 00046 public virtual POA_StdMeshers::StdMeshers_NumberOfSegments, 00047 public virtual SMESH_Hypothesis_i 00048 { 00049 public: 00050 // Constructor 00051 StdMeshers_NumberOfSegments_i( PortableServer::POA_ptr thePOA, 00052 int theStudyId, 00053 ::SMESH_Gen* theGenImpl ); 00054 // Destructor 00055 virtual ~StdMeshers_NumberOfSegments_i(); 00056 00057 // Builds point distribution according to passed function 00058 SMESH::double_array* BuildDistributionExpr( const char*, CORBA::Long, CORBA::Long ) 00059 throw ( SALOME::SALOME_Exception ); 00060 SMESH::double_array* BuildDistributionTab( const SMESH::double_array&, CORBA::Long, CORBA::Long ) 00061 throw ( SALOME::SALOME_Exception ); 00062 00063 // Set number of segments 00064 void SetNumberOfSegments( CORBA::Long theSegmentsNumber ) 00065 throw ( SALOME::SALOME_Exception ); 00066 // Get number of segments 00067 CORBA::Long GetNumberOfSegments(); 00068 00069 // Set distribution type 00070 void SetDistrType(CORBA::Long typ) 00071 throw ( SALOME::SALOME_Exception ); 00072 // Get distribution type 00073 CORBA::Long GetDistrType(); 00074 00075 // Set scalar factor 00076 void SetScaleFactor( CORBA::Double theScaleFactor ) 00077 throw ( SALOME::SALOME_Exception ); 00078 // Get scalar factor 00079 CORBA::Double GetScaleFactor() 00080 throw ( SALOME::SALOME_Exception ); 00081 00082 // Set table function for distribution DT_TabFunc 00083 void SetTableFunction(const SMESH::double_array& table) 00084 throw ( SALOME::SALOME_Exception ); 00085 // Get table function for distribution DT_TabFunc 00086 SMESH::double_array* GetTableFunction() 00087 throw ( SALOME::SALOME_Exception ); 00088 00089 // Set expression function for distribution DT_ExprFunc 00090 void SetExpressionFunction(const char* expr) 00091 throw ( SALOME::SALOME_Exception ); 00092 // Get expression function for distribution DT_ExprFunc 00093 char* GetExpressionFunction() 00094 throw ( SALOME::SALOME_Exception ); 00095 00096 // Set the exponent mode on/off 00097 void SetConversionMode( CORBA::Long conv ) 00098 throw ( SALOME::SALOME_Exception ); 00099 // Returns true if the exponent mode is set 00100 CORBA::Long ConversionMode() 00101 throw ( SALOME::SALOME_Exception ); 00102 00103 // Get implementation 00104 ::StdMeshers_NumberOfSegments* GetImpl(); 00105 00106 // Verify whether hypothesis supports given entity type 00107 CORBA::Boolean IsDimSupported( SMESH::Dimension type ); 00108 00109 //Set Reversed Edges 00110 void SetReversedEdges( const SMESH::long_array& theIDs); 00111 00112 //Get Reversed Edges 00113 SMESH::long_array* GetReversedEdges(); 00114 00115 //Set Object Entry 00116 void SetObjectEntry( const char* entry); 00117 00118 //Get Object Entry 00119 char* GetObjectEntry(); 00120 }; 00121 00122 #endif