Salome HOME
Access to 'Invalid value' of altitude from Bathymetry is added.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Tool.h
index dc2427b78c32d1b45a98611dcb7e5c0dd7892bbb..e713e7d64e397db524b04d9af271f7f1481124f6 100644 (file)
@@ -112,12 +112,10 @@ public:
 
   /**
    * \brief Get sub-objects to build presentations.
-   * \param theModel data model
-   * \param theViewerId viewer id
+   * \param theModule module
    * \param theSeq sequence of sub-objects
    */
-  static void                     GetPrsSubObjects( const HYDROGUI_DataModel* theModel,
-                                                    const int theViewerId,
+  static void                     GetPrsSubObjects( HYDROGUI_Module* theModule,
                                                     HYDROData_SequenceOfObjects& theSeq );
 
   /**
@@ -149,6 +147,40 @@ 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 );
+
+  /**
+   * \brief Get id of the active GraphicsView view.
+   * \param theModule module
+   * \return view id
+   */
+  static size_t                   GetActiveGraphicsViewId( HYDROGUI_Module* theModule );
+
+  /**
+   * \brief Get list of ids of existing GraphicsView views.
+   * \param theModule module
+   * \return list of view ids
+   */
+  static QList<size_t>            GetGraphicsViewIdList( HYDROGUI_Module* theModule );
 };
 
 #endif