]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Tools.h
Salome HOME
Issue #3140: Add show/hide Isos menu item.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index f9502dc823ca62cf1546ca1f12abde88afa19ff8..e34b8aa6cbfaca9a1538b1a20f17e807df6c6332 100644 (file)
@@ -242,7 +242,7 @@ MODELAPI_EXPORT void setColor(std::shared_ptr<ModelAPI_Result> theResult,
 * \param[out] theNbLines values of iso-lines
 */
 MODELAPI_EXPORT void getIsoLines(const std::shared_ptr<ModelAPI_Result>& theResult,
-  std::vector<int>& theNbLines);
+  bool& isVisible, std::vector<int>& theNbLines);
 
 /*! Set number of iso-lines of the result
 * \param[in] theResult a result object
@@ -251,6 +251,14 @@ MODELAPI_EXPORT void getIsoLines(const std::shared_ptr<ModelAPI_Result>& theResu
 MODELAPI_EXPORT void setIsoLines(std::shared_ptr<ModelAPI_Result> theResult,
   const std::vector<int>& theIso);
 
+/*! Set visibility of Iso lines
+* \param[in] theResult a result object
+* \param[in] theShow is a visibility flag
+*/
+MODELAPI_EXPORT void showIsoLines(std::shared_ptr<ModelAPI_Result> theResult, bool theShow);
+
+MODELAPI_EXPORT bool isShownIsoLines(std::shared_ptr<ModelAPI_Result> theResult);
+
 /*! Returns current transparency in the given result
 * \param theResult a result object
 * \return a transparency value or -1 if it was not defined