{
/// 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:
/// 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<GeomAPI_Shape>& theShape);
+
protected:
/// Makes a body on the given feature
Model_ResultCompSolid();