1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PlaneGCSSolver_UpdateFeature.cpp
4 // Created: 17 Feb 2017
5 // Author: Artem ZHIDKOV
7 #include <PlaneGCSSolver_UpdateFeature.h>
8 #include <SketchSolver_Constraint.h>
10 void PlaneGCSSolver_UpdateFeature::attach(SketchSolver_Constraint* theObserver,
11 const std::string& theType)
13 if (theType == GROUP())
14 myObservers.push_back(theObserver);
16 myNext->attach(theObserver, theType);
19 void PlaneGCSSolver_UpdateFeature::update(const FeaturePtr& theFeature)
21 std::list<SketchSolver_Constraint*>::iterator anIt = myObservers.begin();
22 for (; anIt != myObservers.end(); ++anIt)
23 (*anIt)->notify(theFeature, this);