1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : BLSURFPlugin_Hypothesis.cxx
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
22 // Size maps developement: Nicolas GEIMER (OCC) & Gilles DAVID (EURIWARE)
25 #include "BLSURFPlugin_Hypothesis_i.hxx"
26 #include "SMESH_Gen.hxx"
27 #include "SMESH_PythonDump.hxx"
28 #include "GEOM_Object.hxx"
30 #include "Utils_CorbaException.hxx"
31 #include "utilities.h"
35 //=============================================================================
37 * BLSURFPlugin_Hypothesis_i::BLSURFPlugin_Hypothesis_i
41 //=============================================================================
42 BLSURFPlugin_Hypothesis_i::
43 BLSURFPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
45 ::SMESH_Gen* theGenImpl)
46 : SALOME::GenericObj_i( thePOA ),
47 SMESH_Hypothesis_i( thePOA )
49 MESSAGE( "BLSURFPlugin_Hypothesis_i::BLSURFPlugin_Hypothesis_i" );
50 myBaseImpl = new ::BLSURFPlugin_Hypothesis (theGenImpl->GetANewId(),
55 //=============================================================================
57 * BLSURFPlugin_Hypothesis_i::~BLSURFPlugin_Hypothesis_i
61 //=============================================================================
62 BLSURFPlugin_Hypothesis_i::~BLSURFPlugin_Hypothesis_i()
64 MESSAGE( "BLSURFPlugin_Hypothesis_i::~BLSURFPlugin_Hypothesis_i" );
68 * BLSURFPlugin_Hypothesis_i::SetTopology
73 //=============================================================================
74 void BLSURFPlugin_Hypothesis_i::SetTopology (CORBA::Long theValue)
76 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetTopology");
78 this->GetImpl()->SetTopology((::BLSURFPlugin_Hypothesis::Topology)theValue);
79 SMESH::TPythonDump() << _this() << ".SetTopology( " << theValue << " )";
82 //=============================================================================
84 * BLSURFPlugin_Hypothesis_i::GetTopology
88 //=============================================================================
89 CORBA::Long BLSURFPlugin_Hypothesis_i::GetTopology()
91 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetTopology");
93 return this->GetImpl()->GetTopology();
96 //=============================================================================
98 //=============================================================================
100 * BLSURFPlugin_Hypothesis_i::SetPhysicalMesh
105 //=============================================================================
106 void BLSURFPlugin_Hypothesis_i::SetPhysicalMesh (CORBA::Long theValue)
108 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetPhysicalMesh");
110 this->GetImpl()->SetPhysicalMesh((::BLSURFPlugin_Hypothesis::PhysicalMesh)theValue);
111 SMESH::TPythonDump() << _this() << ".SetPhysicalMesh( " << theValue << " )";
114 //=============================================================================
116 * BLSURFPlugin_Hypothesis_i::GetPhysicalMesh
120 //=============================================================================
121 CORBA::Long BLSURFPlugin_Hypothesis_i::GetPhysicalMesh()
123 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetPhysicalMesh");
125 return this->GetImpl()->GetPhysicalMesh();
128 //=============================================================================
130 * BLSURFPlugin_Hypothesis_i::SetPhySize
134 //=============================================================================
135 void BLSURFPlugin_Hypothesis_i::SetPhySize (CORBA::Double theValue)
137 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetPhySize");
139 this->GetImpl()->SetPhySize(theValue);
140 SMESH::TPythonDump() << _this() << ".SetPhySize( " << theValue << " )";
143 //=============================================================================
145 * BLSURFPlugin_Hypothesis_i::GetPhySize
149 //=============================================================================
150 CORBA::Double BLSURFPlugin_Hypothesis_i::GetPhySize()
152 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetPhySize");
154 return this->GetImpl()->GetPhySize();
157 //=============================================================================
158 void BLSURFPlugin_Hypothesis_i::SetPhyMin(CORBA::Double theMinSize)
161 if ( GetPhyMin() != theMinSize ) {
162 this->GetImpl()->SetPhyMin(theMinSize);
163 SMESH::TPythonDump() << _this() << ".SetPhyMin( " << theMinSize << " )";
167 //=============================================================================
168 CORBA::Double BLSURFPlugin_Hypothesis_i::GetPhyMin()
171 return this->GetImpl()->GetPhyMin();
175 //=============================================================================
176 void BLSURFPlugin_Hypothesis_i::SetPhyMax(CORBA::Double theMaxSize)
179 if ( GetPhyMax() != theMaxSize ) {
180 this->GetImpl()->SetPhyMax(theMaxSize);
181 SMESH::TPythonDump() << _this() << ".SetPhyMax( " << theMaxSize << " )";
185 //=============================================================================
186 CORBA::Double BLSURFPlugin_Hypothesis_i::GetPhyMax()
189 return this->GetImpl()->GetPhyMax();
193 //=============================================================================
195 * BLSURFPlugin_Hypothesis_i::SetGeometricMesh
200 //=============================================================================
201 void BLSURFPlugin_Hypothesis_i::SetGeometricMesh (CORBA::Long theValue)
203 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetGeometricMesh");
205 this->GetImpl()->SetGeometricMesh((::BLSURFPlugin_Hypothesis::GeometricMesh)theValue);
206 SMESH::TPythonDump() << _this() << ".SetGeometricMesh( " << theValue << " )";
209 //=============================================================================
211 * BLSURFPlugin_Hypothesis_i::GetGeometricMesh
215 //=============================================================================
216 CORBA::Long BLSURFPlugin_Hypothesis_i::GetGeometricMesh()
218 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetGeometricMesh");
220 return this->GetImpl()->GetGeometricMesh();
223 //=============================================================================
225 * BLSURFPlugin_Hypothesis_i::SetAngleMeshS
229 //=============================================================================
230 void BLSURFPlugin_Hypothesis_i::SetAngleMeshS (CORBA::Double theValue)
232 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetAngleMeshS");
234 this->GetImpl()->SetAngleMeshS(theValue);
235 SMESH::TPythonDump() << _this() << ".SetAngleMeshS( " << theValue << " )";
238 //=============================================================================
240 * BLSURFPlugin_Hypothesis_i::GetAngleMeshS
244 //=============================================================================
245 CORBA::Double BLSURFPlugin_Hypothesis_i::GetAngleMeshS()
247 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetAngleMeshS");
249 return this->GetImpl()->GetAngleMeshS();
252 //=============================================================================
253 void BLSURFPlugin_Hypothesis_i::SetAngleMeshC(CORBA::Double angle)
256 this->GetImpl()->SetAngleMeshC(angle);
257 SMESH::TPythonDump() << _this() << ".SetAngleMeshC( " << angle << " )";
260 //=============================================================================
261 CORBA::Double BLSURFPlugin_Hypothesis_i::GetAngleMeshC()
264 return this->GetImpl()->GetAngleMeshC();
267 //=============================================================================
268 void BLSURFPlugin_Hypothesis_i::SetGeoMin(CORBA::Double theMinSize)
271 if ( GetGeoMin() != theMinSize ) {
272 this->GetImpl()->SetGeoMin(theMinSize);
273 SMESH::TPythonDump() << _this() << ".SetGeoMin( " << theMinSize << " )";
277 //=============================================================================
278 CORBA::Double BLSURFPlugin_Hypothesis_i::GetGeoMin()
281 return this->GetImpl()->GetGeoMin();
284 //=============================================================================
285 void BLSURFPlugin_Hypothesis_i::SetGeoMax(CORBA::Double theMaxSize)
288 if ( GetGeoMax() != theMaxSize ) {
289 this->GetImpl()->SetGeoMax(theMaxSize);
290 SMESH::TPythonDump() << _this() << ".SetGeoMax( " << theMaxSize << " )";
294 //=============================================================================
295 CORBA::Double BLSURFPlugin_Hypothesis_i::GetGeoMax()
298 return this->GetImpl()->GetGeoMax();
301 //=============================================================================
303 * BLSURFPlugin_Hypothesis_i::SetGradation
307 //=============================================================================
308 void BLSURFPlugin_Hypothesis_i::SetGradation (CORBA::Double theValue)
310 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetGradation");
312 this->GetImpl()->SetGradation(theValue);
313 SMESH::TPythonDump() << _this() << ".SetGradation( " << theValue << " )";
316 //=============================================================================
318 * BLSURFPlugin_Hypothesis_i::GetGradation
322 //=============================================================================
323 CORBA::Double BLSURFPlugin_Hypothesis_i::GetGradation()
325 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetGradation");
327 return this->GetImpl()->GetGradation();
330 //=============================================================================
332 * BLSURFPlugin_Hypothesis_i::SetQuadAllowed
336 //=============================================================================
337 void BLSURFPlugin_Hypothesis_i::SetQuadAllowed (CORBA::Boolean theValue)
339 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetQuadAllowed");
341 this->GetImpl()->SetQuadAllowed(theValue);
342 SMESH::TPythonDump() << _this() << ".SetQuadAllowed( " << theValue << " )";
345 //=============================================================================
347 * BLSURFPlugin_Hypothesis_i::GetQuadAllowed
351 //=============================================================================
352 CORBA::Boolean BLSURFPlugin_Hypothesis_i::GetQuadAllowed()
354 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetQuadAllowed");
356 return this->GetImpl()->GetQuadAllowed();
359 //=============================================================================
361 * BLSURFPlugin_Hypothesis_i::SetDecimesh
365 //=============================================================================
366 void BLSURFPlugin_Hypothesis_i::SetDecimesh (CORBA::Boolean theValue)
368 // MESSAGE("BLSURFPlugin_Hypothesis_i::SetDecimesh");
370 this->GetImpl()->SetDecimesh(theValue);
371 SMESH::TPythonDump() << _this() << ".SetDecimesh( " << theValue << " )";
374 //=============================================================================
376 * BLSURFPlugin_Hypothesis_i::GetDecimesh
380 //=============================================================================
381 CORBA::Boolean BLSURFPlugin_Hypothesis_i::GetDecimesh()
383 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetDecimesh");
385 return this->GetImpl()->GetDecimesh();
388 //=============================================================================
389 void BLSURFPlugin_Hypothesis_i::SetVerbosity(CORBA::Short theVal)
390 throw (SALOME::SALOME_Exception)
393 if ( theVal < 0 || theVal > 100 )
394 THROW_SALOME_CORBA_EXCEPTION( "Invalid verbosity level",SALOME::BAD_PARAM );
395 this->GetImpl()->SetVerbosity(theVal);
396 SMESH::TPythonDump() << _this() << ".SetVerbosity( " << theVal << " )";
399 //=============================================================================
401 CORBA::Short BLSURFPlugin_Hypothesis_i::GetVerbosity()
404 return (CORBA::Short) this->GetImpl()->GetVerbosity();
407 //=============================================================================
409 void BLSURFPlugin_Hypothesis_i::SetOptionValue(const char* optionName,
410 const char* optionValue)
411 throw (SALOME::SALOME_Exception)
414 bool valueChanged = false;
416 valueChanged = ( this->GetImpl()->GetOptionValue(optionName) != optionValue );
418 this->GetImpl()->SetOptionValue(optionName, optionValue);
420 catch (const std::invalid_argument& ex) {
421 SALOME::ExceptionStruct ExDescription;
422 ExDescription.text = ex.what();
423 ExDescription.type = SALOME::BAD_PARAM;
424 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::SetOptionValue(name,value)";
425 ExDescription.lineNumber = 0;
426 throw SALOME::SALOME_Exception(ExDescription);
428 catch (SALOME_Exception& ex) {
429 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
432 SMESH::TPythonDump() << _this() << ".SetOptionValue( '"
433 << optionName << "', '" << optionValue << "' )";
436 //=============================================================================
438 char* BLSURFPlugin_Hypothesis_i::GetOptionValue(const char* optionName)
439 throw (SALOME::SALOME_Exception)
443 return CORBA::string_dup( this->GetImpl()->GetOptionValue(optionName).c_str() );
445 catch (const std::invalid_argument& ex) {
446 SALOME::ExceptionStruct ExDescription;
447 ExDescription.text = ex.what();
448 ExDescription.type = SALOME::BAD_PARAM;
449 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::GetOptionValue(name)";
450 ExDescription.lineNumber = 0;
451 throw SALOME::SALOME_Exception(ExDescription);
453 catch (SALOME_Exception& ex) {
454 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
459 //=============================================================================
461 void BLSURFPlugin_Hypothesis_i::UnsetOption(const char* optionName)
464 this->GetImpl()->ClearOption(optionName);
465 SMESH::TPythonDump() << _this() << ".UnsetOption( '" << optionName << "' )";
468 //=============================================================================
470 BLSURFPlugin::string_array* BLSURFPlugin_Hypothesis_i::GetOptionValues()
473 BLSURFPlugin::string_array_var result = new BLSURFPlugin::string_array();
475 const ::BLSURFPlugin_Hypothesis::TOptionValues & opts = this->GetImpl()->GetOptionValues();
476 result->length( opts.size() );
478 ::BLSURFPlugin_Hypothesis::TOptionValues::const_iterator opIt = opts.begin();
479 for ( int i = 0 ; opIt != opts.end(); ++opIt, ++i ) {
480 string name_value = opIt->first;
481 if ( !opIt->second.empty() ) {
483 name_value += opIt->second;
485 result[i] = CORBA::string_dup(name_value.c_str());
487 return result._retn();
490 //=============================================================================
492 void BLSURFPlugin_Hypothesis_i::SetOptionValues(const BLSURFPlugin::string_array& options)
493 throw (SALOME::SALOME_Exception)
496 for (int i = 0; i < options.length(); ++i)
498 string name_value = options[i].in();
499 int colonPos = name_value.find( ':' );
501 if ( colonPos == string::npos ) // ':' not found
504 name = name_value.substr( 0, colonPos);
505 if ( colonPos < name_value.size()-1 && name_value[colonPos] != ' ')
506 value = name_value.substr( colonPos+1 );
508 SetOptionValue( name.c_str(), value.c_str() );
512 //=============================================================================
514 void BLSURFPlugin_Hypothesis_i::SetSizeMapEntry(const char* entry,const char* sizeMap)
515 throw (SALOME::SALOME_Exception)
518 MESSAGE("ENGINE : SETSIZEMAP START ENTRY : " << entry);
519 bool valueChanged = false;
521 valueChanged = ( this->GetImpl()->GetSizeMapEntry(entry) != sizeMap );
523 this->GetImpl()->SetSizeMapEntry(entry, sizeMap);
525 catch (const std::invalid_argument& ex) {
526 SALOME::ExceptionStruct ExDescription;
527 ExDescription.text = ex.what();
528 ExDescription.type = SALOME::BAD_PARAM;
529 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::SetSizeMapEntry(entry,sizemap)";
530 ExDescription.lineNumber = 0;
531 throw SALOME::SALOME_Exception(ExDescription);
533 catch (SALOME_Exception& ex) {
534 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
536 MESSAGE("ENGINE : SETSIZEMAP END ENTRY : " << entry);
538 SMESH::TPythonDump() << _this() << ".SetSizeMap("
539 << entry << ", '" << sizeMap << "' )";
542 //=============================================================================
544 void BLSURFPlugin_Hypothesis_i::SetAttractorEntry(const char* entry,const char* attractor )
545 throw (SALOME::SALOME_Exception)
548 MESSAGE("ENGINE : SETATTRACTOR START ENTRY : " << entry);
549 bool valueChanged = false;
551 valueChanged = ( this->GetImpl()->GetAttractorEntry(entry) != attractor );
553 this->GetImpl()->SetAttractorEntry(entry, attractor);
555 catch (const std::invalid_argument& ex) {
556 SALOME::ExceptionStruct ExDescription;
557 ExDescription.text = ex.what();
558 ExDescription.type = SALOME::BAD_PARAM;
559 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::SetAttractorEntry(entry,attractor)";
560 ExDescription.lineNumber = 0;
561 throw SALOME::SALOME_Exception(ExDescription);
563 catch (SALOME_Exception& ex) {
564 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
566 MESSAGE("ENGINE : SETATTRACTOR END ENTRY : " << entry);
568 SMESH::TPythonDump() << _this() << ".SetAttractor("
569 << entry << ", '" << attractor << "' )";
573 //=============================================================================
575 char* BLSURFPlugin_Hypothesis_i::GetSizeMapEntry(const char* entry)
576 throw (SALOME::SALOME_Exception)
580 return CORBA::string_dup( this->GetImpl()->GetSizeMapEntry(entry).c_str());
582 catch (const std::invalid_argument& ex) {
583 SALOME::ExceptionStruct ExDescription;
584 ExDescription.text = ex.what();
585 ExDescription.type = SALOME::BAD_PARAM;
586 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::GetSizeMapEntry(name)";
587 ExDescription.lineNumber = 0;
588 throw SALOME::SALOME_Exception(ExDescription);
590 catch (SALOME_Exception& ex) {
591 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
596 //=============================================================================
598 char* BLSURFPlugin_Hypothesis_i::GetAttractorEntry(const char* entry)
599 throw (SALOME::SALOME_Exception)
603 return CORBA::string_dup( this->GetImpl()->GetAttractorEntry(entry).c_str());
605 catch (const std::invalid_argument& ex) {
606 SALOME::ExceptionStruct ExDescription;
607 ExDescription.text = ex.what();
608 ExDescription.type = SALOME::BAD_PARAM;
609 ExDescription.sourceFile = "BLSURFPlugin_Hypothesis::GetAttractorEntry(name)";
610 ExDescription.lineNumber = 0;
611 throw SALOME::SALOME_Exception(ExDescription);
613 catch (SALOME_Exception& ex) {
614 THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM );
619 //=============================================================================
621 void BLSURFPlugin_Hypothesis_i::UnsetEntry(const char* entry)
624 this->GetImpl()->ClearEntry(entry);
625 // SMESH::TPythonDump() << _this() << ".UnsetSizeMap( " << entry << " )";
628 //=============================================================================
630 BLSURFPlugin::string_array* BLSURFPlugin_Hypothesis_i::GetSizeMapEntries()
633 BLSURFPlugin::string_array_var result = new BLSURFPlugin::string_array();
635 const ::BLSURFPlugin_Hypothesis::TSizeMap & sizeMaps= this->GetImpl()->GetSizeMapEntries();
636 result->length( sizeMaps.size() );
638 ::BLSURFPlugin_Hypothesis::TSizeMap::const_iterator smIt = sizeMaps.begin();
639 for ( int i = 0 ; smIt != sizeMaps.end(); ++smIt, ++i ) {
640 string entry_sizemap = smIt->first;
641 if ( !smIt->second.empty() ) {
642 entry_sizemap += "|";
643 entry_sizemap += smIt->second;
645 result[i] = CORBA::string_dup(entry_sizemap.c_str());
647 return result._retn();
650 //=============================================================================
652 BLSURFPlugin::string_array* BLSURFPlugin_Hypothesis_i::GetAttractorEntries()
655 BLSURFPlugin::string_array_var result = new BLSURFPlugin::string_array();
657 const ::BLSURFPlugin_Hypothesis::TSizeMap & attractors= this->GetImpl()->GetAttractorEntries();
658 result->length( attractors.size() );
660 ::BLSURFPlugin_Hypothesis::TSizeMap::const_iterator atIt = attractors.begin();
661 for ( int i = 0 ; atIt != attractors.end(); ++atIt, ++i ) {
662 string entry_attractor = atIt->first;
663 if ( !atIt->second.empty() ) {
664 entry_attractor += "|";
665 entry_attractor += atIt->second;
667 result[i] = CORBA::string_dup(entry_attractor.c_str());
669 return result._retn();
672 //=============================================================================
674 void BLSURFPlugin_Hypothesis_i::SetSizeMapEntries(const BLSURFPlugin::string_array& sizeMaps)
675 throw (SALOME::SALOME_Exception)
678 for (int i = 0; i < sizeMaps.length(); ++i)
680 string entry_sizemap = sizeMaps[i].in();
681 int colonPos = entry_sizemap.find( '|' );
682 string entry, sizemap;
683 if ( colonPos == string::npos ) // '|' separator not found
684 entry = entry_sizemap;
686 entry = entry_sizemap.substr( 0, colonPos);
687 if ( colonPos < entry_sizemap.size()-1 && entry_sizemap[colonPos] != ' ')
688 sizemap = entry_sizemap.substr( colonPos+1 );
690 this->GetImpl()->SetSizeMapEntry( entry.c_str(), sizemap.c_str() );
694 //=============================================================================
696 void BLSURFPlugin_Hypothesis_i::ClearSizeMaps()
699 this->GetImpl()->ClearSizeMaps();
703 //=============================================================================
705 void BLSURFPlugin_Hypothesis_i::SetSizeMap(const GEOM::GEOM_Object_ptr GeomObj,const char* sizeMap)
709 entry=GeomObj->GetStudyEntry();
710 MESSAGE("IDL : GetName : " << GeomObj->GetName());
711 MESSAGE("IDL : SETSIZEMAP ( "<< entry << " , " << sizeMap << ")");
712 SetSizeMapEntry( entry.c_str(),sizeMap);
715 //=============================================================================
716 void BLSURFPlugin_Hypothesis_i::UnsetSizeMap(const GEOM::GEOM_Object_ptr GeomObj)
720 entry=GeomObj->GetStudyEntry();
721 MESSAGE("IDL : GetName : " << GeomObj->GetName());
722 MESSAGE("IDL : UNSETSIZEMAP ( "<< entry << ")");
723 UnsetEntry( entry.c_str());
724 SMESH::TPythonDump() << _this() << ".UnsetSizeMap( " << entry.c_str() << " )";
728 void BLSURFPlugin_Hypothesis_i::SetAttractor(GEOM::GEOM_Object_ptr GeomObj, const char* attractor)
732 entry=GeomObj->GetStudyEntry();
733 MESSAGE("IDL : GetName : " << GeomObj->GetName());
734 MESSAGE("IDL : SETATTRACTOR ( "<< entry << " , " << attractor << ")");
735 SetAttractorEntry( entry.c_str(),attractor);
738 void BLSURFPlugin_Hypothesis_i::UnsetAttractor(GEOM::GEOM_Object_ptr GeomObj)
742 entry=GeomObj->GetStudyEntry();
743 MESSAGE("IDL : GetName : " << GeomObj->GetName());
744 MESSAGE("IDL : UNSETATTRACTOR ( "<< entry << ")");
745 UnsetEntry( entry.c_str());
746 SMESH::TPythonDump() << _this() << ".UnsetAttractor( " << entry.c_str() << " )";
753 void BLSURFPlugin_Hypothesis_i::SetCustomSizeMap(GEOM::GEOM_Object_ptr GeomObj, const char* sizeMap)
756 void BLSURFPlugin_Hypothesis_i::UnsetCustomSizeMap(GEOM::GEOM_Object_ptr GeomObj)
759 void BLSURFPlugin_Hypothesis_i::SetCustomSizeMapEntry(const char* entry,const char* sizeMap ) throw (SALOME::SALOME_Exception)
762 char* BLSURFPlugin_Hypothesis_i::GetCustomSizeMapEntry(const char* entry) throw (SALOME::SALOME_Exception)
765 void BLSURFPlugin_Hypothesis_i::UnsetCustomSizeMapEntry(const char* entry)
768 this->GetImpl()->UnsetCustomSizeMap(entry);
769 SMESH::TPythonDump() << _this() << ".UnsetCustomSizeMap( " << entry << " )";
773 BLSURFPlugin::string_array* BLSURFPlugin_Hypothesis_i::GetCustomSizeMapEntries()
779 //=============================================================================
781 * BLSURFPlugin_Hypothesis_i::GetImpl
785 //=============================================================================
786 ::BLSURFPlugin_Hypothesis* BLSURFPlugin_Hypothesis_i::GetImpl()
788 // MESSAGE("BLSURFPlugin_Hypothesis_i::GetImpl");
789 return (::BLSURFPlugin_Hypothesis*)myBaseImpl;
792 //================================================================================
794 * \brief Verify whether hypothesis supports given entity type
795 * \param type - dimension (see SMESH::Dimension enumeration)
796 * \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
798 * Verify whether hypothesis supports given entity type (see SMESH::Dimension enumeration)
800 //================================================================================
801 CORBA::Boolean BLSURFPlugin_Hypothesis_i::IsDimSupported( SMESH::Dimension type )
803 return type == SMESH::DIM_2D;