X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultCompSolid.h;h=ba92674e8c80a03228a3349655dc711447eef05a;hb=530f5aff42069e844c4a4ef164088ea23ba0e2dd;hp=152ef4bba942210e94c09a525632d5fcc696f9b1;hpb=74e9ba33303efc2282db1261706e904efa36b255;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultCompSolid.h b/src/Model/Model_ResultCompSolid.h index 152ef4bba..ba92674e8 100755 --- a/src/Model/Model_ResultCompSolid.h +++ b/src/Model/Model_ResultCompSolid.h @@ -21,6 +21,10 @@ class Model_ResultCompSolid : public ModelAPI_ResultCompSolid { /// Sub-bodies if this is compsolid: zero base index to subs std::vector > 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: @@ -62,6 +66,14 @@ public: /// 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); + + /// Returns true if the latest modification of this body in the naming history + // is equal to the given shape + MODEL_EXPORT virtual bool isLatestEqual(const std::shared_ptr& theShape); + protected: /// Makes a body on the given feature Model_ResultCompSolid();