Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / Model / Model_AttributeSelection.h
index 98e35767e845f19293df3fdeed2feeb15578e360..0e98757fbbdfa12ffbafb389d91bf78d58b6cea4 100644 (file)
@@ -50,6 +50,9 @@ class Model_AttributeSelection : public ModelAPI_AttributeSelection,
   Model_AttributeSelectionList* myParent;
 
   std::shared_ptr<Model_Document> myRestoreDocument; // current document to restore by name
+  /// If true attribute selects geometry instead of shape.
+  bool myIsGeometricalSelection;
+
 public:
   /// Defines the result and its selected sub-shape
   /// \param theContext object where the sub-shape was selected
@@ -197,6 +200,11 @@ protected:
   void computeValues(ResultPtr theOldContext, ResultPtr theNewContext, TopoDS_Shape theValShape,
     TopTools_ListOfShape& theShapes);
 
+  /// Returns true if is geometrical selection.
+  virtual bool isGeometricalSelection() const {
+    return myIsGeometricalSelection;
+  };
+
   friend class Model_Data;
   friend class Model_AttributeSelectionList;
 };