Salome HOME
Merge from BR_Dev_For_4_0 branch (from mergeto_BR_QT4_Dev_17Jan08 tag)
[modules/smesh.git] / src / StdMeshers / StdMeshers_ProjectionSource2D.hxx
index 28c44aedba4a7dbef4e5d1695b9957faa10e3e94..e75e38dabf320ff7fb7aa588e6c03e000efc2438 100644 (file)
@@ -34,7 +34,6 @@
 #include "SMESH_Hypothesis.hxx"
 #include "Utils_SALOME_Exception.hxx"
 
-#include <TopoDS_Face.hxx>
 #include <TopoDS_Vertex.hxx>
 
 class SMESH_Gen;
@@ -62,9 +61,15 @@ public:
     throw ( SALOME_Exception );
 
   /*!
-   * Returns the source face
+   * Returns the source face or a group containing faces
    */
-  TopoDS_Face GetSourceFace() const;
+  TopoDS_Shape GetSourceFace() const;
+
+  /*!
+   * Returns true the source face is a group of faces
+   */
+  bool IsCompoundSource() const
+  { return !_sourceFace.IsNull() && _sourceFace.ShapeType() == TopAbs_COMPOUND; }
 
   /*!
    * Sets source <mesh> to take a mesh pattern from
@@ -145,7 +150,7 @@ public:
 
 protected:
 
-  TopoDS_Face   _sourceFace;
+  TopoDS_Shape  _sourceFace;
   SMESH_Mesh*   _sourceMesh;
   TopoDS_Vertex _sourceVertex1;
   TopoDS_Vertex _sourceVertex2;