// 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
//
//
//
#ifndef _SMESHDS_GroupBase_HeaderFile
#define _SMESHDS_GroupBase_HeaderFile
+#include "SMESH_SMESHDS.hxx"
+
#include <string>
#include "SMDSAbs_ElementType.hxx"
#include "SMDS_MeshElement.hxx"
+
+#include <Quantity_Color.hxx>
class SMESHDS_Mesh;
-class SMESHDS_GroupBase
+class SMESHDS_EXPORT SMESHDS_GroupBase
{
public:
virtual bool Contains (const int theID);
+ virtual bool Contains (const SMDS_MeshElement* elem);
+
virtual SMDS_ElemIteratorPtr GetElements() = 0;
int GetID (const int theIndex);
virtual ~SMESHDS_GroupBase() {}
+ void SetColor (const Quantity_Color& theColor)
+ { myColor = theColor;}
+
+ Quantity_Color GetColor() const
+ { return myColor;}
+
+ void SetColorGroup (int theColorGroup);
+
+ int GetColorGroup() const;
+
protected:
const SMDS_MeshElement* findInMesh (const int theID) const;
void resetIterator();
int myCurIndex;
int myCurID;
SMDS_ElemIteratorPtr myIterator;
-
+ Quantity_Color myColor;
};
#endif