Salome HOME
Avoid crash on using of wrong folder as a model for opening
[modules/shaper.git] / src / Model / Model_AttributeSelection.h
index 1340a34d00e1fe1d226c47bf17afc58c2436e4d8..665758341c1c8aa1ac158eabd1369b78d660314d 100644 (file)
@@ -64,6 +64,10 @@ public:
   /// Returns true if attribute was  initialized by some value
   MODEL_EXPORT virtual bool isInitialized();
 
+  /// Returns true if recomute of selection become impossible
+  MODEL_EXPORT virtual bool isInvalid();
+
+
 protected:
   /// Objects are created for features automatically
   MODEL_EXPORT Model_AttributeSelection(TDF_Label& theLabel);
@@ -81,7 +85,7 @@ protected:
   /// \param theContext the result - owner of the selection
   /// \param theSubShape selected shape
   /// \param theUpdate flag that shows that it must be just update, theShape is null
-  /// \param returns true if eveything is selected correctly
+  /// \returns true if eveything is selected correctly
   virtual bool selectPart(
     const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
     const bool theUpdate = false);