#include <HYDROData_Object.h>
#include <GraphicsView_Defs.h>
+#include <GraphicsView_ViewPort.h>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
*/
static Handle(TCollection_HExtendedString) ToHExtString( const QString& );
+ /**
+ * \brief Encode the Lambert93 coordinates to the absolute double value
+ */
+ static void LambertToDouble( const int theDegrees,
+ const int theMinutes,
+ const double theSeconds,
+ double& theCoord );
+
+ /**
+ * \brief Decode the Lambert93 coordinates from the absolute double value
+ */
+ static void DoubleToLambert( const double theCoord,
+ int& theDegrees,
+ int& theMinutes,
+ double& theSeconds );
+
/**
* \brief Set the specified view manager to be active on the desktop.
* \param theModule module
/**
* \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 );
*/
static HYDROGUI_Prs* GetPresentation( const Handle(HYDROData_Object)& theObj,
const GraphicsView_ObjectList& theObjects );
+
+ /**
+ * \brief Get list of HYDRO presentations from the specified viewport.
+ * \param theViewPort viewport
+ * \return list of HYDRO presentations
+ */
+ static GraphicsView_ObjectList GetPrsList( GraphicsView_ViewPort* theViewPort );
+
+ /**
+ * \brief Get list of the selected data objects.
+ * \param theModule module
+ * \return list of the selected data objects
+ */
+ static HYDROData_SequenceOfObjects GetSelectedObjects( HYDROGUI_Module* theModule );
+
+ /**
+ * \brief Get the selected data object (first in the selected list).
+ * \param theModule module
+ * \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