Salome HOME
Issue #2612 : Re-calculate model after modification of parameters
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultField.h
index 65888b55592cbbe7a0b1caad9eb80cb7edc91349..bdb75e83f78e10114f9d966a3d80137ecbd26b79 100644 (file)
@@ -1,8 +1,22 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        ModelAPI_ResultField.hxx
-// Created:     16 Nov 2016
-// Author:      Mikhail PONIKAROV
+// Copyright (C) 2014-2017  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
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// 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
+//
+// See http://www.salome-platform.org/ or
+// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+//
 
 #ifndef ModelAPI_ResultField_H_
 #define ModelAPI_ResultField_H_
 class ModelAPI_ResultField : public ModelAPI_Result
 {
 public:
+
+  class ModelAPI_FieldStep : public ModelAPI_Entity
+  {
+  public:
+    virtual ModelAPI_ResultField* field() const = 0;
+
+    virtual int id() const = 0;
+  };
+
   MODELAPI_EXPORT virtual ~ModelAPI_ResultField();
   /// Returns the group identifier of this result
   MODELAPI_EXPORT virtual std::string groupName();
@@ -39,9 +62,20 @@ public:
     return RESULT_GROUP_COLOR;
   }
 
+  /// Returns number of steps
+  virtual int stepsSize() const = 0;
+
+  /// Returns a text line by its number
+  /// \param theLine a number of line
+  virtual std::string textLine(int theLine) const = 0;
+
+  /// Returns step object
+  /// \param theId an id of the object
+  virtual ModelAPI_FieldStep* step(int theId) const = 0;
 };
 
 //! Pointer on feature object
 typedef std::shared_ptr<ModelAPI_ResultField> ResultFieldPtr;
+typedef std::shared_ptr<ModelAPI_ResultField::ModelAPI_FieldStep> FieldStepPtr;
 
 #endif