]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Additional changes for issue 0020830: redesign methods of the SALOME View / Displayer...
authorvsr <vsr@opencascade.com>
Wed, 9 Mar 2011 09:31:01 +0000 (09:31 +0000)
committervsr <vsr@opencascade.com>
Wed, 9 Mar 2011 09:31:01 +0000 (09:31 +0000)
src/VISUGUI/VisuGUI_Displayer.cxx
src/VISUGUI/VisuGUI_Displayer.h

index cad7276a118514bb3f35a5adaca3c7ed3e012028..3545896cd70bea378eab78e2c452d3ecc250cc87 100644 (file)
@@ -54,8 +54,8 @@
 
 
 
-void changeVisibility(int theDisplaying, QString entry, SalomeApp_Study* study) {
-  
+void changeVisibility(int theDisplaying, QString entry, SalomeApp_Study* study)
+{
   _PTR(SObject) obj = study->studyDS()->FindObjectID( (const char*)entry.toLatin1() );
   CORBA::Object_var anObj = VISU::ClientSObjectToObject( obj );
   if( CORBA::is_nil( anObj ) )
@@ -418,10 +418,10 @@ bool VisuGUI_Displayer::canBeDisplayed( const QString& entry, const QString& vie
     return false;
 }
 
-void VisuGUI_Displayer::AfterDisplay( SALOME_View* vf, const SALOME_Plot2dViewType& ) {
-  changeVisibility(VISU::eDisplay, myLastEntry,dynamic_cast<SalomeApp_Study*>( myApp->activeStudy()));
+void VisuGUI_Displayer::AfterDisplay( SALOME_View* vf, const SALOME_Prs2d* p ) {
+  changeVisibility(VISU::eDisplay, myLastEntry, dynamic_cast<SalomeApp_Study*>( myApp->activeStudy()));
 }
 
-void VisuGUI_Displayer::AfterErase( SALOME_View* vf, const SALOME_Plot2dViewType& ) {
-  changeVisibility(VISU::eErase, myLastEntry,dynamic_cast<SalomeApp_Study*>( myApp->activeStudy()));
+void VisuGUI_Displayer::AfterErase( SALOME_View* vf, const SALOME_Prs2d* p ) {
+  changeVisibility(VISU::eErase, myLastEntry, dynamic_cast<SalomeApp_Study*>( myApp->activeStudy()));
 }
index 14a1a4a8773d830a80d7bf26e80f7a561c5f8da8..a5004021569975ca997bc6289cc579d141932a8b 100644 (file)
@@ -47,11 +47,10 @@ public:
 
   virtual SALOME_Prs* buildPresentation( const QString&, SALOME_View* = 0 );
   virtual bool        canBeDisplayed( const QString& /*entry*/, const QString& /*viewer_type*/ ) const;
-  virtual bool IsDisplayed( const QString&, SALOME_View* = 0 ) const;
+  virtual bool        IsDisplayed( const QString&, SALOME_View* = 0 ) const;
   
-  virtual void AfterDisplay ( SALOME_View*, const SALOME_Plot2dViewType& );
-  virtual void AfterErase ( SALOME_View*, const SALOME_Plot2dViewType& );
-
+  virtual void        AfterDisplay ( SALOME_View*, const SALOME_Prs2d* );
+  virtual void        AfterErase( SALOME_View*, const SALOME_Prs2d* );
 
 protected:
           bool         addCurve      ( SPlot2d_Prs*, Plot2d_ViewWindow*, VISU::Curve_i* ) const;