TopTools_ListIteratorOfListOfShape it(aListOfNew);
for(;it.More();it.Next())
aList.Append(it.Value());
+ /* *********************************************************************
// Bug in History: partition should give only modified entities! => temporary solution is used
- const TopTools_ListOfShape& aListOfGen = splitTool.Generated(anIt.Value());
- if(!aListOfGen.IsEmpty())
- foundF = Standard_True;
- it.Initialize(aListOfGen);
- for(;it.More();it.Next())
- aList.Append(it.Value());
+ //const TopTools_ListOfShape& aListOfGen = splitTool.Generated(anIt.Value());
+ //if(!aListOfGen.IsEmpty())
+ //foundF = Standard_True;
+ //it.Initialize(aListOfGen);
+ //for(;it.More();it.Next())
+ // aList.Append(it.Value());
+ ********************************************************************* */
if(!foundF) // face is not modified
aList.Append (anIt.Value());
aDM1.Bind(anIt.Value(), aList);
//BRepTools::Write(it.Value(),aName.ToCString());
#endif
}
- const TopTools_ListOfShape& aListG = splitTool.Generated(exp.Current());
- if(aListG.Extent()) foundE = Standard_True;
- it.Initialize(aListG);
- for(int k=1;it.More();it.Next(),k++)
- aList.Append(it.Value());
+ /* *********************************************************************
+ //const TopTools_ListOfShape& aListG = splitTool.Generated(exp.Current());
+ //if(aListG.Extent()) foundE = Standard_True;
+ //it.Initialize(aListG);
+ //for(int k=1;it.More();it.Next(),k++)
+ //aList.Append(it.Value());
//cout << "NB_EDGE = " << aList.Extent() <<endl;
+ ************************************************************************** */
if(!foundE) {
aList.Append (exp.Current());
#ifdef DEB_SPLIT_TO_ZONES
if(!mkCom.IsDeleted(aFace)) {
const TopTools_ListOfShape& aListOfGen = mkCom.Generated(aFace);
if(!aListOfGen.IsEmpty()) {
- aDM4.Bind(aFace, aListOfGen);
+ /* aDM4.Bind(aFace, aListOfGen); ??? */
#ifdef DEB_SPLIT_TO_ZONES
//TCollection_AsciiString aName = aNam + i + "g.brep";
//BRepTools::Write(aListOfGen.Last(), aName.ToCString());
if(!mkCom.IsDeleted(anEdge)) {
const TopTools_ListOfShape& aListOfGenEd = mkCom.Generated(anEdge);
if(!aListOfGenEd.IsEmpty()) {
- aDM4.Bind(anEdge, aListOfGenEd);
+ /* aDM4.Bind(anEdge, aListOfGenEd); ???*/
} else {
TopTools_ListOfShape aList;
aList.Append(anEdge);
if(!mkCom.IsDeleted(anEdge)) {
const TopTools_ListOfShape& aListOfGenEd = mkCom.Generated(anEdge);
if(!aListOfGenEd.IsEmpty()) {
- aDM4.Bind(anEdge, aListOfGenEd);
+ /* aDM4.Bind(anEdge, aListOfGenEd); ??? */
} else {
TopTools_ListOfShape aList;
aList.Append(anEdge);
}
}
+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 );