mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 10:00:33 +05:00
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
- virtual int Extent(); + virtual int Extent() const;
This commit is contained in:
parent
4f20185178
commit
2ddb295e4a
@ -49,7 +49,7 @@ SMESHDS_Group::SMESHDS_Group (const int theID,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
int SMESHDS_Group::Extent()
|
||||
int SMESHDS_Group::Extent() const
|
||||
{
|
||||
return myGroup.Extent();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ class SMESHDS_EXPORT SMESHDS_Group : public SMESHDS_GroupBase
|
||||
|
||||
virtual void SetType(SMDSAbs_ElementType theType);
|
||||
|
||||
virtual int Extent();
|
||||
virtual int Extent() const;
|
||||
|
||||
virtual bool IsEmpty();
|
||||
|
||||
|
@ -105,7 +105,7 @@ void SMESHDS_GroupBase::resetIterator()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
int SMESHDS_GroupBase::Extent()
|
||||
int SMESHDS_GroupBase::Extent() const
|
||||
{
|
||||
SMDS_ElemIteratorPtr it = GetElements();
|
||||
int nb = 0;
|
||||
|
@ -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();
|
||||
|
||||
@ -97,11 +97,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
|
||||
|
@ -66,7 +66,7 @@ void SMESHDS_GroupOnFilter::SetPredicate( const SMESH_PredicatePtr& thePredicate
|
||||
*/
|
||||
//================================================================================
|
||||
|
||||
int SMESHDS_GroupOnFilter::Extent()
|
||||
int SMESHDS_GroupOnFilter::Extent() const
|
||||
{
|
||||
update();
|
||||
return myElements.size();
|
||||
|
@ -46,7 +46,7 @@ class SMESHDS_EXPORT SMESHDS_GroupOnFilter: public SMESHDS_GroupBase
|
||||
|
||||
SMESH_PredicatePtr GetPredicate() const { return myPredicate; }
|
||||
|
||||
virtual int Extent();
|
||||
virtual int Extent() const;
|
||||
|
||||
virtual bool Contains (const int theID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user