X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Module.h;h=f7957e9c8c2b01c1695ef000afdecdf94c0bc135;hb=a1431f03eac1d1aed4203d0568d987c41ce939b3;hp=384e5e714de7933809ae3ad24234158b589c152f;hpb=a34b423a7b1c26957b15dcb6b82f6e81e57235f5;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Module.h b/src/HYDROGUI/HYDROGUI_Module.h index 384e5e71..f7957e9c 100644 --- a/src/HYDROGUI/HYDROGUI_Module.h +++ b/src/HYDROGUI/HYDROGUI_Module.h @@ -125,7 +125,14 @@ public: void setObjectVisible( const int theViewId, const Handle(HYDROData_Entity)& theObject, const bool theState ); - + /** + * Set IsToUpdate flag for all presentations of the given object to recompute them during + * the next viewer(s) updating. + * @param theObject the data model object + * @param theState the flag to set for object's presentations, it's true by default. + */ + void setIsToUpdate( const Handle(HYDROData_Entity)& theObject, + const bool theState = true ); HYDROGUI_Shape* getObjectShape( const int theViewId, const Handle(HYDROData_Entity)& theObject ) const; void setObjectShape( const int theViewId, @@ -144,7 +151,22 @@ public: void removeObjectVTKPrs( const int theViewId, const Handle(HYDROData_Entity)& theObject ); - QStringList GetGeomObjectsToImport(); + /** + * Update global imposed range of Z values for the given VTK viewer id + */ + void updateVTKZRange( const int theViewId, double theRange[] ); + + /** + * Returns true if the object with the given entry can be renamed. + * @param theEntry the object entry + */ + virtual bool renameAllowed( const QString& theEntry ) const; + /** + * Returns true if the object with the given entry is renamed. + * @param theEntry the object entry + * @param theName the new name + */ + virtual bool renameObject( const QString& theEntry, const QString& theName ); protected: CAM_DataModel* createDataModel(); @@ -173,9 +195,8 @@ protected slots: virtual void onViewCreated( SUIT_ViewWindow* ); void onViewPortMouseEvent( QGraphicsSceneMouseEvent* ); - - void onExternalOperationFinished( const QString&, const QString&, - const QStringList& ); + + void onMouseMove( SUIT_ViewWindow*, QMouseEvent* ); private: void updateViewer( HYDROGUI_AbstractDisplayer* theDisplayer,