Salome HOME
bos #26805: regressions in tests
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.h
index d6e4c4c550ce7fb74d1510a9183f3d3e39e5ac96..cae27a1d92115896c1f223a498b840234e95a1fa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021  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
@@ -370,7 +370,7 @@ QString MODULEBASE_EXPORT translate(const std::string& theContext, const std::st
 
 /// Set Highlighting of points as a Ball shape
 /// \param theAIS - the presentation
-void MODULEBASE_EXPORT setPointBallHighlighting(AIS_Shape* theAIS);
+void MODULEBASE_EXPORT setPointBallHighlighting(AIS_InteractiveObject* theAIS);
 
 /// Creates a parameter from a given string
 /// \theText a text wit equation
@@ -401,9 +401,16 @@ bool MODULEBASE_EXPORT isSameShape(const TopoDS_Shape& theShape1, const TopoDS_S
 /// \param theAttribute a model attribute
 /// \param theWorkshop a workshop class instance
 /// \return string value
-std::string MODULEBASE_EXPORT generateName(const AttributePtr& theAttribute,
+std::wstring MODULEBASE_EXPORT generateName(const AttributePtr& theAttribute,
   ModuleBase_IWorkshop* theWorkshop);
 
+/// Returns pixel ratio of a screen where main window is displayed
+qreal MODULEBASE_EXPORT currentPixelRatio();
+
+/// Set displaying status for elements from part depending on the settings
+/// \param thePart a pointer of part
+void MODULEBASE_EXPORT setDisplaying(std::shared_ptr<ModelAPI_ResultPart> thePart,
+                                     bool theDisplayFromScript = false);
 }
 
 #endif