From e17285fe3dd315314d51459e40e687073162030c Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Dec 2006 08:27:25 +0000 Subject: [PATCH] PAL13473 (Build repetitive mesh): Notify meshes on hypo modification at SetSourceMesh() --- src/StdMeshers/StdMeshers_ProjectionSource1D.cxx | 13 +++++++++++++ src/StdMeshers/StdMeshers_ProjectionSource1D.hxx | 2 +- src/StdMeshers/StdMeshers_ProjectionSource2D.cxx | 13 +++++++++++++ src/StdMeshers/StdMeshers_ProjectionSource2D.hxx | 2 +- src/StdMeshers/StdMeshers_ProjectionSource3D.cxx | 13 +++++++++++++ src/StdMeshers/StdMeshers_ProjectionSource3D.hxx | 2 +- 6 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/StdMeshers/StdMeshers_ProjectionSource1D.cxx b/src/StdMeshers/StdMeshers_ProjectionSource1D.cxx index 18a25a315..48121a6b7 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource1D.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource1D.cxx @@ -120,6 +120,19 @@ void StdMeshers_ProjectionSource1D::SetVertexAssociation(const TopoDS_Shape& sou } } +//============================================================================= +/*! + * Sets source to take a mesh pattern from + */ +//============================================================================= + +void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh) +{ + if ( _sourceMesh != mesh ) + NotifySubMeshesHypothesisModification(); + _sourceMesh = mesh; +} + //============================================================================= /*! * diff --git a/src/StdMeshers/StdMeshers_ProjectionSource1D.hxx b/src/StdMeshers/StdMeshers_ProjectionSource1D.hxx index e1d019a1c..1ef1d5b9c 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource1D.hxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource1D.hxx @@ -67,7 +67,7 @@ public: /*! * Sets source to take a mesh pattern from */ - void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; } + void SetSourceMesh(SMESH_Mesh* mesh); /*! * Return source mesh diff --git a/src/StdMeshers/StdMeshers_ProjectionSource2D.cxx b/src/StdMeshers/StdMeshers_ProjectionSource2D.cxx index 909b90354..2b9c54232 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource2D.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource2D.cxx @@ -131,6 +131,19 @@ void StdMeshers_ProjectionSource2D::SetVertexAssociation(const TopoDS_Shape& sou } } +//============================================================================= +/*! + * Sets source to take a mesh pattern from + */ +//============================================================================= + +void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh) +{ + if ( _sourceMesh != mesh ) + NotifySubMeshesHypothesisModification(); + _sourceMesh = mesh; +} + //============================================================================= /*! * Returns the source face diff --git a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx index ec4a33ee6..2a6b6d656 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx @@ -67,7 +67,7 @@ public: /*! * Sets source to take a mesh pattern from */ - void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; } + void SetSourceMesh(SMESH_Mesh* mesh); /*! * Return source mesh diff --git a/src/StdMeshers/StdMeshers_ProjectionSource3D.cxx b/src/StdMeshers/StdMeshers_ProjectionSource3D.cxx index 3e4c33e8c..00a889160 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource3D.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource3D.cxx @@ -129,6 +129,19 @@ void StdMeshers_ProjectionSource3D::SetVertexAssociation(const TopoDS_Shape& sou } } +//============================================================================= +/*! + * Sets source to take a mesh pattern from + */ +//============================================================================= + +void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh) +{ + if ( _sourceMesh != mesh ) + NotifySubMeshesHypothesisModification(); + _sourceMesh = mesh; +} + //============================================================================= /*! * Returns the source face diff --git a/src/StdMeshers/StdMeshers_ProjectionSource3D.hxx b/src/StdMeshers/StdMeshers_ProjectionSource3D.hxx index 493851ab1..bd91e7d48 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource3D.hxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource3D.hxx @@ -66,7 +66,7 @@ public: /*! * Sets source to take a mesh pattern from */ - void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; } + void SetSourceMesh(SMESH_Mesh* mesh); /*! * Return source mesh -- 2.39.2