const SMESHDS_Mesh* theMesh,
const SMDSAbs_ElementType theType,
const SMESH_PredicatePtr& thePredicate)
- : SMESHDS_GroupBase(theID,theMesh,theType), myMeshModifTime(0)
+ : SMESHDS_GroupBase(theID,theMesh,theType), myMeshModifTime(0), myPredicateTic(0)
{
setChanged();
SetPredicate( thePredicate );
void SMESHDS_GroupOnFilter::SetPredicate( const SMESH_PredicatePtr& thePredicate)
{
myPredicate = thePredicate;
+ ++myPredicateTic;
setChanged();
if ( myPredicate )
myPredicate->SetMesh( GetMesh() );
return myElements[ theIndex-1 ]->GetID();
}
+//================================================================================
+/*!
+ * \brief Return a value allowing to find out if a group has changed or not
+ */
+//================================================================================
+
+int SMESHDS_GroupOnFilter::GetTic() const
+{
+ return GetMesh()->GetMTime() * myPredicateTic;
+}
+
//================================================================================
/*!
* \brief Updates myElements if necessary