]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/StdMeshers/StdMeshers_ProjectionSource1D.hxx
Salome HOME
Qt4 porting.
[modules/smesh.git] / src / StdMeshers / StdMeshers_ProjectionSource1D.hxx
index 1431ba22d5014409413dfa8a777b661598ce99dc..e9847420ff6c290d4d008582eab938a2b3776077 100644 (file)
@@ -34,7 +34,6 @@
 #include "SMESH_Hypothesis.hxx"
 #include "Utils_SALOME_Exception.hxx"
 
-#include <TopoDS_Edge.hxx>
 #include <TopoDS_Vertex.hxx>
 
 class SMESH_Gen;
@@ -62,9 +61,15 @@ public:
     throw ( SALOME_Exception );
 
   /*!
-   * Returns the source edge
+   * Returns the source edge or a group containing edges
    */
-  TopoDS_Edge GetSourceEdge() const { return _sourceEdge; }
+  TopoDS_Shape GetSourceEdge() const { return _sourceEdge; }
+
+  /*!
+   * Returns true the source edge is a group of edges
+   */
+  bool IsCompoundSource() const
+  { return !_sourceEdge.IsNull() && _sourceEdge.ShapeType() == TopAbs_COMPOUND; }
 
   /*!
    * Sets source <mesh> to take a mesh pattern from
@@ -135,7 +140,7 @@ public:
 
 protected:
 
-  TopoDS_Edge   _sourceEdge;
+  TopoDS_Shape  _sourceEdge;
   SMESH_Mesh*   _sourceMesh;
   TopoDS_Vertex _sourceVertex;
   TopoDS_Vertex _targetVertex;