X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ShapeBathymetry.h;h=2521119560b8b6d27de2eb4677dfbbd5c1fa7d77;hb=5e9382826b48843ce2b958dc4d9a5e0b99f938c7;hp=840026ed1786b890c20121baaeacc57dc2fc7a48;hpb=4aa4bc7e0960d0ac780d9fa218a574a883184125;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.h b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.h index 840026ed..25211195 100644 --- a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.h +++ b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.h @@ -1,12 +1,8 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// +// Copyright (C) 2014-2015 EDF-R&D // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -29,11 +25,13 @@ class Handle_HYDROData_Bathymetry; class Handle_Aspect_ColorScale; +class HYDROGUI_OCCDisplayer; class HYDROGUI_ShapeBathymetry : public HYDROGUI_Shape { public: - HYDROGUI_ShapeBathymetry( const Handle(AIS_InteractiveContext)& theContext, + HYDROGUI_ShapeBathymetry( HYDROGUI_OCCDisplayer* theDisplayer, + const Handle(AIS_InteractiveContext)& theContext, const Handle_HYDROData_Bathymetry& theBathymetry, const int theZLayer = -1 ); virtual ~HYDROGUI_ShapeBathymetry(); @@ -41,13 +39,20 @@ public: void GetRange( double& theMin, double& theMax ) const; void UpdateWithColorScale( const Handle_Aspect_ColorScale& ); + virtual void display( const bool theIsUpdateViewer = true ); + virtual void erase( const bool theIsUpdateViewer = true ); + virtual void update( bool isUpdateViewer, bool isDeactivateSelection ); + virtual void setVisible( const bool theState, + const bool theIsUpdateViewer = true ); protected: virtual Handle_AIS_InteractiveObject createShape() const; + virtual void displayShape( const bool theIsUpdateViewer ); private: + HYDROGUI_OCCDisplayer* myDisplayer; Handle_TColgp_HArray1OfPnt myCoords; Handle_Quantity_HArray1OfColor myColors; };