X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Tool.h;h=7e0efdd8445f42a26c2ee7994e11170a0c0e6b0e;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=48c8e246dcc0903ae4a20fc2613475074777760b;hpb=34310fe4f26db0f23c2edfef1678e5b02f578204;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Tool.h b/src/HYDROGUI/HYDROGUI_Tool.h index 48c8e246..7e0efdd8 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.h +++ b/src/HYDROGUI/HYDROGUI_Tool.h @@ -33,6 +33,10 @@ #include #include +// IDL includes +#include +#include CORBA_SERVER_HEADER(GEOM_Gen) + class SUIT_ViewManager; class OCCViewer_ViewFrame; @@ -112,6 +116,14 @@ public: SUIT_ViewManager* theViewManager ); /** + * \brief Returns TRUE if object can be shown on the viewer. + * \param theObject data model object to check + * \param theViewerType viewer type + */ + static bool IsObjectHasPresentation( const Handle(HYDROData_Entity)& theObject, + const QString& theViewerType = "" ); + +/** * \brief Get sub-objects to build presentations. * \param theModule module * \param theSeq sequence of sub-objects @@ -166,9 +178,11 @@ public: /** * \brief Get the selected GEOM objects. * \param theModule module + * \param theTypes the acceptable GEOM object types * \return list of GEOM objects entries */ - static QStringList GetSelectedGeomObjects( HYDROGUI_Module* theModule ); + static QStringList GetSelectedGeomObjects( HYDROGUI_Module* theModule, + QList theTypes ); /** * \brief Find the data object with the specified name.