Salome HOME
Support of attributes located in the same switch in several cases
[modules/shaper.git] / src / Model / Model_ResultCompSolid.h
index 355be572129f08c030d3a05fdaa9f7d55aa09cc1..21fb163b9769a7ef3ca15542319b63b7b2999764 100755 (executable)
@@ -21,6 +21,10 @@ class Model_ResultCompSolid : public ModelAPI_ResultCompSolid
 {
   /// Sub-bodies if this is compsolid: zero base index to subs
   std::vector<std::shared_ptr<ModelAPI_ResultBody> > mySubs;
+  /// Flag that stores the previous state of "concealed": if it is changed,
+  /// The event must be generated to redisplay this and all subs.
+  bool myLastConcealed;
+
 
 public:
 
@@ -60,6 +64,12 @@ public:
   MODEL_EXPORT virtual bool setDisabled(std::shared_ptr<ModelAPI_Result> theThis,
     const bool theFlag);
 
+  /// The compsolid is concealed if at least one of the sub is concealed
+  MODEL_EXPORT virtual bool isConcealed();
+
+  /// Sets all subs as concealed in the data tree (referenced by other objects)
+  MODEL_EXPORT virtual void setIsConcealed(const bool theValue);
+
 protected:
   /// Makes a body on the given feature
   Model_ResultCompSolid();