X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMGUI%2FGEOM_Displayer.h;h=712fe8316ab3aa04dc4b15d3cd6e2a61e3d93326;hb=a9fe5759c52e7f225c6b1403bf93fc97c10874b9;hp=50b6c1798f40fda94896bb2efecd55a028143058;hpb=1dc813d9b75088fe64e6e8d055438963caa2ad7f;p=modules%2Fgeom.git diff --git a/src/GEOMGUI/GEOM_Displayer.h b/src/GEOMGUI/GEOM_Displayer.h index 50b6c1798..712fe8316 100755 --- a/src/GEOMGUI/GEOM_Displayer.h +++ b/src/GEOMGUI/GEOM_Displayer.h @@ -45,12 +45,8 @@ class SALOME_OCCViewType; #include #include #include -#if OCC_VERSION_MAJOR >= 7 - #include -#endif #include #include -#include #include #include @@ -133,7 +129,7 @@ public: /* Update visibility state */ void UpdateVisibility( SALOME_View*, const SALOME_Prs*, bool ); - /* build presentation accordint to the current viewer type*/ + /* build presentation according to the current viewer type*/ SALOME_Prs* BuildPrs ( GEOM::GEOM_Object_ptr ); SALOME_Prs* BuildPrs ( const TopoDS_Shape& ); @@ -196,7 +192,7 @@ public: virtual void BeforeErase ( SALOME_View*, const SALOME_OCCPrs* ); virtual void AfterErase ( SALOME_View*, const SALOME_OCCPrs* ); - /* This methos is used for activisation/deactivisation of objects to be displayed*/ + /* This methods is used for activisation/deactivisation of objects to be displayed*/ void SetToActivate( const bool ); bool ToActivate() const; @@ -229,8 +225,8 @@ public: SALOME_View* = 0); /* Update visibility and parameters of the currently selected field step's color scale */ - void UpdateColorScale( const bool theIsRedisplayFieldSteps = false, const bool updateViewer = true ); - void SetUpdateColorScale(bool toUpdate) { myUpdateColorScale = toUpdate; } // IPAL54049 + void UpdateColorScale(); + bool SetUpdateColorScale(bool); protected: /* internal methods */ @@ -277,18 +273,6 @@ protected: double& theFieldStepRangeMin, double& theFieldStepRangeMax ); - // Note: the method is copied from Aspect_ColorScale class - static Standard_Integer HueFromValue( const Standard_Integer aValue, - const Standard_Integer aMin, - const Standard_Integer aMax ); - - // Note: the method is copied from Aspect_ColorScale class - static Standard_Boolean FindColor( const Standard_Real aValue, - const Standard_Real aMin, - const Standard_Real aMax, - const Standard_Integer ColorsCount, - Quantity_Color& aColor ); - protected: Handle(SALOME_InteractiveObject) myIO; TopoDS_Shape myShape; @@ -302,10 +286,7 @@ protected: std::string myTexture; int myType; SALOME_View* myViewFrame; -#if OCC_VERSION_MAJOR >= 7 - Handle(AIS_ColorScale) myColorScale; -#endif - int myUpdateColorScale; // IPAL54049 + bool myUpdateColorScale; // IPAL54049 // Attributes Quantity_Color myShadingColor;