Salome HOME
Observe Image operation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Tool.h
index dc2427b78c32d1b45a98611dcb7e5c0dd7892bbb..1af2f5d71912bb47167631692db11fd9fecb81be 100644 (file)
@@ -112,11 +112,11 @@ public:
 
   /**
    * \brief Get sub-objects to build presentations.
-   * \param theModel data model
+   * \param theModule module
    * \param theViewerId viewer id
    * \param theSeq sequence of sub-objects
    */
-  static void                     GetPrsSubObjects( const HYDROGUI_DataModel* theModel,
+  static void                     GetPrsSubObjects( HYDROGUI_Module* theModule,
                                                     const int theViewerId,
                                                     HYDROData_SequenceOfObjects& theSeq );
 
@@ -149,6 +149,26 @@ public:
    * \return selected data object
    */
   static Handle(HYDROData_Object) GetSelectedObject( HYDROGUI_Module* theModule );
+
+  /**
+   * \brief Find the data object with the specified name.
+   * \param theModule module
+   * \param theName name
+   * \param theObjectKind kind of object
+   * \return data object
+   */
+  static Handle(HYDROData_Object) FindObjectByName( HYDROGUI_Module* theModule,
+                                                    const QString& theName,
+                                                    const ObjectKind theObjectKind = KIND_UNKNOWN );
+
+  /**
+   * \brief Generate name for new object.
+   * \param theModule module
+   * \param thePrefix name prefix
+   * \return generated name
+   */
+  static QString                  GenerateObjectName( HYDROGUI_Module* theModule,
+                                                      const QString& thePrefix );
 };
 
 #endif