Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support of Steps visualization from the data model level.
[modules/shaper.git]
/
src
/
Model
/
Model_ResultField.h
diff --git
a/src/Model/Model_ResultField.h
b/src/Model/Model_ResultField.h
index 307861c3494978eb85c1528b03ed151e88cf1ab5..ae66e9a106345ed4a34d1c32623e49424d063259 100644
(file)
--- a/
src/Model/Model_ResultField.h
+++ b/
src/Model/Model_ResultField.h
@@
-39,7
+39,11
@@
public:
{
public:
Model_FieldStep(ModelAPI_ResultField* theParent, int theId)
{
public:
Model_FieldStep(ModelAPI_ResultField* theParent, int theId)
- : ModelAPI_ResultField::ModelAPI_FieldStep(), myParent(theParent), myId(theId) {};
+ : ModelAPI_ResultField::ModelAPI_FieldStep(), myParent(theParent), myId(theId)
+ {
+ setData(myParent->data()); // it is not needed to have special data for the temporary
+ // step object, but data must be "valid" for GUI checks
+ };
virtual ModelAPI_ResultField* field() const { return myParent; }
virtual ModelAPI_ResultField* field() const { return myParent; }
@@
-47,12
+51,15
@@
public:
virtual std::shared_ptr<ModelAPI_Document> document() const { return myParent->document(); }
virtual std::shared_ptr<ModelAPI_Document> document() const { return myParent->document(); }
+ /// Returns a GUI name of this step
+ virtual std::string name();
+
private:
ModelAPI_ResultField* myParent;
int myId;
};
private:
ModelAPI_ResultField* myParent;
int myId;
};
- /// Retu
ns the parameters of color definition in the resources config
manager
+ /// Retu
rns the parameters of color definition in the resources configuration
manager
MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault);
MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault);
@@
-73,6
+80,9
@@
public:
/// Removes the stored builders
MODEL_EXPORT virtual ~Model_ResultField();
/// Removes the stored builders
MODEL_EXPORT virtual ~Model_ResultField();
+ /// To refresh the steps of a field
+ MODEL_EXPORT virtual void updateSteps();
+
protected:
/// Makes a body on the given feature data
Model_ResultField(std::shared_ptr<ModelAPI_Data> theOwnerData);
protected:
/// Makes a body on the given feature data
Model_ResultField(std::shared_ptr<ModelAPI_Data> theOwnerData);
@@
-80,7
+90,6
@@
protected:
friend class Model_Objects;
private:
friend class Model_Objects;
private:
- void updateSteps();
std::vector<FieldStepPtr> mySteps;
};
std::vector<FieldStepPtr> mySteps;
};