+ /// Returns bounding box size covered the sketch sub-elements.
+ /// If the sketch uses extenal face, it will not have default size and returns false.
+ /// \param theSketch sources sketch
+ /// \param [out] theSizeOfView maximum value in X, Y or Z direction
+ /// \param theCentralPoint central point of the sketch sub features
+ /// \return boolean value
+ bool getDefaultSizeOfView(const std::shared_ptr<ModelAPI_CompositeFeature>& theSketch,
+ double& theSizeOfView,
+ std::shared_ptr<GeomAPI_Pnt>& theCentralPnt);
+
+ /// Returns whether custom size of view is set
+ /// \return boolean value
+ bool isUseSizeOfView() const { return myIsUseSizeOfView; }
+
+ /// Sets the size of default created face
+ /// \param theSizeOfView value
+ /// \param isUseSizeOfView state whether the size should be used
+ void setSizeOfView(double theSizeOfView, bool isUseSizeOfView,
+ const std::shared_ptr<GeomAPI_Pnt>& theCentralPoint = std::shared_ptr<GeomAPI_Pnt>());
+
+ /// Returns True if the plane preview is already created
+ bool isPlaneCreated() const {
+ return myPlane.get();
+ }
+
+ /// Returns current state of the plane preview visibility
+ bool isDisplayed() const { return myPreviewIsDisplayed; }
+
+ /// Displays preview planes
+ /// \param theWorkshop the application workshop
+ void displaySketchPlane(ModuleBase_IWorkshop* theWorkshop);
+
+ /// Nullyfies current plane preview object.
+ /// Important: Before call of this function the plane has to be erased from viewer
+ void clearPlanePreview();
+