X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNETGENPlugin%2FNETGENPlugin_Hypothesis.hxx;h=8f1800ee0d5cda3dc78d150ca709f27ad39504a7;hb=ac5dc648d839444366920d17980ba1690355bf25;hp=21129dc931d345add16049a77a5409e17a63a5c9;hpb=9f30c086ceceef57709bc2971bd30252920faa38;p=plugins%2Fnetgenplugin.git diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis.hxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis.hxx index 21129dc..8f1800e 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis.hxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis.hxx @@ -83,6 +83,11 @@ public: void SetNbSegPerRadius(double theVal); double GetNbSegPerRadius() const { return _nbSegPerRadius; } + void SetChordalErrorEnabled(bool value); + double GetChordalErrorEnabled() const { return _chordalErrorEnabled; } + void SetChordalError(double value); + double GetChordalError() const { return _chordalError; } + typedef std::map TLocalSize; static TLocalSize GetDefaultLocalSize() { return TLocalSize(); } void SetLocalSizeOnEntry(const std::string& entry, double localSize); @@ -109,6 +114,7 @@ public: static double GetDefaultGrowthRate(); static double GetDefaultNbSegPerEdge(); static double GetDefaultNbSegPerRadius(); + static double GetDefaultChordalError(); static bool GetDefaultSecondOrder(); static bool GetDefaultOptimize(); static bool GetDefaultQuadAllowed(); @@ -116,10 +122,8 @@ public: static bool GetDefaultFuseEdges(); // Persistence - virtual ostream & SaveTo(ostream & save); - virtual istream & LoadFrom(istream & load); - friend NETGENPLUGIN_EXPORT ostream & operator <<(ostream & save, NETGENPlugin_Hypothesis & hyp); - friend NETGENPLUGIN_EXPORT istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp); + virtual std::ostream & SaveTo(std::ostream & save); + virtual std::istream & LoadFrom(std::istream & load); /*! * \brief Does nothing @@ -141,6 +145,8 @@ private: double _nbSegPerEdge; double _nbSegPerRadius; Fineness _fineness; + bool _chordalErrorEnabled; + double _chordalError; bool _secondOrder; bool _optimize; TLocalSize _localSize;