27 #ifndef _BLSURFPlugin_Hypothesis_HXX_
28 #define _BLSURFPlugin_Hypothesis_HXX_
30 #include "SMESH_Hypothesis.hxx"
38 #include <utilities.h>
68 {
return hasgeom ?
"MG-CADSurf Parameters" :
"MG-CADSurf Parameters_NOGEOM"; }
78 void SetPhySize(
double thePhySize,
bool isRelative =
false);
82 void SetMinSize(
double theMinSize,
bool isRelative =
false);
86 void SetMaxSize(
double theMaxSize,
bool isRelative =
false);
151 void ClearEntry(
const std::string& entry,
const char * attEntry = 0);
193 void SetTags(
const std::string& howToTreat )
throw (std::invalid_argument);
218 typedef std::map<std::string,std::string>
TSizeMap;
220 void SetSizeMapEntry(
const std::string& entry,
const std::string& sizeMap );
245 typedef std::multimap< std::string, BLSURFPlugin_Attractor* >
TAttractorMap;
246 typedef std::map< std::string, std::vector<double> >
TParamsMap;
248 void SetClassAttractorEntry(
const std::string& entry,
const std::string& att_entry,
double StartSize,
double EndSize,
double ActionRadius,
double ConstantRadius);
356 double x = 0.0,
double y = 0.0,
double z = 0.0);
366 bool ClearEnforcedVertex(
const TEntry& theFaceEntry,
double x = 0.0,
double y = 0.0,
double z = 0.0,
const TEntry& theVertexEntry=
"") throw (std::invalid_argument);
499 std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries);
501 std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries);
509 const std::string& optionValue)
throw (std::invalid_argument);
511 const std::string& optionValue)
throw (std::invalid_argument);
512 std::string
GetOptionValue(
const std::string& optionName,
bool* isDefault=0)
const throw (std::invalid_argument);
513 std::
string GetPreCADOptionValue(const std::
string& optionName,
bool* isDefault=0) const throw (std::invalid_argument);
520 void AddOption(
const std::string& optionName,
const std::string& optionValue);
521 void AddPreCADOption(
const std::string& optionName,
const std::string& optionValue);
522 std::string
GetOption(
const std::string& optionName)
const;
525 static bool ToBool(
const std::string& str,
bool* isOk=0) throw (std::invalid_argument);
526 static
double ToDbl(const std::
string& str,
bool* isOk=0) throw (std::invalid_argument);
527 static
int ToInt(const std::
string& str,
bool* isOk=0) throw (std::invalid_argument);
533 void SetGMFFile(const std::
string& theFileName);
539 virtual std::ostream &
SaveTo(std::ostream & save);
540 virtual std::istream &
LoadFrom(std::istream & load);