]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Selector/Selector_Selector.h
Salome HOME
Name generation in the selector
[modules/shaper.git] / src / Selector / Selector_Selector.h
index 225ab131f954b87d270165dddfa9ff4faf3536d3..cbed4c98376f0208d485cc03f8f89972cbc14861 100644 (file)
 #include <TopoDS_Shape.hxx>
 #include <list>
 
+class Selector_NameGenerator;
+
 /**\class Selector_Selector
  * \ingroup DataModel
  * \brief Main object for selection of the sub-shapes in the parametrically updated
  * shapes using topological naming mechanism.
  */
-
 class Selector_Selector
 {
   /// Type of a selector: on this type depends what is stored in this label and how to
@@ -77,9 +78,12 @@ class Selector_Selector
   /// Updates the current shape by the stored topological name
    SELECTOR_EXPORT bool solve(const TopoDS_Shape& theContext);
 
-  /// Returns the current sub-shape value (null if can not resolve)
+   /// Returns the current sub-shape value (null if can not resolve)
    SELECTOR_EXPORT TopoDS_Shape value();
 
+   /// Returns the naming name of the selection
+   SELECTOR_EXPORT std::string name(Selector_NameGenerator* theNameGenerator);
+
 private:
 
   /// Create and keep in the list the sub-sulector that select the given value.