Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_AbstractDisplayer.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_AbstractDisplayer.cxx
b/src/HYDROGUI/HYDROGUI_AbstractDisplayer.cxx
index 8a1262bd1f49f902413af6d735a57636f6d9c859..afeb1ab2bb45a2455e074ef7a8df86110cce0152 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_AbstractDisplayer.cxx
+++ b/
src/HYDROGUI/HYDROGUI_AbstractDisplayer.cxx
@@
-27,6
+27,7
@@
#include "HYDROGUI_Tool.h"
#include <SUIT_ViewManager.h>
#include "HYDROGUI_Tool.h"
#include <SUIT_ViewManager.h>
+#include <SUIT_ViewModel.h>
HYDROGUI_AbstractDisplayer::HYDROGUI_AbstractDisplayer( HYDROGUI_Module* theModule )
: myModule( theModule )
HYDROGUI_AbstractDisplayer::HYDROGUI_AbstractDisplayer( HYDROGUI_Module* theModule )
: myModule( theModule )
@@
-77,14
+78,20
@@
void HYDROGUI_AbstractDisplayer::Update( const HYDROData_SequenceOfObjects& theO
// Now dig in the data model
HYDROData_SequenceOfObjects anObjectsToErase, anObjectsToDisplay;
// Now dig in the data model
HYDROData_SequenceOfObjects anObjectsToErase, anObjectsToDisplay;
+ SUIT_ViewModel* aViewer = module()->getViewManager( theViewerId )->getViewModel();
for( int i = 1, n = theObjs.Length(); i <= n; i++ )
{
const Handle(HYDROData_Entity)& anObj = theObjs.Value( i );
for( int i = 1, n = theObjs.Length(); i <= n; i++ )
{
const Handle(HYDROData_Entity)& anObj = theObjs.Value( i );
- if( anObj.IsNull() )
- anObjectsToErase.Append( anObj );
- else
+
+ if( module()->isObjectVisible( (size_t)aViewer, anObj ) )
+ {
anObjectsToDisplay.Append( anObj );
anObjectsToDisplay.Append( anObj );
+ }
+ else
+ {
+ anObjectsToErase.Append( anObj );
+ }
}
if( anObjectsToErase.Length() )
}
if( anObjectsToErase.Length() )