Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29b9e89
)
PAL5597
author
vsr
<vsr@opencascade.com>
Thu, 3 Feb 2005 13:24:46 +0000
(13:24 +0000)
committer
vsr
<vsr@opencascade.com>
Thu, 3 Feb 2005 13:24:46 +0000
(13:24 +0000)
src/SMESHGUI/SMESHGUI.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index ca77a9b2c690b9b03b85f309342737b4458d9014..470c412766a8f9d103752728d7bee3495e7ff134 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-127,6
+127,7
@@
#include <vtkRenderWindow.h>
#include <vtkActorCollection.h>
#include <vtkScalarBarActor.h>
#include <vtkRenderWindow.h>
#include <vtkActorCollection.h>
#include <vtkScalarBarActor.h>
+#include <vtkUnstructuredGrid.h>
#include "utilities.h"
#include "utilities.h"
@@
-2583,6
+2584,14
@@
bool SMESHGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString
popup->removeItem( 1134 ); // Clipping
popup->removeItem( 2000 ); // Scalar Bar
}
popup->removeItem( 1134 ); // Clipping
popup->removeItem( 2000 ); // Scalar Bar
}
+ // VSR 03/02/05 - check if actor is empty ----- start -----
+ vtkUnstructuredGrid* vtkGrid = anActor->GetUnstructuredGrid();
+ if ( vtkGrid->GetNumberOfPoints() + vtkGrid->GetNumberOfCells() == 0 ) {
+ popup->removeItem( QAD_Display_Popup_ID );
+ popup->removeItem( QAD_DisplayOnly_Popup_ID );
+ popup->removeItem( QAD_Erase_Popup_ID );
+ }
+ // VSR 03/02/05 - check if actor is empty ----- finish -----
}
else {
// object doesn't have actor
}
else {
// object doesn't have actor