Salome HOME
Color Number (Color Group) parameter is returned for compatibility
[modules/smesh.git] / src / SMESHDS / SMESHDS_Group.hxx
index 444914ceeeac211db88ca94e0efae8167d6e0b27..2d41756a53788cffcde24c0eebb86ee0628c57bd 100644 (file)
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  File   : SMESHDS_Group.hxx
-//  Author : Michael Sazonov (OCC)
 //  Module : SMESH
 //  $Header$
 
 #ifndef _SMESHDS_Group_HeaderFile
 #define _SMESHDS_Group_HeaderFile
 
-#include <SMDS_MeshGroup.hxx>
+#include "SMESH_SMESHDS.hxx"
+
 #include <string>
+#include "SMESHDS_GroupBase.hxx"
+#include "SMDS_MeshGroup.hxx"
 
 class SMESHDS_Mesh;
 
-class SMESHDS_Group : public SMDS_MeshGroup
+class SMESHDS_EXPORT SMESHDS_Group : public SMESHDS_GroupBase
 {
  public:
 
-  SMESHDS_Group (const SMESHDS_Mesh*       theMesh,
+  SMESHDS_Group (const int                 theID,
+                 const SMESHDS_Mesh*       theMesh,
                  const SMDSAbs_ElementType theType);
 
-  void SetStoreName (const char* theName)
-  { myStoreName = theName; }
+  virtual void SetType(SMDSAbs_ElementType theType);
+
+  virtual int Extent();
+
+  virtual bool IsEmpty();
 
-  const char* GetStoreName () const
-  { return myStoreName.c_str(); }
+  virtual bool Contains (const int theID);
 
-  bool Contains (const int theID) const;
+  virtual SMDS_ElemIteratorPtr GetElements();
 
   bool Add (const int theID);
+
   bool Remove (const int theID);
 
-  int GetID (const int theIndex);
-  // use it for iterations 1..Extent() as alternative to parent's
-  // InitIterator(), More(), Next()
+  void Clear();
 
- private:
-  SMESHDS_Group (const SMESHDS_Group& theOther);
-  // prohibited copy constructor
-  SMESHDS_Group& operator = (const SMESHDS_Group& theOther);
-  // prohibited assign operator
+  SMDS_MeshGroup& SMDSGroup() { return myGroup; }
 
-  const SMDS_MeshElement* findInMesh (const int theID) const;
+ private:
 
-  string myStoreName;
-  int    myCurIndex;
-  int    myCurID;
+  SMDS_MeshGroup myGroup;
 
 };