-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 ) )
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()));
}
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;