//purpose :
//=======================================================================
-int SMESHDS_Group::Extent()
+int SMESHDS_Group::Extent() const
{
return myGroup.Extent();
}
virtual void SetType(SMDSAbs_ElementType theType);
- virtual int Extent();
+ virtual int Extent() const;
virtual bool IsEmpty();
//purpose :
//=======================================================================
-int SMESHDS_GroupBase::Extent()
+int SMESHDS_GroupBase::Extent() const
{
SMDS_ElemIteratorPtr it = GetElements();
int nb = 0;
const char* GetStoreName () const { return myStoreName.c_str(); }
- virtual int Extent();
+ virtual int Extent() const;
virtual bool IsEmpty();
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
*/
//================================================================================
-int SMESHDS_GroupOnFilter::Extent()
+int SMESHDS_GroupOnFilter::Extent() const
{
update();
return myElements.size();
SMESH_PredicatePtr GetPredicate() const { return myPredicate; }
- virtual int Extent();
+ virtual int Extent() const;
virtual bool Contains (const int theID);