From 582660b50bef2c2842c5b01320493a636c445299 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 22 Jan 2009 14:00:32 +0000 Subject: [PATCH] Merge from BR_V5_IMP_P8 --- src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx | 12 ++++++++++++ src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.hxx | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx index b49e210..dfe8cc6 100755 --- a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx +++ b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx @@ -203,6 +203,18 @@ bool GHS3DPRLPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh, { return false; } +//================================================================================ +/*! + * \brief Initialize my parameter values by linear size of mesh element. + * \retval bool - true if parameter values have been successfully defined + */ +//================================================================================ + +bool GHS3DPRLPlugin_Hypothesis::SetParametersByElementSize(double /*elemLenght*/, + const SMESH_Mesh* /*theMesh*/) +{ + return false; +} //============================================================================= std::string GHS3DPRLPlugin_Hypothesis::GetDefaultMEDName() diff --git a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.hxx b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.hxx index 48de717..53734de 100755 --- a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.hxx +++ b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.hxx @@ -68,6 +68,11 @@ public: * \retval bool - always false */ virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape); + /*! + * \brief Initialize my parameter values by linear size of mesh element. + * \retval bool - true if parameter values have been successfully defined + */ + virtual bool SetParametersByElementSize( double elemLenght, const SMESH_Mesh* theMesh=0); private: int _countSubMesh; -- 2.39.2