]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020830: EDF 1357 GUI : Hide/Show Icon PHASE_25_BR
authorptv <ptv@opencascade.com>
Wed, 17 Nov 2010 08:46:02 +0000 (08:46 +0000)
committerptv <ptv@opencascade.com>
Wed, 17 Nov 2010 08:46:02 +0000 (08:46 +0000)
src/GEOMGUI/GeometryGUI.cxx
src/GEOMGUI/GeometryGUI.h

index 3ee06d2df0446cf0429fa66da9abdc63f5048206..4ddb94d521681e32b7d9f20608671ffe69dfc2d7 100644 (file)
@@ -2111,3 +2111,16 @@ void GeometryGUI::onViewAboutToShow()
     a->setEnabled(false);
   }
 }
+
+/*!
+ * \brief Virtual public slot
+ *
+ * This method updates visibility state
+ * Redefined to make visible geometry objects
+ */
+void GeometryGUI::initVisibilityState( SUIT_DataObject* theObject )
+{
+  // in fact, here we assume that all geometry objects presentable
+  if ( theObject && theObject->visibilityState() == SUIT_DataObject::Unpresentable )
+    theObject->setVisibilityState( SUIT_DataObject::Hidden );
+}
index 4e4dd392155b0a3b366671f115c8b5c7abf717d6..1d3311f227989513b476543b0c27391fbefc0fe7 100644 (file)
@@ -56,6 +56,7 @@ class QMenu;
 class GEOMGUI_OCCSelector;
 class LightApp_VTKSelector;
 class LightApp_Selection;
+class SUIT_DataObject;
 class SUIT_ViewManager;
 class SalomeApp_Study;
 
@@ -144,6 +145,7 @@ signals :
 
 protected:
   virtual LightApp_Selection* createSelection() const;
+  virtual void                initVisibilityState( SUIT_DataObject* );
 
 private:
   GEOMGUI*                    getLibrary( const QString& libraryName );