Salome HOME
Transaction mechanism for operations corrected.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.h
index b16161ce6cfa97cac37e304b9604ae897e92ccc1..6226f542fbcff620d7907c1012eef022af2d6007 100644 (file)
@@ -39,7 +39,8 @@ class HYDROGUI_Shape
 {
 public:
   HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext,
-                  const Handle(HYDROData_Entity)&       theObject );
+                  const Handle(HYDROData_Entity)&       theObject,
+                  const int                             theZLayer = -1 );
   ~HYDROGUI_Shape();
 
 public:
@@ -51,8 +52,7 @@ public:
 
   Handle(HYDROData_Entity)   getObject() const { return myObject; }
 
-  virtual void               update( const bool theIsUpdateViewer = true, 
-                                     const bool theIsDisplayOnTop = false );
+  virtual void               update( const bool theIsUpdateViewer = true );
 
   virtual bool               getIsToUpdate() const { return myIsToUpdate; }
   virtual void               setIsToUpdate( bool theState ) { myIsToUpdate = theState; }
@@ -101,10 +101,14 @@ public:
 
   virtual Handle(AIS_Shape)  getAISShape() const { return myShape; }
 
+  void                       setZLayer( const int theZLayer );
+
 protected:
   virtual void               buildShape();
   virtual void               updateShape( const bool theToDisplay      = true,
                                           const bool theIsUpdateViewer = true );
+  void                       displayShape( const bool theIsUpdateViewer );
+
   virtual QColor             getActiveColor() const;
 
 private:
@@ -121,6 +125,8 @@ private:
   Handle(HYDROData_Entity)       myObject;
   Handle(AIS_Shape)              myShape;
 
+  int                            myZLayer;
+
   bool                           myIsToUpdate;
   bool                           myIsVisible;