/**
* \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 );
* \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