Salome HOME
Improvement: now in rules you can use "canBeDisplayed" parameter. It is true, if...
authorasl <asl@opencascade.com>
Thu, 1 Dec 2005 10:05:38 +0000 (10:05 +0000)
committerasl <asl@opencascade.com>
Thu, 1 Dec 2005 10:05:38 +0000 (10:05 +0000)
src/SMESHGUI/SMESHGUI_Displayer.cxx
src/SMESHGUI/SMESHGUI_Displayer.h

index 6d20570..4f1a245 100644 (file)
@@ -78,3 +78,8 @@ SalomeApp_Study* SMESHGUI_Displayer::study() const
 {
   return dynamic_cast<SalomeApp_Study*>( myApp->activeStudy() );
 }
+
+bool SMESHGUI_Displayer::canBeDisplayed( const QString& /*entry*/, const QString& viewer_type ) const
+{
+  return viewer_type==SVTK_Viewer::Type();
+}
index 4b4e3ee..8b03052 100644 (file)
@@ -41,6 +41,7 @@ public:
   ~SMESHGUI_Displayer();
 
   virtual SALOME_Prs* buildPresentation( const QString&, SALOME_View* = 0 );
+  virtual bool        canBeDisplayed( const QString& /*entry*/, const QString& /*viewer_type*/ ) const;
 
 protected:
   SalomeApp_Study* study() const;