00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses 00021 // File : StdMeshers_MaxLength_i.hxx 00022 // Module : SMESH 00023 // 00024 #ifndef _SMESH_MaxLength_I_HXX_ 00025 #define _SMESH_MaxLength_I_HXX_ 00026 00027 #include "SMESH_StdMeshers_I.hxx" 00028 00029 #include <SALOMEconfig.h> 00030 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis) 00031 00032 #include "SMESH_Hypothesis_i.hxx" 00033 #include "StdMeshers_MaxLength.hxx" 00034 00035 class SMESH_Gen; 00036 00037 // ====================================================== 00038 // Local Length hypothesis 00039 // ====================================================== 00040 class STDMESHERS_I_EXPORT StdMeshers_MaxLength_i: 00041 public virtual POA_StdMeshers::StdMeshers_MaxLength, 00042 public virtual SMESH_Hypothesis_i 00043 { 00044 public: 00045 // Constructor 00046 StdMeshers_MaxLength_i( PortableServer::POA_ptr thePOA, 00047 int theStudyId, 00048 ::SMESH_Gen* theGenImpl ); 00049 // Destructor 00050 virtual ~StdMeshers_MaxLength_i(); 00051 00052 // Set length 00053 void SetLength( CORBA::Double theLength ) 00054 throw ( SALOME::SALOME_Exception ); 00055 // Set precision 00056 00057 // Sets preestimation flag 00058 void SetUsePreestimatedLength( CORBA::Boolean toUse) 00059 throw ( SALOME::SALOME_Exception ); 00060 00061 // Get length 00062 CORBA::Double GetLength(); 00063 00064 // Returns true if preestemated length is defined 00065 CORBA::Boolean HavePreestimatedLength(); 00066 00067 CORBA::Double GetPreestimatedLength(); 00068 00069 // Sets preestemated length 00070 void SetPreestimatedLength(CORBA::Double theLength); 00071 00072 // Returns preestimation flag 00073 CORBA::Boolean GetUsePreestimatedLength(); 00074 00075 // Get implementation 00076 ::StdMeshers_MaxLength* GetImpl(); 00077 00078 // Verify whether hypothesis supports given entity type 00079 CORBA::Boolean IsDimSupported( SMESH::Dimension type ); 00080 }; 00081 00082 #endif 00083