]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 6d205706eb1682a877ac30e16b9cb5ace5655032..4f1a2457e8bdd42d5aa90010a4548e5712012402 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 4b4e3eea0e27395cf88244234476b938ec8dbdf7..8b030526e7f27362a72b1ac2d9051a79a33332dd 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;