#include "Model_Iterator.h"
#include "Model_Document.h"
+#include "ModelAPI_Feature.h"
+#include "Model_Object.h"
#include <TDataStd_Comment.hxx>
#include <TDataStd_Name.hxx>
return aResult;
}
+bool Model_Iterator::is(std::shared_ptr<ModelAPI_Feature> theFeature)
+{
+ return myIter.Value()->Label() ==
+ dynamic_pointer_cast<Model_Object>(theFeature->data())->label();
+
+}
+
+
Model_Iterator::Model_Iterator(std::shared_ptr<Model_Document> theDoc, TDF_Label theLab)
: myDoc(theDoc), myIter(theLab, TDataStd_Comment::GetID(), Standard_False)
{}