{
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:
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; }
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:
Handle(HYDROData_Entity) myObject;
Handle(AIS_Shape) myShape;
+ int myZLayer;
+
bool myIsToUpdate;
bool myIsVisible;