X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Shape.h;h=6226f542fbcff620d7907c1012eef022af2d6007;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=31966461ae710c1d07aec6cb4955f9acffe6eb62;hpb=90d1e986c0e567fe8892f11e0532ec6cf40a5b8b;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Shape.h b/src/HYDROGUI/HYDROGUI_Shape.h index 31966461..6226f542 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.h +++ b/src/HYDROGUI/HYDROGUI_Shape.h @@ -39,14 +39,15 @@ 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: virtual void display( const bool theIsUpdateViewer = true ); virtual void erase( const bool theIsUpdateViewer = true ); - virtual void highlight( bool theIsHighlight ); + virtual void highlight( bool theIsHighlight, bool isUpdateViewer ); virtual bool isHighlighted() const; Handle(HYDROData_Entity) getObject() const { return myObject; } @@ -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;