Salome HOME
Adjust TestImportXAOMem test case to check names of ImportXAOMem feature and result
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultField.h
index 09698048dac2cacd49722cdc56efcda56b008c21..46a8fc275338e24ed44767d07f45b6b9fab4c14c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -68,7 +68,7 @@ public:
     MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
 
     /// Returns a GUI name of this step
-    MODELAPI_EXPORT virtual std::string name() = 0;
+    MODELAPI_EXPORT virtual std::wstring name() = 0;
 
   protected:
     /// This method is called just after creation of the object: it must initialize
@@ -108,6 +108,10 @@ public:
   /// \param theId an id of the object
   virtual std::shared_ptr<ModelAPI_ResultField::ModelAPI_FieldStep> step(int theId) const = 0;
 
+  /// Sets the displayed/hidden state of the object. If it is changed, sends the "redisplay"
+  /// signal.
+  MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
+
   /// To refresh the steps of a field
   MODELAPI_EXPORT virtual void updateSteps() = 0;
 };