Salome HOME
Minor changes.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.h
index a1af4dbb7390e8041fe874daa7c01864d6f95ff4..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:
@@ -98,10 +99,16 @@ public:
                                                  const bool     theIsUpdateViewer = true );
   virtual QString            getTextureFileName() const;
 
+  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:
@@ -118,6 +125,8 @@ private:
   Handle(HYDROData_Entity)       myObject;
   Handle(AIS_Shape)              myShape;
 
+  int                            myZLayer;
+
   bool                           myIsToUpdate;
   bool                           myIsVisible;