Salome HOME
PAL13473 (Build repetitive mesh):
authoreap <eap@opencascade.com>
Thu, 7 Dec 2006 08:27:25 +0000 (08:27 +0000)
committereap <eap@opencascade.com>
Thu, 7 Dec 2006 08:27:25 +0000 (08:27 +0000)
Notify meshes on hypo modification at SetSourceMesh()

src/StdMeshers/StdMeshers_ProjectionSource1D.cxx
src/StdMeshers/StdMeshers_ProjectionSource1D.hxx
src/StdMeshers/StdMeshers_ProjectionSource2D.cxx
src/StdMeshers/StdMeshers_ProjectionSource2D.hxx
src/StdMeshers/StdMeshers_ProjectionSource3D.cxx
src/StdMeshers/StdMeshers_ProjectionSource3D.hxx

index 18a25a31501a0b27436afffccaa46326d343372d..48121a6b798da9355c0d4c323e61ee65ed08572d 100644 (file)
@@ -120,6 +120,19 @@ void StdMeshers_ProjectionSource1D::SetVertexAssociation(const TopoDS_Shape& sou
   }
 }
 
+//=============================================================================
+/*!
+ * Sets source <mesh> to take a mesh pattern from
+ */
+//=============================================================================
+
+void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh)
+{
+  if ( _sourceMesh != mesh )
+    NotifySubMeshesHypothesisModification();
+  _sourceMesh = mesh;
+}
+
 //=============================================================================
 /*!
  *  
index e1d019a1cb1b708975e6811cda5be00c256e8862..1ef1d5b9cb3abac2af6f1dbf38f40c2b0cba79ea 100644 (file)
@@ -67,7 +67,7 @@ public:
   /*!
    * Sets source <mesh> to take a mesh pattern from
    */
-  void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; }
+  void SetSourceMesh(SMESH_Mesh* mesh);
 
   /*!
    * Return source mesh
index 909b90354b45c09c2aecb71d340a4fc783a0d123..2b9c54232d77ce294cf5ebce3af47a0fada79dbe 100644 (file)
@@ -131,6 +131,19 @@ void StdMeshers_ProjectionSource2D::SetVertexAssociation(const TopoDS_Shape& sou
   }
 }
 
+//=============================================================================
+/*!
+ * Sets source <mesh> to take a mesh pattern from
+ */
+//=============================================================================
+
+void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh)
+{
+  if ( _sourceMesh != mesh )
+    NotifySubMeshesHypothesisModification();
+  _sourceMesh = mesh;
+}
+
 //=============================================================================
 /*!
  * Returns the source face
index ec4a33ee6b8e7338ba819b149e0d71777d769174..2a6b6d6565ed1cf986a042c5b1771124dcfef8d8 100644 (file)
@@ -67,7 +67,7 @@ public:
   /*!
    * Sets source <mesh> to take a mesh pattern from
    */
-  void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; }
+  void SetSourceMesh(SMESH_Mesh* mesh);
 
   /*!
    * Return source mesh
index 3e4c33e8ce09a373fc0d30837bc4ccdacb83baa3..00a889160c560456ab9b93670925fff4baad7df5 100644 (file)
@@ -129,6 +129,19 @@ void StdMeshers_ProjectionSource3D::SetVertexAssociation(const TopoDS_Shape& sou
   }
 }
 
+//=============================================================================
+/*!
+ * Sets source <mesh> to take a mesh pattern from
+ */
+//=============================================================================
+
+void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh)
+{
+  if ( _sourceMesh != mesh )
+    NotifySubMeshesHypothesisModification();
+  _sourceMesh = mesh;
+}
+
 //=============================================================================
 /*!
  * Returns the source face
index 493851ab1482ef6a2ff734b1d40f96be8477b79d..bd91e7d48e542d53263aa94b3847bd0515fac344 100644 (file)
@@ -66,7 +66,7 @@ public:
   /*!
    * Sets source <mesh> to take a mesh pattern from
    */
-  void SetSourceMesh(SMESH_Mesh* mesh) { _sourceMesh = mesh; }
+  void SetSourceMesh(SMESH_Mesh* mesh);
 
   /*!
    * Return source mesh