Salome HOME
Adjust TestImportXAOMem test case to check names of ImportXAOMem feature and result
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultField.h
index 2393be2bf5e6ad716c0396cf7e1d282b7e686e69..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
@@ -67,6 +67,9 @@ public:
     /// signal.
     MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
 
+    /// Returns a GUI name of this step
+    MODELAPI_EXPORT virtual std::wstring name() = 0;
+
   protected:
     /// This method is called just after creation of the object: it must initialize
     /// all fields, normally initialized in the constructor
@@ -104,6 +107,13 @@ public:
   /// Returns step object
   /// \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;
 };
 
 //! Pointer on feature object