}
}
+void HYDROGUI_VTKPrsDisplayer::DisplayAll( const int theViewerId,
+ const bool theIsForced,
+ const bool theDoFitAll )
+{
+ HYDROGUI_AbstractDisplayer::DisplayAll( theViewerId, theIsForced, theDoFitAll );
+
+ bool isEraseScalarBar = true;
+
+ SVTK_Viewer* aViewer = module()->getVTKViewer( theViewerId );
+ if( aViewer )
+ {
+ SALOME_ListIO aListIO;
+ aViewer->GetVisible( aListIO );
+
+ HYDROGUI_VTKPrs* aPrs;
+ SALOME_ListIteratorOfListIO anIter( aListIO );
+ for( ; anIter.More(); anIter.Next() )
+ {
+ Handle(SALOME_InteractiveObject) aPrsObj = anIter.Value();
+ if ( !aPrsObj.IsNull() )
+ {
+ Handle(HYDROData_Entity) anObj =
+ module()->getDataModel()->objectByEntry( aPrsObj->getEntry() );
+ aPrs = module()->getObjectVTKPrs( (size_t)aViewer, anObj );
+ if( aPrs->needScalarBar() )
+ {
+ isEraseScalarBar = false;
+ break;
+ }
+ }
+ }
+ }
+
+ if( isEraseScalarBar )
+ EraseScalarBar( theViewerId );
+}
+
void HYDROGUI_VTKPrsDisplayer::EraseAll( const int theViewerId )
{
SVTK_Viewer* aViewer = module()->getVTKViewer( theViewerId );
void EraseScalarBar( const int theViewerId, const bool theIsDelete = false );
protected:
+
+ virtual void DisplayAll( const int theViewerId,
+ const bool theIsForced,
+ const bool theDoFitAll );
+
/**
* \brief Erase all viewer objects.
* \param theViewerId viewer identifier