Salome HOME
precise comment
[modules/smesh.git] / src / SMESHDS / SMESHDS_GroupBase.hxx
index a6166b255e4b3d876761f7b726da787af256b6a6..cc9411f993c2bba9d1e583426b5519c69358163e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -58,7 +58,7 @@ class SMESHDS_EXPORT SMESHDS_GroupBase
 
   const char* GetStoreName () const { return myStoreName.c_str(); }
 
-  virtual int Extent();
+  virtual int Extent() const;
 
   virtual bool IsEmpty();
 
@@ -68,9 +68,11 @@ class SMESHDS_EXPORT SMESHDS_GroupBase
 
   virtual SMDS_ElemIteratorPtr GetElements() const = 0;
 
-  int GetID (const int theIndex);
+  virtual int GetID (const int theIndex);
   // use it for iterations 1..Extent()
 
+  virtual int GetTic() const = 0;
+
   virtual ~SMESHDS_GroupBase() {}
 
   void SetColor (const Quantity_Color& theColor)
@@ -97,11 +99,12 @@ class SMESHDS_EXPORT SMESHDS_GroupBase
   const SMESHDS_Mesh*  myMesh;
   SMDSAbs_ElementType  myType;
   std::string          myStoreName;
+  Quantity_Color       myColor;
+
   // for GetID()
   int                  myCurIndex;
   int                  myCurID;
   SMDS_ElemIteratorPtr myIterator;
-  Quantity_Color       myColor;
 };
 
 #endif