20 #ifndef PartSet_ExternalObjectsMgr_H
21 #define PartSet_ExternalObjectsMgr_H
25 #include <ModelAPI_CompositeFeature.h>
26 #include <ModelAPI_Object.h>
27 #include <GeomAPI_Shape.h>
29 #include <ModuleBase_Definitions.h>
50 const std::string& theCanCreateExternal,
51 const bool theDefaultValue);
65 bool isValidObject(
const ObjectPtr& theObject);
73 ObjectPtr externalObject(
const ObjectPtr& theSelectedObject,
const GeomShapePtr& theShape,
74 const CompositeFeaturePtr& theSketch,
const bool theTemporary =
false);
81 ObjectPtr externalCenterObject(
const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs,
82 const CompositeFeaturePtr& theSketch,
83 const bool theTemporary);
94 void removeExternal(
const CompositeFeaturePtr& theSketch,
95 const FeaturePtr& theFeature,
97 const bool theTemporary);
103 virtual void getGeomSelection(
const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs,
104 ObjectPtr& theObject,
105 GeomShapePtr& theShape,
107 const CompositeFeaturePtr& theSketch,
108 const bool isInValidate);
117 void removeExternalObject(
const ObjectPtr& theObject,
118 const CompositeFeaturePtr& theSketch,
119 const FeaturePtr& theFeature,
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Presentation.
Definition: ModuleBase_ViewerPrs.h:37
Customosation of ModuleBase_WidgetShapeSelector in order to provide working with sketch specific obje...
Definition: PartSet_ExternalObjectsMgr.h:43
bool myUseExternal
Boolean value about the neccessity of the external object use.
Definition: PartSet_ExternalObjectsMgr.h:130
ObjectPtr getExternalObjectValidated() const
Returns created external object or NULL.
Definition: PartSet_ExternalObjectsMgr.h:87
bool useExternal() const
Returns the state whether the external object is used.
Definition: PartSet_ExternalObjectsMgr.h:56
bool myCanCreateExternal
Boolean value about the necessity of a new external object creation.
Definition: PartSet_ExternalObjectsMgr.h:132
bool canCreateExternal()
Returns if new external objects can be created.
Definition: PartSet_ExternalObjectsMgr.h:60
ObjectPtr myExternalObjectValidated
An external object.
Definition: PartSet_ExternalObjectsMgr.h:127
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:82