20 #ifndef ModelAPI_ResultField_H_
21 #define ModelAPI_ResultField_H_
23 #include "ModelAPI_Result.h"
24 #include <GeomAPI_Shape.h>
43 virtual int id()
const = 0;
46 inline static std::string
group()
48 static std::string MY_GROUP =
"FieldRersultStep";
68 MODELAPI_EXPORT
virtual void setDisplayed(
const bool theDisplay);
71 MODELAPI_EXPORT
virtual std::wstring
name() = 0;
76 MODELAPI_EXPORT
virtual void init() {}
84 MODELAPI_EXPORT
virtual std::string
groupName();
87 inline static std::string
group()
89 static std::string MY_GROUP =
"Fields";
96 static const std::string RESULT_GROUP_COLOR(
"150,150,180");
97 return RESULT_GROUP_COLOR;
105 virtual std::string
textLine(
int theLine)
const = 0;
109 virtual std::shared_ptr<ModelAPI_ResultField::ModelAPI_FieldStep>
step(
int theId)
const = 0;
113 MODELAPI_EXPORT
virtual void setDisplayed(
const bool theDisplay);
120 typedef std::shared_ptr<ModelAPI_ResultField> ResultFieldPtr;
121 typedef std::shared_ptr<ModelAPI_ResultField::ModelAPI_FieldStep> FieldStepPtr;
Represents any object in the data model and in the object browser.
Definition: ModelAPI_Object.h:45
Definition: ModelAPI_ResultField.h:39
virtual std::string groupName()
Returns the group identifier of this object.
Definition: ModelAPI_ResultField.h:53
virtual void setDisplayed(const bool theDisplay)
Sets the displayed/hidden state of the object.
Definition: ModelAPI_ResultField.cpp:35
static std::string group()
Returns the group identifier of this result.
Definition: ModelAPI_ResultField.h:46
virtual void init()
This method is called just after creation of the object: it must initialize all fields,...
Definition: ModelAPI_ResultField.h:76
virtual std::wstring name()=0
Returns a GUI name of this step.
virtual void initAttributes()
Request for initialization of data model of the object: adding all attributes.
Definition: ModelAPI_ResultField.h:56
virtual bool isDisplayed()
Returns true if object must be displayed in the viewer: flag is stored in the data model,...
Definition: ModelAPI_ResultField.h:64
virtual bool isDisabled()
Returns the feature is disabled or not.
Definition: ModelAPI_ResultField.h:59
The fields result.
Definition: ModelAPI_ResultField.h:35
static const std::string & DEFAULT_COLOR()
default color for a result body
Definition: ModelAPI_ResultField.h:94
virtual int stepsSize() const =0
Returns number of steps.
virtual std::string textLine(int theLine) const =0
Returns a text line by its number.
virtual std::string groupName()
Returns the group identifier of this result.
Definition: ModelAPI_ResultField.cpp:29
virtual void updateSteps()=0
To refresh the steps of a field.
virtual std::shared_ptr< ModelAPI_ResultField::ModelAPI_FieldStep > step(int theId) const =0
Returns step object.
static std::string group()
Returns the group identifier of this result.
Definition: ModelAPI_ResultField.h:87
virtual void setDisplayed(const bool theDisplay)
Sets the displayed/hidden state of the object.
Definition: ModelAPI_ResultField.cpp:56
The result of a feature.
Definition: ModelAPI_Result.h:37