}
}
-
-
+void GHS3DPRLPlugin_Hypothesis::SetAdvancedOption(const char* theOptAndVals )
+{
+ if ( _AdvOptions != theOptAndVals )
+ {
+ _AdvOptions = theOptAndVals;
+ NotifySubMeshesHypothesisModification();
+ }
+}
save<<"KeepFiles="<<(int) _KeepFiles<<";";
save<<"Background="<<(int) _Background<<";";
save<<"Multithread="<<(int) _Multithread<<";";
+ save<<" " << _AdvOptions.size() << " " << _AdvOptions;
return save;
}
str4 = str2.substr(eqpos+1);
pos = found + 1;
- if (str3=="MEDName") _MEDName = str4.c_str();
- if (str3=="NbPart") _NbPart = atoi(str4.c_str());
- if (str3=="KeepFiles") _KeepFiles = (bool) atoi(str4.c_str());
- //if (str3=="ToMeshHoles") _ToMeshHoles = (bool) atoi(str4.c_str());
- if (str3=="Gradation") _Gradation = (float) atof(str4.c_str());
- if (str3=="MinSize") _MinSize = (float) atof(str4.c_str());
- if (str3=="MaxSize") _MaxSize = (float) atof(str4.c_str());
- if (str3=="Background") _Background = (bool) atoi(str4.c_str());
+ if (str3=="MEDName") _MEDName = str4.c_str();
+ if (str3=="NbPart") _NbPart = atoi(str4.c_str());
+ if (str3=="KeepFiles") _KeepFiles = (bool) atoi(str4.c_str());
+ if (str3=="Gradation") _Gradation = atof(str4.c_str());
+ if (str3=="MinSize") _MinSize = atof(str4.c_str());
+ if (str3=="MaxSize") _MaxSize = atof(str4.c_str());
+ if (str3=="Background") _Background = (bool) atoi(str4.c_str());
if (str3=="Multithread") _Multithread = (bool) atoi(str4.c_str());
}
+
+ len = 0;
+ isOK = static_cast<bool>(load >> len >> std::ws);
+ if ( isOK && len > 0 )
+ {
+ _AdvOptions.resize( len );
+ load.get( &_AdvOptions[0], len + 1);
+ }
return load;
}
*/
//================================================================================
bool GHS3DPRLPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh,
- const TopoDS_Shape& theShape)
+ const TopoDS_Shape& theShape)
{
return false;
}