Salome HOME
Issue #1315 Middle point constraint problem
[modules/shaper.git] / src / Model / Model_AttributeSelection.h
index 1340a34d00e1fe1d226c47bf17afc58c2436e4d8..5c7d3c358a0494fefab375d32faa667e71178dce 100644 (file)
@@ -54,7 +54,7 @@ public:
   
   /// Returns an Id of the selection
   /// NOTE: This method has been added for temporary export of groups towards old GEOM
-  /// It should then be removed when a direct use of objects from NewGeom
+  /// It should then be removed when a direct use of objects from SHAPER
   /// will be possible from SMESH module of SALOME.
   MODEL_EXPORT virtual int Id();
 
@@ -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);