Version: 6.3.1

src/VISU_I/VISU_Tools.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  File   : VISU_Tools.h
00021 //  Author : Oleg UVAROV
00022 //  Module : VISU
00023 //
00024 #ifndef VISU_TOOLS_H
00025 #define VISU_TOOLS_H
00026 
00027 #include "VISUConfig.hh"
00028 #include "VISU_I.hxx"
00029 
00030 #include <Qtx.h>
00031 
00032 #include <SALOMEDSClient_Study.hxx>
00033 
00034 class SPlot2d_Curve;
00035 class Plot2d_ViewFrame;
00036 class SalomeApp_Study;
00037 class SalomeApp_Application;
00038 class VISU_ActorBase;
00039 class SALOME_Actor;
00040 
00041 namespace VISU 
00042 {
00043   class Gen_i;
00044   class Table_i;
00045   class Curve_i;
00046   class Container_i;
00047 
00051   VISU_I_EXPORT void                                 UpdateCurve( VISU::Curve_i*,
00052                                                                   Plot2d_ViewFrame*,
00053                                                                   SPlot2d_Curve*,
00054                                                                   int theDisplaying );
00055 
00056   VISU_I_EXPORT void                                 PlotTable( SalomeApp_Study*,
00057                                                                 Plot2d_ViewFrame*,
00058                                                                 VISU::Table_i*,
00059                                                                 int theDisplaying );
00060 
00061   VISU_I_EXPORT void                                 PlotCurve( Plot2d_ViewFrame*,
00062                                                                 VISU::Curve_i*,
00063                                                                 int theDisplaying );
00064 
00065   VISU_I_EXPORT void                                 PlotRemoveCurve(SalomeApp_Application*,
00066                                                                      VISU::Curve_i* );
00067 
00068   VISU_I_EXPORT void                                 PlotContainer( Plot2d_ViewFrame*,
00069                                                                     VISU::Container_i*,
00070                                                                     int theDisplaying );
00071 
00072   VISU_I_EXPORT void                                 CreatePlot( VISU_Gen_i*,
00073                                                                  Plot2d_ViewFrame*,
00074                                                                  _PTR(SObject) theTableSO );
00075 
00076   VISU_I_EXPORT void                                 SetVisibilityState(std::string entry, Qtx::VisibilityState state);
00077   VISU_I_EXPORT void                                 SetVisibilityState(SALOME_Actor *theActor, Qtx::VisibilityState state);
00078 
00079   VISU_I_EXPORT void                                 CurveVisibilityChanged(VISU::Curve_i* theCurve, 
00080                                                  int theDisplaying,
00081                                                  bool updateCurve,
00082                                                  bool updateTable,
00083                                                  bool updateContainers);
00084 
00085   VISU_I_EXPORT Qtx::VisibilityState                 GetStateByDisplaying(int theDisplaying);
00086   VISU_I_EXPORT void                                 updateContainerVisibility(VISU::Container_i* theContainer);
00087 }
00088 
00089 #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