- /// Returns pointer to the root document.
- std::shared_ptr<ModelAPI_Document> document() const;
-
- /// Set value to the active widget
- /// \param theFeature the feature
- /// \param theX the horizontal coordinate
- /// \param theY the vertical coordinate
- /// \return true if the point is set
- //virtual bool setWidgetValue(ObjectPtr theFeature, double theX, double theY);
-
- /// Return a widget value point by the selection and the viewer position
- /// The default realization returns false
- /// \param thePrs the presentation
- /// \param theViewer a viewer to have the viewer the eye position
- /// \param theX the horizontal coordinate
- /// \param theY the vertical coordinate
- /// \return true if the point exits in the selection
- virtual bool getViewerPoint(ModuleBase_ViewerPrs thePrs,
- ModuleBase_IViewer* theViewer,
- double& theX, double& theY);
-
- // Removes the preselection information and clears the map of preselection
- void clearPreselection();
-
- protected:
- FeaturePtr myFeature; /// the operation feature to be handled
-