- /// initial set of updated features that must be processed
- std::set<std::shared_ptr<ModelAPI_Object> > myInitial;
- /// already updated and processed features and modificated feature flag
- std::map<std::shared_ptr<ModelAPI_Object>, bool> myUpdated;
- /// to know that all next updates are caused by this execution
- bool isExecuted;
- /// to know execute or not automatically all update
- bool isAutomatic;
- /// just created features: they must be updated immideately even in not-automatic mode for
- /// preview; cleared on commit operations
- std::set<std::shared_ptr<ModelAPI_Object> > myJustCreatedOrUpdated;
+ /// Features and results that were modified and not yet processed.
+ /// The second set is the objects that causes this object is modified
+ std::map<std::shared_ptr<ModelAPI_Feature>, std::set<std::shared_ptr<ModelAPI_Feature> > >
+ myModified;
+ /// Features which arguments were modified by not-persistent changes.
+ /// So, these referencing arguments must be updated
+ /// due to these features info also before execution).
+ std::map<std::shared_ptr<ModelAPI_Feature>, std::set<std::shared_ptr<ModelAPI_Feature> > >
+ myNotPersistentRefs;
+ /// features that must be additionally processed after execution of finish operation
+ std::set<std::shared_ptr<ModelAPI_Feature> > myWaitForFinish;
+ /// to know that some parameter was changed during this operation (to enable update expressions)
+ bool myIsParamUpdated;
+ /// to execute features on finish if preview is needed only on finish operation
+ bool myIsFinish;
+ /// try if processing is currently performed
+ bool myIsProcessed;
+ /// map that contains features that must be executed only on finish of the operation
+ /// the value in map is the set of reasons
+ std::map<std::shared_ptr<ModelAPI_Feature>, std::set<std::shared_ptr<ModelAPI_Feature> > >
+ myProcessOnFinish;
+ /// to avoid infinitive cycling: feature -> count of the processing periods during this update
+ std::map<std::shared_ptr<ModelAPI_Feature>, int > myProcessed;
+ /// if preview in the property panel is blocked any update is postponed until end of operation
+ bool myIsPreviewBlocked;
+ /// disables any update if it is true, even on start/finish operation, undo, etc.
+ bool myUpdateBlocked;