Salome HOME
Allow drag and drop berween items; change z layers assigning algo.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_OCCDisplayer.h
index 681e137abcdc629e70073b385194cd52eb4582e4..f1cb02563903cfd89ed376830a751543b6ef5221 100644 (file)
@@ -27,6 +27,8 @@
 
 class HYDROGUI_Shape;
 class Handle(AIS_InteractiveContext);
+class OCCViewer_ViewManager;
+class OCCViewer_Viewer;
 
 /**
  * \class HYDROGUI_OCCDisplayer
@@ -60,6 +62,20 @@ public:
    */
   virtual QString  GetType() const;
 
+  /**
+   * \brief Add the top z layer and returns its index.
+   * \param theMgr OCC view manager
+   */
+  int                             AddTopZLayer( OCCViewer_ViewManager* theMgr );
+
+  /**
+   * \brief Removes the z layer.
+   * \param theMgr OCC view manager
+   * \param theLayer a layer index
+   */
+  void                            RemoveZLayer( OCCViewer_ViewManager* theMgr,
+                                                const int theLayer );
+
 protected:
   /**
    * \brief Erase all viewer objects.
@@ -105,6 +121,21 @@ private:
   HYDROGUI_Shape*                 createShape( const int                             theViewerId,
                                                const Handle(AIS_InteractiveContext)& theContext,
                                                const Handle(HYDROData_Entity)&       theObject );
+
+   /**
+   * \brief Display the specified object.
+   * \param theObject the object to display
+   * \param theViewer the viewer for displaying
+   * \param theIsForced the flag used to update the object shape
+   * \param theZLayerIndex the Z layer index
+   * \param theIsOrdered the flag indicating if the Z layer ordering available for the object
+   * \return true in case of success
+   */
+  bool                            Display( const Handle(HYDROData_Entity)& theObject,
+                                           const OCCViewer_Viewer* theViewer,
+                                           const bool theIsForced,
+                                           const int theZLayerIndex,
+                                           const bool theIsOrdered );
 };
 
 #endif