Salome HOME
Adjust test case to avoid instability.
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Tools.h
index f119a302771ea11f6eb83423bf53013ff24ab340..5a719646c22e8c46447befffb461f15fbf6ab329 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef SketcherPrs_Tools_H
@@ -28,6 +27,8 @@
 #include <ModelAPI_Object.h>
 #include <ModelAPI_Attribute.h>
 #include <ModelAPI_Feature.h>
+#include <ModelAPI_CompositeFeature.h>
+#include <ModelAPI_Result.h>
 #include <string>
 
 #include <Events_Loop.h>
@@ -155,6 +156,11 @@ namespace SketcherPrs_Tools {
                                                const std::string& theAttribute,
                                                const std::shared_ptr<GeomAPI_Ax3>& thePlane);
 
+  /// Collect all sketch points which are not connected with other entities.
+  /// \param theSketch sketch feature
+  /// \return list of results of SketchPlugin_Point features
+  SKETCHERPRS_EXPORT std::list<ResultPtr> getFreePoints(const CompositeFeaturePtr& theSketch);
+
   /// Returns value of dimension arrows size
   SKETCHERPRS_EXPORT double getArrowSize();
 
@@ -200,6 +206,10 @@ namespace SketcherPrs_Tools {
   /// \param theError a debug error information
   SKETCHERPRS_EXPORT void sendEmptyPresentationError(ModelAPI_Feature* theFeature,
                                                      const std::string theError);
+
+  SKETCHERPRS_EXPORT void setPixelRatio(int theRatio);
+
+  SKETCHERPRS_EXPORT int pixelRatio();
 };
 
 #endif