20 #ifndef PartSet_SketcherReentrantMgr_H
21 #define PartSet_SketcherReentrantMgr_H
25 #include <ModelAPI_Feature.h>
77 bool isInternalEditActive()
const;
80 void updateInternalEditActiveState();
86 bool processEnter(
const std::string& thePreviousAttributeID);
120 bool canBeCommittedByPreselection();
125 { myReentrantMessage = theMessage; }
132 void setReentrantPreSelection(
const std::shared_ptr<Events_Message>& theMessage);
134 bool isAutoConstraints()
const {
return myIsAutoConstraints; }
137 bool isLastAutoConstraint(
const ObjectPtr& theObj)
const;
142 void onAutoConstraints(
bool isOn);
154 void onNoMoreWidgets(
const std::string& thePreviousAttributeID);
158 void onVertexSelected();
165 void onAfterValuesChangedInPropertyPanel();
169 void onBeforeStopped();
173 bool isActiveMgr()
const;
179 bool startInternalEdit(
const std::string& thePreviousAttributeID);
183 void beforeStopInternalEdit();
186 void restartOperation();
189 void createInternalFeature();
192 void deleteInternalFeature();
204 static bool copyReetntrantAttributes(
const FeaturePtr& theSourceFeature,
205 const FeaturePtr& theNewFeature,
206 const std::shared_ptr<ModelAPI_CompositeFeature>& theSketch,
207 const bool isTemporary =
false);
211 const std::shared_ptr<ModelAPI_CompositeFeature>& )
const;
215 void updateAcceptAllAction();
225 void addConstraints(
const FeaturePtr& theFeature);
230 RestartingMode myRestartingMode;
231 bool myIsFlagsBlocked;
232 bool myIsInternalEditOperation;
234 FeaturePtr myPreviousFeature;
235 FeaturePtr myInternalFeature;
237 std::string myNoMoreWidgetsAttribute;
239 std::shared_ptr<Events_Message> myReentrantMessage;
240 ObjectPtr mySelectedObject;
241 std::shared_ptr<ModelAPI_Attribute> mySelectedAttribute;
242 std::shared_ptr<GeomAPI_Pnt2d> myClickedSketchPoint;
244 bool myIsAutoConstraints;
245 void* myLastAutoConstraint;
Message for communication between sender and listener of event.
Definition: Events_Message.h:65
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34
Feature that consists of other features: like sketcher with edges inside.
Definition: ModelAPI_CompositeFeature.h:33
Interface to ViewWindow object which contains 3d scene.
Definition: ModuleBase_IViewWindow.h:34
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Base class for all operations.
Definition: ModuleBase_Operation.h:53
Presentation.
Definition: ModuleBase_ViewerPrs.h:37
Implementation of Partset module.
Definition: PartSet_Module.h:69
It provides reentrant create operations in sketch, that is when all inputs are valid,...
Definition: PartSet_SketcherReentrantMgr.h:57
std::shared_ptr< Events_Message > reentrantMessage() const
Returnss reentrant message.
Definition: PartSet_SketcherReentrantMgr.h:128
void setReentrantMessage(const std::shared_ptr< Events_Message > &theMessage)
Fills reentrant message during restarting operation.
Definition: PartSet_SketcherReentrantMgr.h:124
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:82