Version: 6.3.1

src/VISUGUI/VisuGUI_Displayer.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : Displayer for VISU module
00024 //  File   : VisuGUI_Displayer.h
00025 //  Author : Alexander SOLOVYOV
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/VISUGUI/VisuGUI_Displayer.h
00028 //
00029 #ifndef VISUGUI_DISPLAYER_HEADER
00030 #define VISUGUI_DISPLAYER_HEADER
00031 
00032 #include <LightApp_Displayer.h>
00033 #include <VISU_Prs3d_i.hh>
00034 #include <VISU_Table_i.hh>
00035 #include <VISU_PointMap3d_i.hh>
00036 
00037 class SalomeApp_Application;
00038 class SVTK_ViewWindow;
00039 class Plot2d_ViewWindow;
00040 class SPlot2d_Prs;
00041 
00042 class VisuGUI_Displayer : public LightApp_Displayer
00043 {
00044 public:
00045   VisuGUI_Displayer( SalomeApp_Application* );
00046   ~VisuGUI_Displayer();
00047 
00048   virtual SALOME_Prs* buildPresentation( const QString&, SALOME_View* = 0 );
00049   virtual bool        canBeDisplayed( const QString& /*entry*/, const QString& /*viewer_type*/ ) const;
00050   virtual bool        IsDisplayed( const QString&, SALOME_View* = 0 ) const;
00051   
00052   virtual void        AfterDisplay ( SALOME_View*, const SALOME_Prs2d* );
00053   virtual void        AfterErase( SALOME_View*, const SALOME_Prs2d* );
00054 
00055 protected:
00056           bool         addCurve      ( SPlot2d_Prs*, Plot2d_ViewWindow*, VISU::Curve_i* ) const;
00057   virtual void         buildPrs3d    ( SVTK_ViewWindow*,   VISU::Prs3d_i* ) const;
00058   virtual SPlot2d_Prs* buildCurve    ( Plot2d_ViewWindow*, VISU::Curve_i* ) const;
00059   virtual SPlot2d_Prs* buildContainer( Plot2d_ViewWindow*, VISU::Container_i* ) const;
00060   virtual SPlot2d_Prs* buildTable    ( Plot2d_ViewWindow*, VISU::Table_i* ) const;
00061 
00062 private:
00063   SalomeApp_Application*   myApp;
00064 };
00065 
00066 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS